Skip to content

Commit fbc4750

Browse files
authored
Merge pull request #4758 from rust-lang/rustup-2025-12-11
Automatic Rustup
2 parents 2b321f2 + 6262693 commit fbc4750

File tree

4 files changed

+2
-33
lines changed

4 files changed

+2
-33
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
36b2369c91d32c2659887ed6fe3d570640f44fd2
1+
f5209000832c9d3bc29c91f4daef4ca9f28dc797

src/shims/foreign_items.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;
1212
use rustc_middle::mir::interpret::AllocInit;
1313
use rustc_middle::ty::{Instance, Ty};
1414
use rustc_middle::{mir, ty};
15-
use rustc_session::config::OomStrategy;
1615
use rustc_span::Symbol;
1716
use rustc_target::callconv::FnAbi;
1817
use 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" => {

tests/panic/alloc_error_handler_panic.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/panic/alloc_error_handler_panic.stderr

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)