1- use  rustc_abi:: { ExternAbi ,   Size } ; 
1+ use  rustc_abi:: Size ; 
22use  rustc_middle:: ty:: layout:: LayoutOf  as  _; 
33use  rustc_middle:: ty:: { self ,  Instance ,  Ty } ; 
44use  rustc_span:: { BytePos ,  Loc ,  Symbol ,  hygiene} ; 
5+ use  rustc_target:: callconv:: { Conv ,  FnAbi } ; 
56
67use  crate :: helpers:: check_min_arg_count; 
78use  crate :: * ; 
@@ -10,13 +11,13 @@ impl<'tcx> EvalContextExt<'tcx> for crate::MiriInterpCx<'tcx> {}
1011pub  trait  EvalContextExt < ' tcx > :  crate :: MiriInterpCxExt < ' tcx >  { 
1112    fn  handle_miri_backtrace_size ( 
1213        & mut  self , 
13-         abi :  ExternAbi , 
14+         abi :  & FnAbi < ' tcx ,   Ty < ' tcx > > , 
1415        link_name :  Symbol , 
1516        args :  & [ OpTy < ' tcx > ] , 
1617        dest :  & MPlaceTy < ' tcx > , 
1718    )  -> InterpResult < ' tcx >  { 
1819        let  this = self . eval_context_mut ( ) ; 
19-         let  [ flags]  = this. check_shim ( abi,  ExternAbi :: Rust ,  link_name,  args) ?; 
20+         let  [ flags]  = this. check_shim ( abi,  Conv :: Rust ,  link_name,  args) ?; 
2021
2122        let  flags = this. read_scalar ( flags) ?. to_u64 ( ) ?; 
2223        if  flags != 0  { 
@@ -30,7 +31,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
3031
3132    fn  handle_miri_get_backtrace ( 
3233        & mut  self , 
33-         abi :  ExternAbi , 
34+         abi :  & FnAbi < ' tcx ,   Ty < ' tcx > > , 
3435        link_name :  Symbol , 
3536        args :  & [ OpTy < ' tcx > ] , 
3637        dest :  & MPlaceTy < ' tcx > , 
@@ -71,7 +72,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
7172            // storage for pointers is allocated by miri 
7273            // deallocating the slice is undefined behavior with a custom global allocator 
7374            0  => { 
74-                 let  [ _flags]  = this. check_shim ( abi,  ExternAbi :: Rust ,  link_name,  args) ?; 
75+                 let  [ _flags]  = this. check_shim ( abi,  Conv :: Rust ,  link_name,  args) ?; 
7576
7677                let  alloc = this. allocate ( array_layout,  MiriMemoryKind :: Rust . into ( ) ) ?; 
7778
@@ -86,7 +87,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
8687            } 
8788            // storage for pointers is allocated by the caller 
8889            1  => { 
89-                 let  [ _flags,  buf]  = this. check_shim ( abi,  ExternAbi :: Rust ,  link_name,  args) ?; 
90+                 let  [ _flags,  buf]  = this. check_shim ( abi,  Conv :: Rust ,  link_name,  args) ?; 
9091
9192                let  buf_place = this. deref_pointer ( buf) ?; 
9293
@@ -136,13 +137,13 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
136137
137138    fn  handle_miri_resolve_frame ( 
138139        & mut  self , 
139-         abi :  ExternAbi , 
140+         abi :  & FnAbi < ' tcx ,   Ty < ' tcx > > , 
140141        link_name :  Symbol , 
141142        args :  & [ OpTy < ' tcx > ] , 
142143        dest :  & MPlaceTy < ' tcx > , 
143144    )  -> InterpResult < ' tcx >  { 
144145        let  this = self . eval_context_mut ( ) ; 
145-         let  [ ptr,  flags]  = this. check_shim ( abi,  ExternAbi :: Rust ,  link_name,  args) ?; 
146+         let  [ ptr,  flags]  = this. check_shim ( abi,  Conv :: Rust ,  link_name,  args) ?; 
146147
147148        let  flags = this. read_scalar ( flags) ?. to_u64 ( ) ?; 
148149
@@ -207,14 +208,14 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
207208
208209    fn  handle_miri_resolve_frame_names ( 
209210        & mut  self , 
210-         abi :  ExternAbi , 
211+         abi :  & FnAbi < ' tcx ,   Ty < ' tcx > > , 
211212        link_name :  Symbol , 
212213        args :  & [ OpTy < ' tcx > ] , 
213214    )  -> InterpResult < ' tcx >  { 
214215        let  this = self . eval_context_mut ( ) ; 
215216
216217        let  [ ptr,  flags,  name_ptr,  filename_ptr]  =
217-             this. check_shim ( abi,  ExternAbi :: Rust ,  link_name,  args) ?; 
218+             this. check_shim ( abi,  Conv :: Rust ,  link_name,  args) ?; 
218219
219220        let  flags = this. read_scalar ( flags) ?. to_u64 ( ) ?; 
220221        if  flags != 0  { 
0 commit comments