diff options
| author | bors <bors@rust-lang.org> | 2015-05-07 21:45:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-05-07 21:45:11 +0000 |
| commit | 5ae026e8923d71d16a4d2b9a592bbcab92d8723a (patch) | |
| tree | cbf03e7b8d2ad0c4a3092c75693c754d0bc493e6 /src | |
| parent | f0ac7e04e647381e2bb87de1f3d0b108acb24d06 (diff) | |
| parent | 8d3f84e235b22688dd1592cfb86f31459a79ac5f (diff) | |
| download | rust-5ae026e8923d71d16a4d2b9a592bbcab92d8723a.tar.gz rust-5ae026e8923d71d16a4d2b9a592bbcab92d8723a.zip | |
Auto merge of #25157 - alexcrichton:remove-vec-add, r=aturon
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]
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcollections/vec.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index a2be8b81219..69f877cbf1c 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -67,7 +67,7 @@ use core::intrinsics::assume; use core::iter::{repeat, FromIterator}; use core::marker::PhantomData; use core::mem; -use core::ops::{Index, IndexMut, Deref, Add}; +use core::ops::{Index, IndexMut, Deref}; use core::ops; use core::ptr; use core::ptr::Unique; @@ -1623,17 +1623,6 @@ impl<T: Ord> Ord for Vec<T> { } #[stable(feature = "rust1", since = "1.0.0")] -impl<'a, T: Clone> Add<&'a [T]> for Vec<T> { - type Output = Vec<T>; - - #[inline] - fn add(mut self, rhs: &[T]) -> Vec<T> { - self.push_all(rhs); - self - } -} - -#[stable(feature = "rust1", since = "1.0.0")] impl<T> Drop for Vec<T> { fn drop(&mut self) { // This is (and should always remain) a no-op if the fields are |
