Skip to content

Commit 5136e90

Browse files
committed
std: Remove addition on vectors for now
Ideally this trait implementation would be unstable, requiring crates to opt-in if they would like the functionality, but that's not currently how stability works so the implementation needs to be removed entirely. This may come back at a future date, but for now the conservative option is to remove it. [breaking-change] Conflicts: src/libcollections/vec.rs
1 parent b94f158 commit 5136e90

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/libcollections/vec.rs

+1-12
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use core::intrinsics::assume;
5959
use core::iter::{repeat, FromIterator};
6060
use core::marker::PhantomData;
6161
use core::mem;
62-
use core::ops::{Index, IndexMut, Deref, Add};
62+
use core::ops::{Index, IndexMut, Deref};
6363
use core::ops;
6464
use core::ptr;
6565
use core::ptr::Unique;
@@ -1591,17 +1591,6 @@ impl<T: Ord> Ord for Vec<T> {
15911591
}
15921592
}
15931593

1594-
#[stable(feature = "rust1", since = "1.0.0")]
1595-
impl<'a, T: Clone> Add<&'a [T]> for Vec<T> {
1596-
type Output = Vec<T>;
1597-
1598-
#[inline]
1599-
fn add(mut self, rhs: &[T]) -> Vec<T> {
1600-
self.push_all(rhs);
1601-
self
1602-
}
1603-
}
1604-
16051594
#[unsafe_destructor]
16061595
#[stable(feature = "rust1", since = "1.0.0")]
16071596
impl<T> Drop for Vec<T> {

0 commit comments

Comments
 (0)