@@ -3,7 +3,7 @@ use std::time::Duration;
33use std:: { cmp, iter} ;
44
55use rand:: RngCore ;
6- use rustc_abi:: { Align , ExternAbi , FieldIdx , FieldsShape , Size , Variants } ;
6+ use rustc_abi:: { Align , CanonAbi , ExternAbi , FieldIdx , FieldsShape , Size , Variants } ;
77use rustc_apfloat:: Float ;
88use rustc_apfloat:: ieee:: { Double , Half , Quad , Single } ;
99use rustc_hir:: Safety ;
@@ -18,7 +18,7 @@ use rustc_middle::ty::{self, Binder, FloatTy, FnSig, IntTy, Ty, TyCtxt, UintTy};
1818use rustc_session:: config:: CrateType ;
1919use rustc_span:: { Span , Symbol } ;
2020use rustc_symbol_mangling:: mangle_internal_symbol;
21- use rustc_target:: callconv:: { Conv , FnAbi } ;
21+ use rustc_target:: callconv:: FnAbi ;
2222
2323use crate :: * ;
2424
@@ -936,11 +936,11 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
936936 fn check_callconv < ' a > (
937937 & self ,
938938 fn_abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
939- exp_abi : Conv ,
939+ exp_abi : CanonAbi ,
940940 ) -> InterpResult < ' a , ( ) > {
941941 if fn_abi. conv != exp_abi {
942942 throw_ub_format ! (
943- "calling a function with calling convention {exp_abi} using caller calling convention {}" ,
943+ r# "calling a function with calling convention " {exp_abi}" using caller calling convention " {}""# ,
944944 fn_abi. conv
945945 ) ;
946946 }
@@ -973,7 +973,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
973973 fn check_abi_and_shim_symbol_clash (
974974 & mut self ,
975975 abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
976- exp_abi : Conv ,
976+ exp_abi : CanonAbi ,
977977 link_name : Symbol ,
978978 ) -> InterpResult < ' tcx , ( ) > {
979979 self . check_callconv ( abi, exp_abi) ?;
@@ -998,7 +998,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
998998 fn check_shim < ' a , const N : usize > (
999999 & mut self ,
10001000 abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
1001- exp_abi : Conv ,
1001+ exp_abi : CanonAbi ,
10021002 link_name : Symbol ,
10031003 args : & ' a [ OpTy < ' tcx > ] ,
10041004 ) -> InterpResult < ' tcx , & ' a [ OpTy < ' tcx > ; N ] > {
@@ -1098,7 +1098,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
10981098 fn check_shim_variadic < ' a , const N : usize > (
10991099 & mut self ,
11001100 abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
1101- exp_abi : Conv ,
1101+ exp_abi : CanonAbi ,
11021102 link_name : Symbol ,
11031103 args : & ' a [ OpTy < ' tcx > ] ,
11041104 ) -> InterpResult < ' tcx , ( & ' a [ OpTy < ' tcx > ; N ] , & ' a [ OpTy < ' tcx > ] ) >
0 commit comments