From 69abc12b0044d641e714bdd73a299cfa4136b7b8 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Mon, 27 Apr 2015 14:10:49 -0700 Subject: Register new snapshots --- src/libstd/sync/mpsc/mod.rs | 3 --- src/libstd/sync/mpsc/mpsc_queue.rs | 1 - src/libstd/sync/mpsc/oneshot.rs | 1 - src/libstd/sync/mpsc/select.rs | 2 -- src/libstd/sync/mpsc/shared.rs | 1 - src/libstd/sync/mpsc/spsc_queue.rs | 1 - src/libstd/sync/mpsc/stream.rs | 1 - src/libstd/sync/mpsc/sync.rs | 1 - src/libstd/sync/mutex.rs | 2 -- src/libstd/sync/rwlock.rs | 3 --- src/libstd/sync/semaphore.rs | 1 - 11 files changed, 17 deletions(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index 74e85db1a06..61932225d79 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -619,7 +619,6 @@ impl Clone for Sender { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl Drop for Sender { fn drop(&mut self) { @@ -683,7 +682,6 @@ impl Clone for SyncSender { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl Drop for SyncSender { fn drop(&mut self) { @@ -930,7 +928,6 @@ impl IntoIterator for Receiver { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl Drop for Receiver { fn drop(&mut self) { diff --git a/src/libstd/sync/mpsc/mpsc_queue.rs b/src/libstd/sync/mpsc/mpsc_queue.rs index 9b6c8f4dd97..4ab5a796fcb 100644 --- a/src/libstd/sync/mpsc/mpsc_queue.rs +++ b/src/libstd/sync/mpsc/mpsc_queue.rs @@ -138,7 +138,6 @@ impl Queue { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl Drop for Queue { fn drop(&mut self) { diff --git a/src/libstd/sync/mpsc/oneshot.rs b/src/libstd/sync/mpsc/oneshot.rs index c6e8d87a22e..ab45b722c45 100644 --- a/src/libstd/sync/mpsc/oneshot.rs +++ b/src/libstd/sync/mpsc/oneshot.rs @@ -367,7 +367,6 @@ impl Packet { } } -#[unsafe_destructor] impl Drop for Packet { fn drop(&mut self) { assert_eq!(self.state.load(Ordering::SeqCst), DISCONNECTED); diff --git a/src/libstd/sync/mpsc/select.rs b/src/libstd/sync/mpsc/select.rs index 58f16a83ba9..fde99e11040 100644 --- a/src/libstd/sync/mpsc/select.rs +++ b/src/libstd/sync/mpsc/select.rs @@ -315,7 +315,6 @@ impl<'rx, T: Send> Handle<'rx, T> { } } -#[unsafe_destructor] impl Drop for Select { fn drop(&mut self) { assert!(self.head.is_null()); @@ -323,7 +322,6 @@ impl Drop for Select { } } -#[unsafe_destructor] impl<'rx, T: Send> Drop for Handle<'rx, T> { fn drop(&mut self) { unsafe { self.remove() } diff --git a/src/libstd/sync/mpsc/shared.rs b/src/libstd/sync/mpsc/shared.rs index 5c1610bdc31..09a02923f14 100644 --- a/src/libstd/sync/mpsc/shared.rs +++ b/src/libstd/sync/mpsc/shared.rs @@ -473,7 +473,6 @@ impl Packet { } } -#[unsafe_destructor] impl Drop for Packet { fn drop(&mut self) { // Note that this load is not only an assert for correctness about diff --git a/src/libstd/sync/mpsc/spsc_queue.rs b/src/libstd/sync/mpsc/spsc_queue.rs index 4dd84364fa8..f4b9c7d45fd 100644 --- a/src/libstd/sync/mpsc/spsc_queue.rs +++ b/src/libstd/sync/mpsc/spsc_queue.rs @@ -226,7 +226,6 @@ impl Queue { } } -#[unsafe_destructor] impl Drop for Queue { fn drop(&mut self) { unsafe { diff --git a/src/libstd/sync/mpsc/stream.rs b/src/libstd/sync/mpsc/stream.rs index f0363fae84f..1200e71d9af 100644 --- a/src/libstd/sync/mpsc/stream.rs +++ b/src/libstd/sync/mpsc/stream.rs @@ -471,7 +471,6 @@ impl Packet { } } -#[unsafe_destructor] impl Drop for Packet { fn drop(&mut self) { // Note that this load is not only an assert for correctness about diff --git a/src/libstd/sync/mpsc/sync.rs b/src/libstd/sync/mpsc/sync.rs index 6221ca59b54..4687df107f6 100644 --- a/src/libstd/sync/mpsc/sync.rs +++ b/src/libstd/sync/mpsc/sync.rs @@ -411,7 +411,6 @@ impl Packet { } } -#[unsafe_destructor] impl Drop for Packet { fn drop(&mut self) { assert_eq!(self.channels.load(Ordering::SeqCst), 0); diff --git a/src/libstd/sync/mutex.rs b/src/libstd/sync/mutex.rs index caf011c54f2..30c7407a96d 100644 --- a/src/libstd/sync/mutex.rs +++ b/src/libstd/sync/mutex.rs @@ -244,7 +244,6 @@ impl Mutex { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl Drop for Mutex { fn drop(&mut self) { @@ -340,7 +339,6 @@ impl<'mutex, T> DerefMut for MutexGuard<'mutex, T> { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl<'a, T> Drop for MutexGuard<'a, T> { #[inline] diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 1ea92d5eff7..a133bb01b61 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -249,7 +249,6 @@ impl RwLock { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl Drop for RwLock { fn drop(&mut self) { @@ -387,7 +386,6 @@ impl<'rwlock, T> DerefMut for RwLockWriteGuard<'rwlock, T> { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl<'a, T> Drop for RwLockReadGuard<'a, T> { fn drop(&mut self) { @@ -395,7 +393,6 @@ impl<'a, T> Drop for RwLockReadGuard<'a, T> { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl<'a, T> Drop for RwLockWriteGuard<'a, T> { fn drop(&mut self) { diff --git a/src/libstd/sync/semaphore.rs b/src/libstd/sync/semaphore.rs index be521095aa9..776b3c5064c 100644 --- a/src/libstd/sync/semaphore.rs +++ b/src/libstd/sync/semaphore.rs @@ -100,7 +100,6 @@ impl Semaphore { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl<'a> Drop for SemaphoreGuard<'a> { fn drop(&mut self) { -- cgit 1.4.1-3-g733a5