Skip to content

Commit ebc750f

Browse files
committed
resolve: Do not finalize shadowed bindings
I.e. do not mark them as used, or non-speculative loaded, or similar. Previously they were sometimes finalized during early resolution, causing issues like rust-lang#144793 (comment).
1 parent c5cdb3d commit ebc750f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

alloctests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#![deny(unsafe_op_in_unsafe_fn)]
4747

4848
extern crate alloc;
49-
extern crate test;
5049

5150
use std::hash::{DefaultHasher, Hash, Hasher};
5251

std/src/sys/pal/unix/stack_overflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ mod imp {
7272
use crate::sync::OnceLock;
7373
use crate::sync::atomic::{Atomic, AtomicBool, AtomicPtr, AtomicUsize, Ordering};
7474
use crate::sys::pal::unix::os;
75-
use crate::{io, mem, panic, ptr};
75+
use crate::{io, mem, ptr};
7676

7777
// Signal handler for the SIGSEGV and SIGBUS handlers. We've got guard pages
7878
// (unmapped pages) at the end of every thread's stack, so if a thread ends

0 commit comments

Comments
 (0)