]> git.lizzy.rs Git - rust.git/commitdiff
Remove unnecessary bounds from Drop impl for `Arc` and `arc::Weak` and
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Sat, 21 Mar 2015 12:13:07 +0000 (13:13 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 24 Mar 2015 21:27:22 +0000 (22:27 +0100)
one of the helper method impls.

src/liballoc/arc.rs

index c9bbc0d74cddc8d745dedf6c2382767e0ceacbd8..b5d16d29272850843e9204749c68e6be9165d56d 100644 (file)
@@ -321,7 +321,7 @@ pub fn make_unique(&mut self) -> &mut T {
 
 #[unsafe_destructor]
 #[stable(feature = "rust1", since = "1.0.0")]
-impl<T: Sync + Send> Drop for Arc<T> {
+impl<T> Drop for Arc<T> {
     /// Drops the `Arc<T>`.
     ///
     /// This will decrement the strong reference count. If the strong reference
@@ -388,7 +388,7 @@ fn drop(&mut self) {
 
 #[unstable(feature = "alloc",
            reason = "Weak pointers may not belong in this module.")]
-impl<T: Sync + Send> Weak<T> {
+impl<T> Weak<T> {
     /// Upgrades a weak reference to a strong reference.
     ///
     /// Upgrades the `Weak<T>` reference to an `Arc<T>`, if possible.
@@ -454,7 +454,7 @@ fn clone(&self) -> Weak<T> {
 
 #[unsafe_destructor]
 #[stable(feature = "rust1", since = "1.0.0")]
-impl<T: Sync + Send> Drop for Weak<T> {
+impl<T> Drop for Weak<T> {
     /// Drops the `Weak<T>`.
     ///
     /// This will decrement the weak reference count.