@@ -1114,32 +1114,32 @@ impl ToJson for FloatAbi {
11141114 }
11151115}
11161116
1117- /// The Rust -specific variant of the ABI used for this target.
1117+ /// The Rustc -specific variant of the ABI used for this target.
11181118#[ derive( Clone , Copy , PartialEq , Hash , Debug ) ]
1119- pub enum RustAbi {
1119+ pub enum RustcAbi {
11201120 /// On x86-32 only: make use of SSE and SSE2 for ABI purposes.
11211121 X86Sse2 ,
11221122 /// On x86-32/64 only: do not use any FPU or SIMD registers for the ABI/
11231123 X86Softfloat ,
11241124}
11251125
1126- impl FromStr for RustAbi {
1126+ impl FromStr for RustcAbi {
11271127 type Err = ( ) ;
11281128
1129- fn from_str ( s : & str ) -> Result < RustAbi , ( ) > {
1129+ fn from_str ( s : & str ) -> Result < RustcAbi , ( ) > {
11301130 Ok ( match s {
1131- "x86-sse2" => RustAbi :: X86Sse2 ,
1132- "x86-softfloat" => RustAbi :: X86Softfloat ,
1131+ "x86-sse2" => RustcAbi :: X86Sse2 ,
1132+ "x86-softfloat" => RustcAbi :: X86Softfloat ,
11331133 _ => return Err ( ( ) ) ,
11341134 } )
11351135 }
11361136}
11371137
1138- impl ToJson for RustAbi {
1138+ impl ToJson for RustcAbi {
11391139 fn to_json ( & self ) -> Json {
11401140 match * self {
1141- RustAbi :: X86Sse2 => "x86-sse2" ,
1142- RustAbi :: X86Softfloat => "x86-softfloat" ,
1141+ RustcAbi :: X86Sse2 => "x86-sse2" ,
1142+ RustcAbi :: X86Softfloat => "x86-softfloat" ,
11431143 }
11441144 . to_json ( )
11451145 }
@@ -2528,7 +2528,7 @@ pub struct TargetOptions {
25282528 /// it can also affect "C" ABI functions; the point is that this flag is interpreted by
25292529 /// rustc and not forwarded to LLVM.
25302530 /// So far, this is only used on x86.
2531- pub rust_abi : Option < RustAbi > ,
2531+ pub rustc_abi : Option < RustcAbi > ,
25322532
25332533 /// Whether or not RelaxElfRelocation flag will be passed to the linker
25342534 pub relax_elf_relocations : bool ,
@@ -2794,7 +2794,7 @@ impl Default for TargetOptions {
27942794 llvm_mcount_intrinsic : None ,
27952795 llvm_abiname : "" . into ( ) ,
27962796 llvm_floatabi : None ,
2797- rust_abi : None ,
2797+ rustc_abi : None ,
27982798 relax_elf_relocations : false ,
27992799 llvm_args : cvs ! [ ] ,
28002800 use_ctors_section : false ,
@@ -3256,14 +3256,14 @@ impl Target {
32563256 }
32573257
32583258 // Check consistency of Rust ABI declaration.
3259- if let Some ( rust_abi) = self . rust_abi {
3259+ if let Some ( rust_abi) = self . rustc_abi {
32603260 match rust_abi {
3261- RustAbi :: X86Sse2 => check_matches ! (
3261+ RustcAbi :: X86Sse2 => check_matches ! (
32623262 & * self . arch,
32633263 "x86" ,
32643264 "`x86-sse2` ABI is only valid for x86-32 targets"
32653265 ) ,
3266- RustAbi :: X86Softfloat => check_matches ! (
3266+ RustcAbi :: X86Softfloat => check_matches ! (
32673267 & * self . arch,
32683268 "x86" | "x86_64" ,
32693269 "`x86-softfloat` ABI is only valid for x86 targets"
0 commit comments