From cd558a374082b4d1c4cecfd3bc6f3db7576f0040 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sat, 30 May 2015 13:49:55 +0530 Subject: [PATCH] Add Sync bound to ScopedKey (fixes #25894) --- src/libstd/thread/scoped_tls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/thread/scoped_tls.rs b/src/libstd/thread/scoped_tls.rs index dda1db9aecea4..32826bc8a416c 100644 --- a/src/libstd/thread/scoped_tls.rs +++ b/src/libstd/thread/scoped_tls.rs @@ -193,7 +193,7 @@ mod imp { pub struct KeyInner { inner: Cell<*mut T> } - unsafe impl ::marker::Sync for KeyInner { } + unsafe impl ::marker::Sync for KeyInner { } impl KeyInner { pub const fn new() -> KeyInner { @@ -221,7 +221,7 @@ mod imp { pub marker: marker::PhantomData>, } - unsafe impl marker::Sync for KeyInner { } + unsafe impl marker::Sync for KeyInner { } impl KeyInner { pub const fn new() -> KeyInner {