Skip to content

Commit

Permalink
Auto merge of #31042 - shahn:weak_annotations, r=alexcrichton
Browse files Browse the repository at this point in the history
This was accidentally introduced in
7e2ffc7.
  • Loading branch information
bors committed Jan 21, 2016
2 parents 670f5b0 + 34f17d9 commit d5ec3ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/liballoc/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,9 @@ pub struct Weak<T: ?Sized> {
_ptr: Shared<RcBox<T>>,
}

#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "rc_weak", since = "1.4.0")]
impl<T: ?Sized> !marker::Send for Weak<T> {}
#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "rc_weak", since = "1.4.0")]
impl<T: ?Sized> !marker::Sync for Weak<T> {}

#[unstable(feature = "coerce_unsized", issue = "27732")]
Expand Down Expand Up @@ -753,7 +753,7 @@ impl<T: ?Sized> Weak<T> {
}
}

#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "rc_weak", since = "1.4.0")]
impl<T: ?Sized> Drop for Weak<T> {
/// Drops the `Weak<T>`.
///
Expand Down Expand Up @@ -819,7 +819,7 @@ impl<T: ?Sized> Clone for Weak<T> {
}
}

#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "rc_weak", since = "1.4.0")]
impl<T: ?Sized + fmt::Debug> fmt::Debug for Weak<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "(Weak)")
Expand Down

0 comments on commit d5ec3ab

Please sign in to comment.