Remove stability annotations from trait impl items
Remove `stable` stability annotations from inherent impls
This commit is contained in:
@@ -881,7 +881,6 @@ impl<T> fmt::Pointer for Arc<T> {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Default> Default for Arc<T> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> Arc<T> {
|
||||
Arc::new(Default::default())
|
||||
}
|
||||
|
||||
@@ -264,7 +264,6 @@ impl<T : ?Sized> Box<T> {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: Default> Default for Box<T> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> Box<T> {
|
||||
box Default::default()
|
||||
}
|
||||
@@ -272,7 +271,6 @@ impl<T: Default> Default for Box<T> {
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T> Default for Box<[T]> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> Box<[T]> {
|
||||
Box::<[T; 0]>::new([])
|
||||
}
|
||||
|
||||
@@ -508,7 +508,6 @@ impl<T: Default> Default for Rc<T> {
|
||||
/// let x: Rc<i32> = Default::default();
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn default() -> Rc<T> {
|
||||
Rc::new(Default::default())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user