From 8d3f84e235b22688dd1592cfb86f31459a79ac5f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 6 May 2015 10:51:10 -0700 Subject: [PATCH] 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] --- src/libcollections/vec.rs | 13 +------------ 1 file changed, 1 insertion(+), 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; @@ -1622,17 +1622,6 @@ impl Ord for Vec { } } -#[stable(feature = "rust1", since = "1.0.0")] -impl<'a, T: Clone> Add<&'a [T]> for Vec { - type Output = Vec; - - #[inline] - fn add(mut self, rhs: &[T]) -> Vec { - self.push_all(rhs); - self - } -} - #[stable(feature = "rust1", since = "1.0.0")] impl Drop for Vec { fn drop(&mut self) {