Skip to content

Commit 2ef07f0

Browse files
committed
Remove stability annotations from trait impl items
Remove `stable` stability annotations from inherent impls
1 parent 7839827 commit 2ef07f0

File tree

30 files changed

+0
-39
lines changed

30 files changed

+0
-39
lines changed

src/liballoc/arc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,6 @@ impl<T> fmt::Pointer for Arc<T> {
881881

882882
#[stable(feature = "rust1", since = "1.0.0")]
883883
impl<T: Default> Default for Arc<T> {
884-
#[stable(feature = "rust1", since = "1.0.0")]
885884
fn default() -> Arc<T> {
886885
Arc::new(Default::default())
887886
}

src/liballoc/boxed.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,13 @@ impl<T : ?Sized> Box<T> {
264264

265265
#[stable(feature = "rust1", since = "1.0.0")]
266266
impl<T: Default> Default for Box<T> {
267-
#[stable(feature = "rust1", since = "1.0.0")]
268267
fn default() -> Box<T> {
269268
box Default::default()
270269
}
271270
}
272271

273272
#[stable(feature = "rust1", since = "1.0.0")]
274273
impl<T> Default for Box<[T]> {
275-
#[stable(feature = "rust1", since = "1.0.0")]
276274
fn default() -> Box<[T]> {
277275
Box::<[T; 0]>::new([])
278276
}

src/liballoc/rc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ impl<T: Default> Default for Rc<T> {
508508
/// let x: Rc<i32> = Default::default();
509509
/// ```
510510
#[inline]
511-
#[stable(feature = "rust1", since = "1.0.0")]
512511
fn default() -> Rc<T> {
513512
Rc::new(Default::default())
514513
}

src/libcollections/btree/map.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,6 @@ impl<K: Hash, V: Hash> Hash for BTreeMap<K, V> {
903903

904904
#[stable(feature = "rust1", since = "1.0.0")]
905905
impl<K: Ord, V> Default for BTreeMap<K, V> {
906-
#[stable(feature = "rust1", since = "1.0.0")]
907906
fn default() -> BTreeMap<K, V> {
908907
BTreeMap::new()
909908
}

src/libcollections/btree/set.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,6 @@ impl<'a, T: 'a + Ord + Copy> Extend<&'a T> for BTreeSet<T> {
559559

560560
#[stable(feature = "rust1", since = "1.0.0")]
561561
impl<T: Ord> Default for BTreeSet<T> {
562-
#[stable(feature = "rust1", since = "1.0.0")]
563562
fn default() -> BTreeSet<T> {
564563
BTreeSet::new()
565564
}

src/libcollections/linked_list.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ impl<T> LinkedList<T> {
230230
#[stable(feature = "rust1", since = "1.0.0")]
231231
impl<T> Default for LinkedList<T> {
232232
#[inline]
233-
#[stable(feature = "rust1", since = "1.0.0")]
234233
fn default() -> LinkedList<T> { LinkedList::new() }
235234
}
236235

src/libcollections/slice.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ mod hack {
160160
/// Allocating extension methods for slices.
161161
#[lang = "slice"]
162162
#[cfg(not(test))]
163-
#[stable(feature = "rust1", since = "1.0.0")]
164163
impl<T> [T] {
165164
/// Returns the number of elements in the slice.
166165
///

src/libcollections/str.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ impl ToOwned for str {
153153
/// Any string that can be represented as a slice.
154154
#[lang = "str"]
155155
#[cfg(not(test))]
156-
#[stable(feature = "rust1", since = "1.0.0")]
157156
impl str {
158157
/// Returns the length of `self` in bytes.
159158
///

src/libcollections/string.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,6 @@ impl_eq! { Cow<'a, str>, String }
990990
#[stable(feature = "rust1", since = "1.0.0")]
991991
impl Default for String {
992992
#[inline]
993-
#[stable(feature = "rust1", since = "1.0.0")]
994993
fn default() -> String {
995994
String::new()
996995
}

src/libcollections/vec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,6 @@ impl<T> Drop for Vec<T> {
14051405

14061406
#[stable(feature = "rust1", since = "1.0.0")]
14071407
impl<T> Default for Vec<T> {
1408-
#[stable(feature = "rust1", since = "1.0.0")]
14091408
fn default() -> Vec<T> {
14101409
Vec::new()
14111410
}

0 commit comments

Comments
 (0)