diff options
| author | Georg Semmler <github@weiznich.de> | 2025-09-10 07:55:03 +0200 |
|---|---|---|
| committer | Georg Semmler <github@weiznich.de> | 2025-09-10 07:55:03 +0200 |
| commit | ef7b036458552bb5a2ab1cdef8e39a17d9f68839 (patch) | |
| tree | 01d63f3af5a300f9bad90c0682432e22fa0db4b7 /library | |
| parent | 30fd32eca506a96e228abdd6ab18f6f1054b4db3 (diff) | |
| download | rust-ef7b036458552bb5a2ab1cdef8e39a17d9f68839.tar.gz rust-ef7b036458552bb5a2ab1cdef8e39a17d9f68839.zip | |
Add suggestions
Diffstat (limited to 'library')
| -rw-r--r-- | library/std/src/sync/barrier.rs | 5 |
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 |
