77use std:: cell:: Cell ;
88use std:: collections:: hash_map:: Entry ;
99
10+ use rustc_abi:: { ExternAbi , Size } ;
1011use rustc_ast:: { AttrStyle , LitKind , MetaItemInner , MetaItemKind , MetaItemLit , ast} ;
1112use rustc_data_structures:: fx:: FxHashMap ;
1213use rustc_errors:: { Applicability , DiagCtxtHandle , IntoDiagArg , MultiSpan , StashKey } ;
@@ -32,8 +33,6 @@ use rustc_session::lint::builtin::{
3233} ;
3334use rustc_session:: parse:: feature_err;
3435use rustc_span:: { BytePos , DUMMY_SP , Span , Symbol , kw, sym} ;
35- use rustc_target:: abi:: Size ;
36- use rustc_target:: spec:: abi:: Abi ;
3736use rustc_trait_selection:: error_reporting:: InferCtxtErrorExt ;
3837use rustc_trait_selection:: infer:: { TyCtxtInferExt , ValuePairs } ;
3938use rustc_trait_selection:: traits:: ObligationCtxt ;
@@ -1519,7 +1518,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
15191518 if target == Target :: ForeignMod
15201519 && let hir:: Node :: Item ( item) = self . tcx . hir_node ( hir_id)
15211520 && let Item { kind : ItemKind :: ForeignMod { abi, .. } , .. } = item
1522- && !matches ! ( abi, Abi :: Rust | Abi :: RustIntrinsic )
1521+ && !matches ! ( abi, ExternAbi :: Rust | ExternAbi :: RustIntrinsic )
15231522 {
15241523 return ;
15251524 }
@@ -2445,7 +2444,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
24452444 token_stream,
24462445 false ,
24472446 Safety :: Safe ,
2448- Abi :: Rust ,
2447+ ExternAbi :: Rust ,
24492448 ) ;
24502449
24512450 if let Err ( terr) = ocx. eq ( & cause, param_env, expected_sig, sig) {
0 commit comments