about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorGeorg Semmler <github@weiznich.de>2025-09-10 07:55:03 +0200
committerGeorg Semmler <github@weiznich.de>2025-09-10 07:55:03 +0200
commitef7b036458552bb5a2ab1cdef8e39a17d9f68839 (patch)
tree01d63f3af5a300f9bad90c0682432e22fa0db4b7 /library
parent30fd32eca506a96e228abdd6ab18f6f1054b4db3 (diff)
downloadrust-ef7b036458552bb5a2ab1cdef8e39a17d9f68839.tar.gz
rust-ef7b036458552bb5a2ab1cdef8e39a17d9f68839.zip
Add suggestions
Diffstat (limited to 'library')
-rw-r--r--library/std/src/sync/barrier.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/std/src/sync/barrier.rs b/library/std/src/sync/barrier.rs
index 47d63c57ff1..8988126bd90 100644
--- a/library/std/src/sync/barrier.rs
+++ b/library/std/src/sync/barrier.rs
@@ -1,6 +1,5 @@
-use core::panic::RefUnwindSafe;
-
 use crate::fmt;
+use crate::panic::RefUnwindSafe;
 use crate::sync::nonpoison::{Condvar, Mutex};
 
 /// A barrier enables multiple threads to synchronize the beginning
@@ -33,7 +32,7 @@ pub struct Barrier {
     num_threads: usize,
 }
 
-#[stable(feature = "rust1", since = "1.0.0")]
+#[stable(feature = "unwind_safe_lock_refs", since = "1.12.0")]
 impl RefUnwindSafe for Barrier {}
 
 // The inner state of a double barrier