File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
compiler/rustc_target/src Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,11 @@ use Primitive::*;
6
6
use rustc_data_structures:: intern:: Interned ;
7
7
use rustc_macros:: HashStable_Generic ;
8
8
9
- use crate :: json:: { Json , ToJson } ;
10
-
11
9
pub mod call;
12
10
13
11
// Explicitly import `Float` to avoid ambiguity with `Primitive::Float`.
14
12
pub use rustc_abi:: { Float , * } ;
15
13
16
- impl ToJson for Endian {
17
- fn to_json ( & self ) -> Json {
18
- self . as_str ( ) . to_json ( )
19
- }
20
- }
21
-
22
14
rustc_index:: newtype_index! {
23
15
/// The *source-order* index of a field in a variant.
24
16
///
Original file line number Diff line number Diff line change @@ -134,3 +134,9 @@ impl ToJson for TargetMetadata {
134
134
} )
135
135
}
136
136
}
137
+
138
+ impl ToJson for rustc_abi:: Endian {
139
+ fn to_json ( & self ) -> Json {
140
+ self . as_str ( ) . to_json ( )
141
+ }
142
+ }
You can’t perform that action at this time.
0 commit comments