diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 95dcdd22fd0..a5a15cfe66e 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -881,7 +881,6 @@ impl fmt::Pointer for Arc { #[stable(feature = "rust1", since = "1.0.0")] impl Default for Arc { - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> Arc { Arc::new(Default::default()) } diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 4783b4339da..2e4ac13b34d 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -264,7 +264,6 @@ impl Box { #[stable(feature = "rust1", since = "1.0.0")] impl Default for Box { - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> Box { box Default::default() } @@ -272,7 +271,6 @@ impl Default for Box { #[stable(feature = "rust1", since = "1.0.0")] impl Default for Box<[T]> { - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> Box<[T]> { Box::<[T; 0]>::new([]) } diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index d229d1c815c..672b63eda67 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -508,7 +508,6 @@ impl Default for Rc { /// let x: Rc = Default::default(); /// ``` #[inline] - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> Rc { Rc::new(Default::default()) } diff --git a/src/libcollections/btree/map.rs b/src/libcollections/btree/map.rs index 1ad836f9bdf..39925ddff84 100644 --- a/src/libcollections/btree/map.rs +++ b/src/libcollections/btree/map.rs @@ -903,7 +903,6 @@ impl Hash for BTreeMap { #[stable(feature = "rust1", since = "1.0.0")] impl Default for BTreeMap { - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> BTreeMap { BTreeMap::new() } diff --git a/src/libcollections/btree/set.rs b/src/libcollections/btree/set.rs index 3ca0aa377c1..121668fbb9d 100644 --- a/src/libcollections/btree/set.rs +++ b/src/libcollections/btree/set.rs @@ -559,7 +559,6 @@ impl<'a, T: 'a + Ord + Copy> Extend<&'a T> for BTreeSet { #[stable(feature = "rust1", since = "1.0.0")] impl Default for BTreeSet { - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> BTreeSet { BTreeSet::new() } diff --git a/src/libcollections/linked_list.rs b/src/libcollections/linked_list.rs index fca7d3b26fc..8e6b0183d53 100644 --- a/src/libcollections/linked_list.rs +++ b/src/libcollections/linked_list.rs @@ -230,7 +230,6 @@ impl LinkedList { #[stable(feature = "rust1", since = "1.0.0")] impl Default for LinkedList { #[inline] - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> LinkedList { LinkedList::new() } } diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs index 869e7a0b383..e6391f5c988 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -160,7 +160,6 @@ mod hack { /// Allocating extension methods for slices. #[lang = "slice"] #[cfg(not(test))] -#[stable(feature = "rust1", since = "1.0.0")] impl [T] { /// Returns the number of elements in the slice. /// diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 21406354d81..104fbe699e0 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -153,7 +153,6 @@ impl ToOwned for str { /// Any string that can be represented as a slice. #[lang = "str"] #[cfg(not(test))] -#[stable(feature = "rust1", since = "1.0.0")] impl str { /// Returns the length of `self` in bytes. /// diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 8d07e2b2018..4255665681c 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -990,7 +990,6 @@ impl_eq! { Cow<'a, str>, String } #[stable(feature = "rust1", since = "1.0.0")] impl Default for String { #[inline] - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> String { String::new() } diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 95158054d65..716a07be2b4 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1401,7 +1401,6 @@ impl Drop for Vec { #[stable(feature = "rust1", since = "1.0.0")] impl Default for Vec { - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> Vec { Vec::new() } diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 1dc989018ad..9fcc2b3412a 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -249,7 +249,6 @@ impl Clone for Cell { #[stable(feature = "rust1", since = "1.0.0")] impl Default for Cell { - #[stable(feature = "rust1", since = "1.0.0")] #[inline] fn default() -> Cell { Cell::new(Default::default()) @@ -468,7 +467,6 @@ impl Clone for RefCell { #[stable(feature = "rust1", since = "1.0.0")] impl Default for RefCell { - #[stable(feature = "rust1", since = "1.0.0")] #[inline] fn default() -> RefCell { RefCell::new(Default::default()) diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index fa1f4727bc0..302c9d0c369 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -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 { (*self as i32).partial_cmp(&(*other as i32)) } diff --git a/src/libcore/default.rs b/src/libcore/default.rs index f7fda3d04fd..cbad72eae3d 100644 --- a/src/libcore/default.rs +++ b/src/libcore/default.rs @@ -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 } } } diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 9b260b57099..a9388793f33 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -3386,7 +3386,6 @@ impl Iterator for Peekable { #[stable(feature = "rust1", since = "1.0.0")] impl ExactSizeIterator for Peekable {} -#[stable(feature = "rust1", since = "1.0.0")] impl Peekable { /// Returns a reference to the next() value without advancing the iterator. /// diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index c397d02d245..d3f63ab4a8c 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -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 diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 582c091091f..1bfdafa7133 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -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 } } diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 8fce64bd561..26e00867d84 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -756,7 +756,6 @@ impl Option { #[stable(feature = "rust1", since = "1.0.0")] impl Default for Option { #[inline] - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> Option { None } } @@ -940,7 +939,6 @@ impl> FromIterator> for Option { /// assert!(res == Some(vec!(2, 3))); /// ``` #[inline] - #[stable(feature = "rust1", since = "1.0.0")] fn from_iter>>(iter: I) -> Option { // FIXME(#11084): This could be replaced with Iterator::scan when this // performance bug is closed. diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 86292ce9703..6183034c084 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -161,7 +161,6 @@ pub unsafe fn write(dst: *mut T, src: T) { intrinsics::move_val_init(&mut *dst, src) } -#[stable(feature = "rust1", since = "1.0.0")] #[lang = "const_ptr"] impl *const T { /// Returns true if the pointer is null. @@ -210,7 +209,6 @@ impl *const T { } } -#[stable(feature = "rust1", since = "1.0.0")] #[lang = "mut_ptr"] impl *mut T { /// Returns true if the pointer is null. diff --git a/src/libcore/result.rs b/src/libcore/result.rs index ee3bfacd731..c111ea8dce6 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -257,7 +257,6 @@ pub enum Result { // Type implementation ///////////////////////////////////////////////////////////////////////////// -#[stable(feature = "rust1", since = "1.0.0")] impl Result { ///////////////////////////////////////////////////////////////////////// // Querying the contained values @@ -708,7 +707,6 @@ impl Result { } } -#[stable(feature = "rust1", since = "1.0.0")] impl Result { /// Unwraps a result, yielding the content of an `Ok`. /// @@ -758,7 +756,6 @@ impl Result { } } -#[stable(feature = "rust1", since = "1.0.0")] impl Result { /// Unwraps a result, yielding the content of an `Err`. /// diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index a49d91ca03e..8ba4e9605c8 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -651,7 +651,6 @@ impl ops::IndexMut 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] { &[] } } diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 7a78460a841..18334ba91c6 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -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 { "" } } diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index 7225b4f6e0d..15f46a86020 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -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`. /// diff --git a/src/libcore/tuple.rs b/src/libcore/tuple.rs index 6c5ff222323..33098cfcf8b 100644 --- a/src/libcore/tuple.rs +++ b/src/libcore/tuple.rs @@ -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},)+) diff --git a/src/librand/reseeding.rs b/src/librand/reseeding.rs index 584cf78a1cd..8ef94eb16f2 100644 --- a/src/librand/reseeding.rs +++ b/src/librand/reseeding.rs @@ -113,7 +113,6 @@ impl Reseeder for ReseedWithDefault { } #[stable(feature = "rust1", since = "1.0.0")] impl Default for ReseedWithDefault { - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> ReseedWithDefault { ReseedWithDefault } diff --git a/src/librustc_unicode/char.rs b/src/librustc_unicode/char.rs index 2fb15ff2ac7..f73cc6837e3 100644 --- a/src/librustc_unicode/char.rs +++ b/src/librustc_unicode/char.rs @@ -111,7 +111,6 @@ impl Iterator for CaseMappingIter { } } -#[stable(feature = "rust1", since = "1.0.0")] #[lang = "char"] impl char { /// Checks if a `char` is a digit in the given radix. diff --git a/src/libstd/collections/hash/set.rs b/src/libstd/collections/hash/set.rs index 1f6b3493996..d4cef2ab07a 100644 --- a/src/libstd/collections/hash/set.rs +++ b/src/libstd/collections/hash/set.rs @@ -675,7 +675,6 @@ impl Default for HashSet where T: Eq + Hash, S: HashState + Default, { - #[stable(feature = "rust1", since = "1.0.0")] fn default() -> HashSet { HashSet::with_hash_state(Default::default()) } diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 03b8b455299..657396df22a 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -677,7 +677,6 @@ impl Iterator for ReadDir { } } -#[stable(feature = "rust1", since = "1.0.0")] impl DirEntry { /// Returns the full path to the file that this entry represents. /// diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index ebe50a6e2b8..34736f81033 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1534,7 +1534,6 @@ pub struct Take { limit: u64, } -#[stable(feature = "rust1", since = "1.0.0")] impl Take { /// Returns the number of bytes that can be read before this instance will /// return EOF. diff --git a/src/libstd/num/f32.rs b/src/libstd/num/f32.rs index a04dfbeebe8..439ed406489 100644 --- a/src/libstd/num/f32.rs +++ b/src/libstd/num/f32.rs @@ -120,7 +120,6 @@ mod cmath { #[cfg(not(test))] #[lang = "f32"] -#[stable(feature = "rust1", since = "1.0.0")] impl f32 { /// Parses a float as with a given radix #[unstable(feature = "float_from_str_radix", reason = "recently moved API", diff --git a/src/libstd/num/f64.rs b/src/libstd/num/f64.rs index 329d3329be6..aa0e7df76ab 100644 --- a/src/libstd/num/f64.rs +++ b/src/libstd/num/f64.rs @@ -77,7 +77,6 @@ mod cmath { #[cfg(not(test))] #[lang = "f64"] -#[stable(feature = "rust1", since = "1.0.0")] impl f64 { /// Parses a float as with a given radix #[unstable(feature = "float_from_str_radix", reason = "recently moved API",