diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-12-22 00:49:42 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-12-26 17:26:33 +0100 |
| commit | f436f9ca2963e33cc41802370bb9c551c833970e (patch) | |
| tree | c79b09c0cb3024b389027fd2a501a44a0a1f9bb9 /src/libstd/rt | |
| parent | 686ce664da31f87b8d1c7377313f160d8fdcebe9 (diff) | |
| download | rust-f436f9ca2963e33cc41802370bb9c551c833970e.tar.gz rust-f436f9ca2963e33cc41802370bb9c551c833970e.zip | |
Make Send and Sync traits unsafe
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/exclusive.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/exclusive.rs b/src/libstd/rt/exclusive.rs index a878066ad16..88bdb29caec 100644 --- a/src/libstd/rt/exclusive.rs +++ b/src/libstd/rt/exclusive.rs @@ -26,9 +26,9 @@ pub struct Exclusive<T> { data: UnsafeCell<T>, } -impl<T:Send> Send for Exclusive<T> { } +unsafe impl<T:Send> Send for Exclusive<T> { } -impl<T:Send> Sync for Exclusive<T> { } +unsafe impl<T:Send> Sync for Exclusive<T> { } /// An RAII guard returned via `lock` pub struct ExclusiveGuard<'a, T:'a> { |
