@@ -18,6 +18,7 @@ use std::cell::Cell;
1818use std:: iter;
1919use std:: ops:: Bound ;
2020
21+ use rustc_abi:: ExternAbi ;
2122use rustc_ast:: Recovered ;
2223use rustc_data_structures:: captures:: Captures ;
2324use rustc_data_structures:: fx:: { FxHashSet , FxIndexMap } ;
@@ -38,7 +39,6 @@ use rustc_middle::ty::{self, AdtKind, Const, IsSuggestable, Ty, TyCtxt, TypingMo
3839use rustc_middle:: { bug, span_bug} ;
3940use rustc_span:: symbol:: { Ident , Symbol , kw, sym} ;
4041use rustc_span:: { DUMMY_SP , Span } ;
41- use rustc_target:: spec:: abi;
4242use rustc_trait_selection:: error_reporting:: traits:: suggestions:: NextTypeParamName ;
4343use rustc_trait_selection:: infer:: InferCtxtExt ;
4444use rustc_trait_selection:: traits:: ObligationCtxt ;
@@ -1361,7 +1361,7 @@ fn fn_sig(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::EarlyBinder<'_, ty::PolyFn
13611361 ( Bound :: Unbounded , Bound :: Unbounded ) => hir:: Safety :: Safe ,
13621362 _ => hir:: Safety :: Unsafe ,
13631363 } ;
1364- ty:: Binder :: dummy ( tcx. mk_fn_sig ( inputs, ty, false , safety, abi :: Abi :: Rust ) )
1364+ ty:: Binder :: dummy ( tcx. mk_fn_sig ( inputs, ty, false , safety, ExternAbi :: Rust ) )
13651365 }
13661366
13671367 Expr ( & hir:: Expr { kind : hir:: ExprKind :: Closure { .. } , .. } ) => {
@@ -1686,10 +1686,10 @@ fn compute_sig_of_foreign_fn_decl<'tcx>(
16861686 tcx : TyCtxt < ' tcx > ,
16871687 def_id : LocalDefId ,
16881688 decl : & ' tcx hir:: FnDecl < ' tcx > ,
1689- abi : abi :: Abi ,
1689+ abi : ExternAbi ,
16901690 safety : hir:: Safety ,
16911691) -> ty:: PolyFnSig < ' tcx > {
1692- let safety = if abi == abi :: Abi :: RustIntrinsic {
1692+ let safety = if abi == ExternAbi :: RustIntrinsic {
16931693 intrinsic_operation_unsafety ( tcx, def_id)
16941694 } else {
16951695 safety
@@ -1700,7 +1700,7 @@ fn compute_sig_of_foreign_fn_decl<'tcx>(
17001700
17011701 // Feature gate SIMD types in FFI, since I am not sure that the
17021702 // ABIs are handled at all correctly. -huonw
1703- if abi != abi :: Abi :: RustIntrinsic && !tcx. features ( ) . simd_ffi ( ) {
1703+ if abi != ExternAbi :: RustIntrinsic && !tcx. features ( ) . simd_ffi ( ) {
17041704 let check = |hir_ty : & hir:: Ty < ' _ > , ty : Ty < ' _ > | {
17051705 if ty. is_simd ( ) {
17061706 let snip = tcx
0 commit comments