@@ -91,12 +91,11 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
9191 // Now we make a function call, and pass `data` as first and only argument.
9292 let f_instance = this. get_ptr_fn ( try_fn) ?. as_instance ( ) ?;
9393 trace ! ( "try_fn: {:?}" , f_instance) ;
94- let ret_place = MPlaceTy :: dangling ( this. machine . layouts . unit ) . into ( ) ;
9594 this. call_function (
9695 f_instance,
9796 Abi :: Rust ,
9897 & [ data. into ( ) ] ,
99- & ret_place ,
98+ None ,
10099 // Directly return to caller.
101100 StackPopCleanup :: Goto { ret : Some ( ret) , unwind : StackPopUnwind :: Skip } ,
102101 ) ?;
@@ -144,12 +143,11 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
144143 let f_instance =
145144 this. get_ptr_fn ( this. scalar_to_ptr ( catch_unwind. catch_fn ) ?) ?. as_instance ( ) ?;
146145 trace ! ( "catch_fn: {:?}" , f_instance) ;
147- let ret_place = MPlaceTy :: dangling ( this. machine . layouts . unit ) . into ( ) ;
148146 this. call_function (
149147 f_instance,
150148 Abi :: Rust ,
151149 & [ catch_unwind. data . into ( ) , payload. into ( ) ] ,
152- & ret_place ,
150+ None ,
153151 // Directly return to caller of `try`.
154152 StackPopCleanup :: Goto { ret : Some ( catch_unwind. ret ) , unwind : StackPopUnwind :: Skip } ,
155153 ) ?;
@@ -175,7 +173,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
175173 panic,
176174 Abi :: Rust ,
177175 & [ msg. to_ref ( this) ] ,
178- & MPlaceTy :: dangling ( this . machine . layouts . unit ) . into ( ) ,
176+ None ,
179177 StackPopCleanup :: Goto { ret : None , unwind } ,
180178 )
181179 }
@@ -204,7 +202,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
204202 panic_bounds_check,
205203 Abi :: Rust ,
206204 & [ index. into ( ) , len. into ( ) ] ,
207- & MPlaceTy :: dangling ( this . machine . layouts . unit ) . into ( ) ,
205+ None ,
208206 StackPopCleanup :: Goto {
209207 ret : None ,
210208 unwind : match unwind {
0 commit comments