From fb803a857000813e4d572900799f0498fb20050b Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Sat, 6 Dec 2014 11:39:25 -0500 Subject: Require types to opt-in Sync --- src/libstd/rt/exclusive.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/exclusive.rs b/src/libstd/rt/exclusive.rs index 1d3082d1b4c..a878066ad16 100644 --- a/src/libstd/rt/exclusive.rs +++ b/src/libstd/rt/exclusive.rs @@ -26,6 +26,10 @@ pub struct Exclusive { data: UnsafeCell, } +impl Send for Exclusive { } + +impl Sync for Exclusive { } + /// An RAII guard returned via `lock` pub struct ExclusiveGuard<'a, T:'a> { // FIXME #12808: strange name to try to avoid interfering with -- cgit 1.4.1-3-g733a5