Skip to content

Commit 5fa4b4c

Browse files
committed
Remove unnecessary bounds from Drop impl for Arc and arc::Weak and
one of the helper method impls.
1 parent ed81038 commit 5fa4b4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/arc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ impl<T: Send + Sync + Clone> Arc<T> {
321321

322322
#[unsafe_destructor]
323323
#[stable(feature = "rust1", since = "1.0.0")]
324-
impl<T: Sync + Send> Drop for Arc<T> {
324+
impl<T> Drop for Arc<T> {
325325
/// Drops the `Arc<T>`.
326326
///
327327
/// This will decrement the strong reference count. If the strong reference
@@ -388,7 +388,7 @@ impl<T: Sync + Send> Drop for Arc<T> {
388388

389389
#[unstable(feature = "alloc",
390390
reason = "Weak pointers may not belong in this module.")]
391-
impl<T: Sync + Send> Weak<T> {
391+
impl<T> Weak<T> {
392392
/// Upgrades a weak reference to a strong reference.
393393
///
394394
/// Upgrades the `Weak<T>` reference to an `Arc<T>`, if possible.
@@ -454,7 +454,7 @@ impl<T: Sync + Send> Clone for Weak<T> {
454454

455455
#[unsafe_destructor]
456456
#[stable(feature = "rust1", since = "1.0.0")]
457-
impl<T: Sync + Send> Drop for Weak<T> {
457+
impl<T> Drop for Weak<T> {
458458
/// Drops the `Weak<T>`.
459459
///
460460
/// This will decrement the weak reference count.

0 commit comments

Comments
 (0)