@@ -25,7 +25,7 @@ use rustc_middle::ty::{
2525 TypeVisitable , TypeVisitableExt , fold_regions,
2626} ;
2727use rustc_session:: lint:: builtin:: UNINHABITED_STATIC ;
28- use rustc_target:: spec:: { AbiMap , AbiMapping } ;
28+ use rustc_target:: spec:: AbiMapping ;
2929use rustc_trait_selection:: error_reporting:: InferCtxtErrorExt ;
3030use rustc_trait_selection:: error_reporting:: traits:: on_unimplemented:: OnUnimplementedDirective ;
3131use rustc_trait_selection:: traits;
@@ -55,7 +55,7 @@ pub fn check_abi(tcx: TyCtxt<'_>, hir_id: hir::HirId, span: Span, abi: ExternAbi
5555 // FIXME: this should be checked earlier, e.g. in `rustc_ast_lowering`, to fix
5656 // things like #86232.
5757
58- match AbiMap :: from_target ( & tcx. sess . target ) . canonize_abi ( abi, false ) {
58+ match tcx. sess . target . abi_map ( ) . canonize_abi ( abi, false ) {
5959 AbiMapping :: Direct ( ..) => ( ) ,
6060 AbiMapping :: Invalid => {
6161 let mut err = struct_span_code_err ! (
@@ -79,7 +79,7 @@ pub fn check_abi(tcx: TyCtxt<'_>, hir_id: hir::HirId, span: Span, abi: ExternAbi
7979pub fn check_abi_fn_ptr ( tcx : TyCtxt < ' _ > , hir_id : hir:: HirId , span : Span , abi : ExternAbi ) {
8080 // This is always an FCW, even for `AbiMapping::Invalid`, since we started linting later than
8181 // in `check_abi` above.
82- match AbiMap :: from_target ( & tcx. sess . target ) . canonize_abi ( abi, false ) {
82+ match tcx. sess . target . abi_map ( ) . canonize_abi ( abi, false ) {
8383 AbiMapping :: Direct ( ..) => ( ) ,
8484 // This is not a redundant match arm: these ABIs started linting after introducing
8585 // UNSUPPORTED_FN_PTR_CALLING_CONVENTIONS already existed and we want to
0 commit comments