grandfathered -> rust1
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
//! Threadsafe reference-counted boxes (the `Arc<T>` type).
|
||||
//!
|
||||
@@ -110,7 +110,7 @@ use heap::deallocate;
|
||||
/// }
|
||||
/// ```
|
||||
#[unsafe_no_drop_flag]
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub struct Arc<T> {
|
||||
// FIXME #12808: strange name to try to avoid interfering with
|
||||
// field accesses of the contained type via Deref
|
||||
@@ -157,7 +157,7 @@ impl<T> Arc<T> {
|
||||
/// let five = Arc::new(5i);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn new(data: T) -> Arc<T> {
|
||||
// Start the weak pointer count as 1 which is the weak pointer that's
|
||||
// held by all the strong pointers (kinda), see std/rc.rs for more info
|
||||
@@ -210,7 +210,7 @@ pub fn weak_count<T>(this: &Arc<T>) -> uint { this.inner().weak.load(SeqCst) - 1
|
||||
#[unstable(feature = "alloc")]
|
||||
pub fn strong_count<T>(this: &Arc<T>) -> uint { this.inner().strong.load(SeqCst) }
|
||||
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T> Clone for Arc<T> {
|
||||
/// Makes a clone of the `Arc<T>`.
|
||||
///
|
||||
@@ -247,7 +247,7 @@ impl<T> BorrowFrom<Arc<T>> for T {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T> Deref for Arc<T> {
|
||||
type Target = T;
|
||||
|
||||
@@ -291,7 +291,7 @@ impl<T: Send + Sync + Clone> Arc<T> {
|
||||
}
|
||||
|
||||
#[unsafe_destructor]
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Sync + Send> Drop for Arc<T> {
|
||||
/// Drops the `Arc<T>`.
|
||||
///
|
||||
@@ -421,7 +421,7 @@ impl<T: Sync + Send> Clone for Weak<T> {
|
||||
}
|
||||
|
||||
#[unsafe_destructor]
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Sync + Send> Drop for Weak<T> {
|
||||
/// Drops the `Weak<T>`.
|
||||
///
|
||||
@@ -464,7 +464,7 @@ impl<T: Sync + Send> Drop for Weak<T> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: PartialEq> PartialEq for Arc<T> {
|
||||
/// Equality for two `Arc<T>`s.
|
||||
///
|
||||
@@ -496,7 +496,7 @@ impl<T: PartialEq> PartialEq for Arc<T> {
|
||||
/// ```
|
||||
fn ne(&self, other: &Arc<T>) -> bool { *(*self) != *(*other) }
|
||||
}
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: PartialOrd> PartialOrd for Arc<T> {
|
||||
/// Partial comparison for two `Arc<T>`s.
|
||||
///
|
||||
@@ -575,11 +575,11 @@ impl<T: PartialOrd> PartialOrd for Arc<T> {
|
||||
/// ```
|
||||
fn ge(&self, other: &Arc<T>) -> bool { *(*self) >= *(*other) }
|
||||
}
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Ord> Ord for Arc<T> {
|
||||
fn cmp(&self, other: &Arc<T>) -> Ordering { (**self).cmp(&**other) }
|
||||
}
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Eq> Eq for Arc<T> {}
|
||||
|
||||
impl<T: fmt::Show> fmt::Show for Arc<T> {
|
||||
@@ -588,16 +588,16 @@ impl<T: fmt::Show> fmt::Show for Arc<T> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: fmt::String> fmt::String for Arc<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fmt::String::fmt(&**self, f)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Default + Sync + Send> Default for Arc<T> {
|
||||
#[stable(feature = "grandfathered", since = "1.0.0")]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> Arc<T> { Arc::new(Default::default()) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user