diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-17 19:14:59 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-17 19:14:59 -0500 |
| commit | 1a996f93c3e205fa62004686a17f26bd4484cc87 (patch) | |
| tree | 7459bc1a4e3a515a2f839444f74356fcd4053827 | |
| parent | 22a9f250b5e2de64c13c0f056aec13eb086ef79d (diff) | |
| download | rust-1a996f93c3e205fa62004686a17f26bd4484cc87.tar.gz rust-1a996f93c3e205fa62004686a17f26bd4484cc87.zip | |
Remove wrong `&str + String` and `&[T] + Vec<T>` implementations
| -rw-r--r-- | src/libcollections/string.rs | 8 | ||||
| -rw-r--r-- | src/libcollections/vec.rs | 9 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index ba89fc133c4..8334f126100 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -885,14 +885,6 @@ impl<'a> Add<&'a str, String> for String { } } -#[cfg(not(stage0))] // NOTE(stage0): Remove cfg after a snapshot -impl<'a> Add<String, String> for &'a str { - fn add(self, mut other: String) -> String { - other.push_str(self); - other - } -} - impl ops::Slice<uint, str> for String { #[inline] fn as_slice_<'a>(&'a self) -> &'a str { diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 75a389a7c95..091c0081eb3 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1335,15 +1335,6 @@ impl<'a, T: Clone> Add<&'a [T], Vec<T>> for Vec<T> { } } -#[cfg(not(stage0))] // NOTE(stage0): Remove impl after a snapshot -impl<'a, T: Clone> Add<Vec<T>, Vec<T>> for &'a [T] { - #[inline] - fn add(self, mut rhs: Vec<T>) -> Vec<T> { - rhs.push_all(self); - rhs - } -} - #[unsafe_destructor] impl<T> Drop for Vec<T> { fn drop(&mut self) { |
