Skip to content

Commit ef7b036

Browse files
committed
Add suggestions
1 parent 30fd32e commit ef7b036

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/std/src/sync/barrier.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
use core::panic::RefUnwindSafe;
2-
31
use crate::fmt;
2+
use crate::panic::RefUnwindSafe;
43
use crate::sync::nonpoison::{Condvar, Mutex};
54

65
/// A barrier enables multiple threads to synchronize the beginning
@@ -33,7 +32,7 @@ pub struct Barrier {
3332
num_threads: usize,
3433
}
3534

36-
#[stable(feature = "rust1", since = "1.0.0")]
35+
#[stable(feature = "unwind_safe_lock_refs", since = "1.12.0")]
3736
impl RefUnwindSafe for Barrier {}
3837

3938
// The inner state of a double barrier

0 commit comments

Comments
 (0)