1414use rustc_ast:: Mutability ;
1515use rustc_middle:: { mir, ty} ;
1616use rustc_target:: spec:: PanicStrategy ;
17+ use rustc_abi:: ExternAbi ;
18+
1719
1820use self :: helpers:: check_arg_count;
1921use crate :: * ;
@@ -87,7 +89,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
8789 trace ! ( "try_fn: {:?}" , f_instance) ;
8890 this. call_function (
8991 f_instance,
90- Conv :: Rust ,
92+ ExternAbi :: Rust ,
9193 & [ data. clone ( ) ] ,
9294 None ,
9395 // Directly return to caller.
@@ -138,7 +140,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
138140 trace ! ( "catch_fn: {:?}" , f_instance) ;
139141 this. call_function (
140142 f_instance,
141- Conv :: Rust ,
143+ ExternAbi :: Rust ,
142144 & [ catch_unwind. data , payload] ,
143145 None ,
144146 // Directly return to caller of `try`.
@@ -167,7 +169,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
167169 let panic = ty:: Instance :: mono ( this. tcx . tcx , panic) ;
168170 this. call_function (
169171 panic,
170- Conv :: Rust ,
172+ ExternAbi :: Rust ,
171173 & [ this. mplace_to_ref ( & msg) ?] ,
172174 None ,
173175 StackPopCleanup :: Goto { ret : None , unwind } ,
@@ -186,7 +188,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
186188 let panic = ty:: Instance :: mono ( this. tcx . tcx , panic) ;
187189 this. call_function (
188190 panic,
189- Conv :: Rust ,
191+ ExternAbi :: Rust ,
190192 & [ this. mplace_to_ref ( & msg) ?] ,
191193 None ,
192194 StackPopCleanup :: Goto { ret : None , unwind : mir:: UnwindAction :: Unreachable } ,
@@ -215,7 +217,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
215217 let panic_bounds_check = ty:: Instance :: mono ( this. tcx . tcx , panic_bounds_check) ;
216218 this. call_function (
217219 panic_bounds_check,
218- Conv :: Rust ,
220+ ExternAbi :: Rust ,
219221 & [ index, len] ,
220222 None ,
221223 StackPopCleanup :: Goto { ret : None , unwind } ,
@@ -236,7 +238,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
236238 ty:: Instance :: mono ( this. tcx . tcx , panic_misaligned_pointer_dereference) ;
237239 this. call_function (
238240 panic_misaligned_pointer_dereference,
239- Conv :: Rust ,
241+ ExternAbi :: Rust ,
240242 & [ required, found] ,
241243 None ,
242244 StackPopCleanup :: Goto { ret : None , unwind } ,
@@ -247,7 +249,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
247249 // Call the lang item associated with this message.
248250 let fn_item = this. tcx . require_lang_item ( msg. panic_function ( ) , None ) ;
249251 let instance = ty:: Instance :: mono ( this. tcx . tcx , fn_item) ;
250- this. call_function ( instance, Conv :: Rust , & [ ] , None , StackPopCleanup :: Goto {
252+ this. call_function ( instance, ExternAbi :: Rust , & [ ] , None , StackPopCleanup :: Goto {
251253 ret : None ,
252254 unwind,
253255 } ) ?;
0 commit comments