We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc0f045 commit 40b52beCopy full SHA for 40b52be
compiler/rustc_target/src/abi/mod.rs
@@ -6,19 +6,11 @@ use Primitive::*;
6
use rustc_data_structures::intern::Interned;
7
use rustc_macros::HashStable_Generic;
8
9
-use crate::json::{Json, ToJson};
10
-
11
pub mod call;
12
13
// Explicitly import `Float` to avoid ambiguity with `Primitive::Float`.
14
pub use rustc_abi::{Float, *};
15
16
-impl ToJson for Endian {
17
- fn to_json(&self) -> Json {
18
- self.as_str().to_json()
19
- }
20
-}
21
22
rustc_index::newtype_index! {
23
/// The *source-order* index of a field in a variant.
24
///
compiler/rustc_target/src/json.rs
@@ -134,3 +134,9 @@ impl ToJson for TargetMetadata {
134
})
135
}
136
137
+
138
+impl ToJson for rustc_abi::Endian {
139
+ fn to_json(&self) -> Json {
140
+ self.as_str().to_json()
141
+ }
142
+}
0 commit comments