Remove stability annotations from trait impl items
Remove `stable` stability annotations from inherent impls
This commit is contained in:
@@ -249,7 +249,6 @@ impl<T:Copy> Clone for Cell<T> {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T:Default + Copy> Default for Cell<T> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[inline]
|
||||
fn default() -> Cell<T> {
|
||||
Cell::new(Default::default())
|
||||
@@ -468,7 +467,6 @@ impl<T: Clone> Clone for RefCell<T> {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T:Default> Default for RefCell<T> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[inline]
|
||||
fn default() -> RefCell<T> {
|
||||
RefCell::new(Default::default())
|
||||
|
||||
@@ -199,7 +199,6 @@ impl Eq for Ordering {}
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Ord for Ordering {
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn cmp(&self, other: &Ordering) -> Ordering {
|
||||
(*self as i32).cmp(&(*other as i32))
|
||||
}
|
||||
@@ -208,7 +207,6 @@ impl Ord for Ordering {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl PartialOrd for Ordering {
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn partial_cmp(&self, other: &Ordering) -> Option<Ordering> {
|
||||
(*self as i32).partial_cmp(&(*other as i32))
|
||||
}
|
||||
|
||||
@@ -133,7 +133,6 @@ macro_rules! default_impl {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Default for $t {
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> $t { $v }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3378,7 +3378,6 @@ impl<I: Iterator> Iterator for Peekable<I> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<I: ExactSizeIterator> ExactSizeIterator for Peekable<I> {}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<I: Iterator> Peekable<I> {
|
||||
/// Returns a reference to the next() value without advancing the iterator.
|
||||
///
|
||||
|
||||
@@ -1636,7 +1636,6 @@ macro_rules! impl_from {
|
||||
($Small: ty, $Large: ty) => {
|
||||
#[stable(feature = "lossless_prim_conv", since = "1.5.0")]
|
||||
impl From<$Small> for $Large {
|
||||
#[stable(feature = "lossless_prim_conv", since = "1.5.0")]
|
||||
#[inline]
|
||||
fn from(small: $Small) -> $Large {
|
||||
small as $Large
|
||||
|
||||
@@ -542,11 +542,9 @@ macro_rules! neg_impl_core {
|
||||
($id:ident => $body:expr, $($t:ty)*) => ($(
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl Neg for $t {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
type Output = $t;
|
||||
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn neg(self) -> $t { let $id = self; $body }
|
||||
}
|
||||
|
||||
|
||||
@@ -756,7 +756,6 @@ impl<T: Default> Option<T> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T> Default for Option<T> {
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> Option<T> { None }
|
||||
}
|
||||
|
||||
@@ -940,7 +939,6 @@ impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
|
||||
/// assert!(res == Some(vec!(2, 3)));
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn from_iter<I: IntoIterator<Item=Option<A>>>(iter: I) -> Option<V> {
|
||||
// FIXME(#11084): This could be replaced with Iterator::scan when this
|
||||
// performance bug is closed.
|
||||
|
||||
@@ -161,7 +161,6 @@ pub unsafe fn write<T>(dst: *mut T, src: T) {
|
||||
intrinsics::move_val_init(&mut *dst, src)
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[lang = "const_ptr"]
|
||||
impl<T: ?Sized> *const T {
|
||||
/// Returns true if the pointer is null.
|
||||
@@ -210,7 +209,6 @@ impl<T: ?Sized> *const T {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[lang = "mut_ptr"]
|
||||
impl<T: ?Sized> *mut T {
|
||||
/// Returns true if the pointer is null.
|
||||
|
||||
@@ -257,7 +257,6 @@ pub enum Result<T, E> {
|
||||
// Type implementation
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T, E> Result<T, E> {
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Querying the contained values
|
||||
@@ -708,7 +707,6 @@ impl<T, E> Result<T, E> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T, E: fmt::Debug> Result<T, E> {
|
||||
/// Unwraps a result, yielding the content of an `Ok`.
|
||||
///
|
||||
@@ -758,7 +756,6 @@ impl<T, E: fmt::Debug> Result<T, E> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: fmt::Debug, E> Result<T, E> {
|
||||
/// Unwraps a result, yielding the content of an `Err`.
|
||||
///
|
||||
|
||||
@@ -651,7 +651,6 @@ impl<T> ops::IndexMut<RangeFull> for [T] {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<'a, T> Default for &'a [T] {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> &'a [T] { &[] }
|
||||
}
|
||||
|
||||
|
||||
@@ -1826,6 +1826,5 @@ fn char_range_at_raw(bytes: &[u8], i: usize) -> (u32, usize) {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<'a> Default for &'a str {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> &'a str { "" }
|
||||
}
|
||||
|
||||
@@ -438,7 +438,6 @@ impl AtomicBool {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl AtomicIsize {
|
||||
/// Creates a new `AtomicIsize`.
|
||||
///
|
||||
@@ -631,7 +630,6 @@ impl AtomicIsize {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl AtomicUsize {
|
||||
/// Creates a new `AtomicUsize`.
|
||||
///
|
||||
|
||||
@@ -105,7 +105,6 @@ macro_rules! tuple_impls {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<$($T:Default),+> Default for ($($T,)+) {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[inline]
|
||||
fn default() -> ($($T,)+) {
|
||||
($({ let x: $T = Default::default(); x},)+)
|
||||
|
||||
Reference in New Issue
Block a user