Stabilization of impls and fallout from stabilization

This commit is contained in:
Aaron Turon
2015-01-04 16:16:55 -08:00
parent cb765ce7e1
commit c6f4a03d12
29 changed files with 128 additions and 49 deletions

View File

@@ -246,7 +246,7 @@ impl<T> BorrowFrom<Arc<T>> for T {
}
}
#[experimental = "Deref is experimental."]
#[stable]
impl<T> Deref for Arc<T> {
type Target = T;
@@ -290,7 +290,7 @@ impl<T: Send + Sync + Clone> Arc<T> {
}
#[unsafe_destructor]
#[experimental = "waiting on stability of Drop"]
#[stable]
impl<T: Sync + Send> Drop for Arc<T> {
/// Drops the `Arc<T>`.
///
@@ -418,7 +418,7 @@ impl<T: Sync + Send> Clone for Weak<T> {
}
#[unsafe_destructor]
#[experimental = "Weak pointers may not belong in this module."]
#[stable]
impl<T: Sync + Send> Drop for Weak<T> {
/// Drops the `Weak<T>`.
///

View File

@@ -155,12 +155,14 @@ impl fmt::Show for Box<Any> {
}
}
#[stable]
impl<Sized? T> Deref for Box<T> {
type Target = T;
fn deref(&self) -> &T { &**self }
}
#[stable]
impl<Sized? T> DerefMut for Box<T> {
fn deref_mut(&mut self) -> &mut T { &mut **self }
}

View File

@@ -354,7 +354,7 @@ impl<T> BorrowFrom<Rc<T>> for T {
}
}
#[experimental = "Deref is experimental."]
#[stable]
impl<T> Deref for Rc<T> {
type Target = T;
@@ -365,7 +365,7 @@ impl<T> Deref for Rc<T> {
}
#[unsafe_destructor]
#[experimental = "Drop is experimental."]
#[stable]
impl<T> Drop for Rc<T> {
/// Drops the `Rc<T>`.
///
@@ -656,7 +656,7 @@ impl<T> Weak<T> {
}
#[unsafe_destructor]
#[experimental = "Weak pointers may not belong in this module."]
#[stable]
impl<T> Drop for Weak<T> {
/// Drops the `Weak<T>`.
///