1
1
use std:: fmt;
2
2
3
+ use rustc_abi:: ExternAbi ;
3
4
use rustc_ast:: util:: parser:: ExprPrecedence ;
4
5
use rustc_ast:: {
5
6
self as ast, Attribute , FloatTy , InlineAsmOptions , InlineAsmTemplatePiece , IntTy , Label ,
@@ -19,7 +20,6 @@ use rustc_span::source_map::Spanned;
19
20
use rustc_span:: symbol:: { Ident , Symbol , kw, sym} ;
20
21
use rustc_span:: { BytePos , DUMMY_SP , ErrorGuaranteed , Span } ;
21
22
use rustc_target:: asm:: InlineAsmRegOrRegClass ;
22
- use rustc_target:: spec:: abi:: Abi ;
23
23
use smallvec:: SmallVec ;
24
24
use tracing:: debug;
25
25
@@ -2735,7 +2735,7 @@ impl PrimTy {
2735
2735
#[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
2736
2736
pub struct BareFnTy < ' hir > {
2737
2737
pub safety : Safety ,
2738
- pub abi : Abi ,
2738
+ pub abi : ExternAbi ,
2739
2739
pub generic_params : & ' hir [ GenericParam < ' hir > ] ,
2740
2740
pub decl : & ' hir FnDecl < ' hir > ,
2741
2741
pub param_names : & ' hir [ Ident ] ,
@@ -3313,7 +3313,7 @@ impl<'hir> Item<'hir> {
3313
3313
3314
3314
expect_mod, & ' hir Mod <' hir>, ItemKind :: Mod ( m) , m;
3315
3315
3316
- expect_foreign_mod, ( Abi , & ' hir [ ForeignItemRef ] ) ,
3316
+ expect_foreign_mod, ( ExternAbi , & ' hir [ ForeignItemRef ] ) ,
3317
3317
ItemKind :: ForeignMod { abi, items } , ( * abi, items) ;
3318
3318
3319
3319
expect_global_asm, & ' hir InlineAsm <' hir>, ItemKind :: GlobalAsm ( asm) , asm;
@@ -3386,7 +3386,7 @@ pub struct FnHeader {
3386
3386
pub safety : Safety ,
3387
3387
pub constness : Constness ,
3388
3388
pub asyncness : IsAsync ,
3389
- pub abi : Abi ,
3389
+ pub abi : ExternAbi ,
3390
3390
}
3391
3391
3392
3392
impl FnHeader {
@@ -3428,7 +3428,7 @@ pub enum ItemKind<'hir> {
3428
3428
/// A module.
3429
3429
Mod ( & ' hir Mod < ' hir > ) ,
3430
3430
/// An external module, e.g. `extern { .. }`.
3431
- ForeignMod { abi : Abi , items : & ' hir [ ForeignItemRef ] } ,
3431
+ ForeignMod { abi : ExternAbi , items : & ' hir [ ForeignItemRef ] } ,
3432
3432
/// Module-level inline assembly (from `global_asm!`).
3433
3433
GlobalAsm ( & ' hir InlineAsm < ' hir > ) ,
3434
3434
/// A type alias, e.g., `type Foo = Bar<u8>`.
0 commit comments