@@ -18,6 +18,7 @@ use std::cell::Cell;
18
18
use std:: iter;
19
19
use std:: ops:: Bound ;
20
20
21
+ use rustc_abi:: ExternAbi ;
21
22
use rustc_ast:: Recovered ;
22
23
use rustc_data_structures:: captures:: Captures ;
23
24
use rustc_data_structures:: fx:: { FxHashSet , FxIndexMap } ;
@@ -38,7 +39,6 @@ use rustc_middle::ty::{self, AdtKind, Const, IsSuggestable, Ty, TyCtxt, TypingMo
38
39
use rustc_middle:: { bug, span_bug} ;
39
40
use rustc_span:: symbol:: { Ident , Symbol , kw, sym} ;
40
41
use rustc_span:: { DUMMY_SP , Span } ;
41
- use rustc_target:: spec:: abi;
42
42
use rustc_trait_selection:: error_reporting:: traits:: suggestions:: NextTypeParamName ;
43
43
use rustc_trait_selection:: infer:: InferCtxtExt ;
44
44
use rustc_trait_selection:: traits:: ObligationCtxt ;
@@ -1361,7 +1361,7 @@ fn fn_sig(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::EarlyBinder<'_, ty::PolyFn
1361
1361
( Bound :: Unbounded , Bound :: Unbounded ) => hir:: Safety :: Safe ,
1362
1362
_ => hir:: Safety :: Unsafe ,
1363
1363
} ;
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 ) )
1365
1365
}
1366
1366
1367
1367
Expr ( & hir:: Expr { kind : hir:: ExprKind :: Closure { .. } , .. } ) => {
@@ -1686,10 +1686,10 @@ fn compute_sig_of_foreign_fn_decl<'tcx>(
1686
1686
tcx : TyCtxt < ' tcx > ,
1687
1687
def_id : LocalDefId ,
1688
1688
decl : & ' tcx hir:: FnDecl < ' tcx > ,
1689
- abi : abi :: Abi ,
1689
+ abi : ExternAbi ,
1690
1690
safety : hir:: Safety ,
1691
1691
) -> ty:: PolyFnSig < ' tcx > {
1692
- let safety = if abi == abi :: Abi :: RustIntrinsic {
1692
+ let safety = if abi == ExternAbi :: RustIntrinsic {
1693
1693
intrinsic_operation_unsafety ( tcx, def_id)
1694
1694
} else {
1695
1695
safety
@@ -1700,7 +1700,7 @@ fn compute_sig_of_foreign_fn_decl<'tcx>(
1700
1700
1701
1701
// Feature gate SIMD types in FFI, since I am not sure that the
1702
1702
// 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 ( ) {
1704
1704
let check = |hir_ty : & hir:: Ty < ' _ > , ty : Ty < ' _ > | {
1705
1705
if ty. is_simd ( ) {
1706
1706
let snip = tcx
0 commit comments