We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 474c6e0 commit cd558a3Copy full SHA for cd558a3
src/libstd/thread/scoped_tls.rs
@@ -193,7 +193,7 @@ mod imp {
193
194
pub struct KeyInner<T> { inner: Cell<*mut T> }
195
196
- unsafe impl<T> ::marker::Sync for KeyInner<T> { }
+ unsafe impl<T: ::marker::Sync> ::marker::Sync for KeyInner<T> { }
197
198
impl<T> KeyInner<T> {
199
pub const fn new() -> KeyInner<T> {
@@ -221,7 +221,7 @@ mod imp {
221
pub marker: marker::PhantomData<Cell<T>>,
222
}
223
224
- unsafe impl<T> marker::Sync for KeyInner<T> { }
+ unsafe impl<T: marker::Sync> marker::Sync for KeyInner<T> { }
225
226
227
0 commit comments