Skip to content

Commit bddced1

Browse files
committed
Add Sync bound to ScopedKey (fixes #25894)
1 parent 474c6e0 commit bddced1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/thread/scoped_tls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ mod imp {
221221
pub marker: marker::PhantomData<Cell<T>>,
222222
}
223223

224-
unsafe impl<T> marker::Sync for KeyInner<T> { }
224+
unsafe impl<T: marker::Sync> marker::Sync for KeyInner<T> { }
225225

226226
impl<T> KeyInner<T> {
227227
pub const fn new() -> KeyInner<T> {

0 commit comments

Comments
 (0)