11use std:: fmt;
22
3+ use rustc_abi:: ExternAbi ;
34use rustc_ast:: util:: parser:: ExprPrecedence ;
45use rustc_ast:: {
56 self as ast, Attribute , FloatTy , InlineAsmOptions , InlineAsmTemplatePiece , IntTy , Label ,
@@ -19,7 +20,6 @@ use rustc_span::source_map::Spanned;
1920use rustc_span:: symbol:: { Ident , Symbol , kw, sym} ;
2021use rustc_span:: { BytePos , DUMMY_SP , ErrorGuaranteed , Span } ;
2122use rustc_target:: asm:: InlineAsmRegOrRegClass ;
22- use rustc_target:: spec:: abi:: Abi ;
2323use smallvec:: SmallVec ;
2424use tracing:: debug;
2525
@@ -2735,7 +2735,7 @@ impl PrimTy {
27352735#[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
27362736pub struct BareFnTy < ' hir > {
27372737 pub safety : Safety ,
2738- pub abi : Abi ,
2738+ pub abi : ExternAbi ,
27392739 pub generic_params : & ' hir [ GenericParam < ' hir > ] ,
27402740 pub decl : & ' hir FnDecl < ' hir > ,
27412741 pub param_names : & ' hir [ Ident ] ,
@@ -3313,7 +3313,7 @@ impl<'hir> Item<'hir> {
33133313
33143314 expect_mod, & ' hir Mod <' hir>, ItemKind :: Mod ( m) , m;
33153315
3316- expect_foreign_mod, ( Abi , & ' hir [ ForeignItemRef ] ) ,
3316+ expect_foreign_mod, ( ExternAbi , & ' hir [ ForeignItemRef ] ) ,
33173317 ItemKind :: ForeignMod { abi, items } , ( * abi, items) ;
33183318
33193319 expect_global_asm, & ' hir InlineAsm <' hir>, ItemKind :: GlobalAsm ( asm) , asm;
@@ -3386,7 +3386,7 @@ pub struct FnHeader {
33863386 pub safety : Safety ,
33873387 pub constness : Constness ,
33883388 pub asyncness : IsAsync ,
3389- pub abi : Abi ,
3389+ pub abi : ExternAbi ,
33903390}
33913391
33923392impl FnHeader {
@@ -3428,7 +3428,7 @@ pub enum ItemKind<'hir> {
34283428 /// A module.
34293429 Mod ( & ' hir Mod < ' hir > ) ,
34303430 /// An external module, e.g. `extern { .. }`.
3431- ForeignMod { abi : Abi , items : & ' hir [ ForeignItemRef ] } ,
3431+ ForeignMod { abi : ExternAbi , items : & ' hir [ ForeignItemRef ] } ,
34323432 /// Module-level inline assembly (from `global_asm!`).
34333433 GlobalAsm ( & ' hir InlineAsm < ' hir > ) ,
34343434 /// A type alias, e.g., `type Foo = Bar<u8>`.
0 commit comments