summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-21 13:13:07 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-24 22:27:22 +0100
commit5fa4b4c4af14e391d7f16b4968aa25cca7c617c6 (patch)
treea3b02809d3588d4d3ccd5416675ff900dff94232 /src/liballoc
parented810385045ab0db90303574ba3ea47dfa2a36d5 (diff)
downloadrust-5fa4b4c4af14e391d7f16b4968aa25cca7c617c6.tar.gz
rust-5fa4b4c4af14e391d7f16b4968aa25cca7c617c6.zip
Remove unnecessary bounds from Drop impl for `Arc` and `arc::Weak` and
one of the helper method impls.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index c9bbc0d74cd..b5d16d29272 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -321,7 +321,7 @@ impl<T: Send + Sync + Clone> Arc<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 @@ impl<T: Sync + Send> Drop for Arc<T> {
 
 #[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 @@ impl<T: Sync + Send> Clone for 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.