Skip to content

Commit 1a996f9

Browse files
author
Jorge Aparicio
committed
Remove wrong &str + String and &[T] + Vec<T> implementations
1 parent 22a9f25 commit 1a996f9

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/libcollections/string.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -885,14 +885,6 @@ impl<'a> Add<&'a str, String> for String {
885885
}
886886
}
887887

888-
#[cfg(not(stage0))] // NOTE(stage0): Remove cfg after a snapshot
889-
impl<'a> Add<String, String> for &'a str {
890-
fn add(self, mut other: String) -> String {
891-
other.push_str(self);
892-
other
893-
}
894-
}
895-
896888
impl ops::Slice<uint, str> for String {
897889
#[inline]
898890
fn as_slice_<'a>(&'a self) -> &'a str {

src/libcollections/vec.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,15 +1335,6 @@ impl<'a, T: Clone> Add<&'a [T], Vec<T>> for Vec<T> {
13351335
}
13361336
}
13371337

1338-
#[cfg(not(stage0))] // NOTE(stage0): Remove impl after a snapshot
1339-
impl<'a, T: Clone> Add<Vec<T>, Vec<T>> for &'a [T] {
1340-
#[inline]
1341-
fn add(self, mut rhs: Vec<T>) -> Vec<T> {
1342-
rhs.push_all(self);
1343-
rhs
1344-
}
1345-
}
1346-
13471338
#[unsafe_destructor]
13481339
impl<T> Drop for Vec<T> {
13491340
fn drop(&mut self) {

0 commit comments

Comments
 (0)