@@ -5,6 +5,7 @@ use std::time::Duration;
5
5
use std:: { cmp, iter} ;
6
6
7
7
use rand:: RngCore ;
8
+ use rustc_abi:: { Align , ExternAbi , FieldIdx , FieldsShape , Size , Variants } ;
8
9
use rustc_apfloat:: Float ;
9
10
use rustc_apfloat:: ieee:: { Double , Half , Quad , Single } ;
10
11
use rustc_hir:: Safety ;
@@ -18,8 +19,6 @@ use rustc_middle::ty::layout::{FnAbiOf, LayoutOf, MaybeResult, TyAndLayout};
18
19
use rustc_middle:: ty:: { self , FloatTy , IntTy , Ty , TyCtxt , UintTy } ;
19
20
use rustc_session:: config:: CrateType ;
20
21
use rustc_span:: { Span , Symbol } ;
21
- use rustc_target:: abi:: { Align , FieldIdx , FieldsShape , Size , Variants } ;
22
- use rustc_target:: spec:: abi:: Abi ;
23
22
24
23
use crate :: * ;
25
24
@@ -157,7 +156,7 @@ pub fn iter_exported_symbols<'tcx>(
157
156
for cnum in dependency_format. 1 . iter ( ) . enumerate ( ) . filter_map ( |( num, & linkage) | {
158
157
// We add 1 to the number because that's what rustc also does everywhere it
159
158
// calls `CrateNum::new`...
160
- #[ allow ( clippy:: arithmetic_side_effects) ]
159
+ #[ expect ( clippy:: arithmetic_side_effects) ]
161
160
( linkage != Linkage :: NotLinked ) . then_some ( CrateNum :: new ( num + 1 ) )
162
161
} ) {
163
162
// We can ignore `_export_info` here: we are a Rust crate, and everything is exported
@@ -435,7 +434,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
435
434
fn call_function (
436
435
& mut self ,
437
436
f : ty:: Instance < ' tcx > ,
438
- caller_abi : Abi ,
437
+ caller_abi : ExternAbi ,
439
438
args : & [ ImmTy < ' tcx > ] ,
440
439
dest : Option < & MPlaceTy < ' tcx > > ,
441
440
stack_pop : StackPopCleanup ,
@@ -917,7 +916,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
917
916
}
918
917
919
918
/// Check that the ABI is what we expect.
920
- fn check_abi < ' a > ( & self , abi : Abi , exp_abi : Abi ) -> InterpResult < ' a , ( ) > {
919
+ fn check_abi < ' a > ( & self , abi : ExternAbi , exp_abi : ExternAbi ) -> InterpResult < ' a , ( ) > {
921
920
if abi != exp_abi {
922
921
throw_ub_format ! (
923
922
"calling a function with ABI {} using caller ABI {}" ,
@@ -953,8 +952,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
953
952
954
953
fn check_abi_and_shim_symbol_clash (
955
954
& mut self ,
956
- abi : Abi ,
957
- exp_abi : Abi ,
955
+ abi : ExternAbi ,
956
+ exp_abi : ExternAbi ,
958
957
link_name : Symbol ,
959
958
) -> InterpResult < ' tcx , ( ) > {
960
959
self . check_abi ( abi, exp_abi) ?;
@@ -978,8 +977,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
978
977
979
978
fn check_shim < ' a , const N : usize > (
980
979
& mut self ,
981
- abi : Abi ,
982
- exp_abi : Abi ,
980
+ abi : ExternAbi ,
981
+ exp_abi : ExternAbi ,
983
982
link_name : Symbol ,
984
983
args : & ' a [ OpTy < ' tcx > ] ,
985
984
) -> InterpResult < ' tcx , & ' a [ OpTy < ' tcx > ; N ] >
0 commit comments