@@ -12,7 +12,6 @@ use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;
1212use rustc_middle:: mir:: interpret:: AllocInit ;
1313use rustc_middle:: ty:: { Instance , Ty } ;
1414use rustc_middle:: { mir, ty} ;
15- use rustc_session:: config:: OomStrategy ;
1615use rustc_span:: Symbol ;
1716use rustc_target:: callconv:: FnAbi ;
1817use rustc_target:: spec:: { Arch , Os } ;
@@ -305,18 +304,12 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
305304 // Here we dispatch all the shims for foreign functions. If you have a platform specific
306305 // shim, add it to the corresponding submodule.
307306 match link_name. as_str ( ) {
308- // Magic functions Rust emits (and not as part of the allocator shim).
307+ // Magic function Rust emits (and not as part of the allocator shim).
309308 name if name == this. mangle_internal_symbol ( NO_ALLOC_SHIM_IS_UNSTABLE ) => {
310309 // This is a no-op shim that only exists to prevent making the allocator shims
311310 // instantly stable.
312311 let [ ] = this. check_shim_sig_lenient ( abi, CanonAbi :: Rust , link_name, args) ?;
313312 }
314- name if name == this. mangle_internal_symbol ( OomStrategy :: SYMBOL ) => {
315- // Gets the value of the `oom` option.
316- let [ ] = this. check_shim_sig_lenient ( abi, CanonAbi :: Rust , link_name, args) ?;
317- let val = this. tcx . sess . opts . unstable_opts . oom . should_panic ( ) ;
318- this. write_int ( val, dest) ?;
319- }
320313
321314 // Miri-specific extern functions
322315 "miri_alloc" => {
0 commit comments