about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-08-01 21:55:11 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-09-25 20:36:14 +0300
commitf89660e4aa018401ca993f0df190e5f4c4a6799b (patch)
tree6dcf4590f3e62fb704208b16306abbc339d8823c /library
parent6f34f4ee074ce0affc7bbf4e2c835f66cd576f13 (diff)
downloadrust-f89660e4aa018401ca993f0df190e5f4c4a6799b.tar.gz
rust-f89660e4aa018401ca993f0df190e5f4c4a6799b.zip
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 https://github.com/rust-lang/rust/pull/144793#issuecomment-3168108005.
Diffstat (limited to 'library')
-rw-r--r--library/alloctests/tests/lib.rs1
-rw-r--r--library/std/src/sys/pal/unix/stack_overflow.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/library/alloctests/tests/lib.rs b/library/alloctests/tests/lib.rs
index 8c3ce156f3c..4947b38ba89 100644
--- a/library/alloctests/tests/lib.rs
+++ b/library/alloctests/tests/lib.rs
@@ -46,7 +46,6 @@
 #![deny(unsafe_op_in_unsafe_fn)]
 
 extern crate alloc;
-extern crate test;
 
 use std::hash::{DefaultHasher, Hash, Hasher};
 
diff --git a/library/std/src/sys/pal/unix/stack_overflow.rs b/library/std/src/sys/pal/unix/stack_overflow.rs
index 0d2100d66bc..51463eef5b7 100644
--- a/library/std/src/sys/pal/unix/stack_overflow.rs
+++ b/library/std/src/sys/pal/unix/stack_overflow.rs
@@ -72,7 +72,7 @@ mod imp {
     use crate::sync::OnceLock;
     use crate::sync::atomic::{Atomic, AtomicBool, AtomicPtr, AtomicUsize, Ordering};
     use crate::sys::pal::unix::os;
-    use crate::{io, mem, panic, ptr};
+    use crate::{io, mem, ptr};
 
     // Signal handler for the SIGSEGV and SIGBUS handlers. We've got guard pages
     // (unmapped pages) at the end of every thread's stack, so if a thread ends