about summary refs log tree commit diff
path: root/src/libcollections/string.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-21 00:07:29 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-21 09:28:07 -0800
commitdbeef0edb2d25a3ff321d8e09532f053b5ef2c07 (patch)
tree9ac43217e9134d908926c2aa7bfda279582f1ee6 /src/libcollections/string.rs
parentb084cda4e9e0540b67d5db728b58acf8afba9f6e (diff)
parent84086c464f537591f0e4629676b3fc75517492ab (diff)
downloadrust-dbeef0edb2d25a3ff321d8e09532f053b5ef2c07.tar.gz
rust-dbeef0edb2d25a3ff321d8e09532f053b5ef2c07.zip
rollup merge of #19972: alexcrichton/snapshots
Conflicts:
	src/libcollections/string.rs
	src/libcollections/vec.rs
	src/snapshots.txt
Diffstat (limited to 'src/libcollections/string.rs')
-rw-r--r--src/libcollections/string.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index 76f69dbdb74..db59424cedd 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -862,28 +862,7 @@ impl<'a, S: Str> Equiv<S> for String {
     }
 }
 
-// NOTE(stage0): Remove impl after a snapshot
-#[cfg(stage0)]
 #[experimental = "waiting on Add stabilization"]
-impl<S: Str> Add<S, String> for String {
-    /// Concatenates `self` and `other` as a new mutable `String`.
-    ///
-    /// # Examples
-    ///
-    /// ```
-    /// let string1 = "foo".to_string();
-    /// let string2 = "bar".to_string();
-    /// let string3 = string1 + string2;
-    /// assert_eq!(string3, "foobar".to_string());
-    /// ```
-    fn add(&self, other: &S) -> String {
-        let mut s = String::from_str(self.as_slice());
-        s.push_str(other.as_slice());
-        return s;
-    }
-}
-
-#[cfg(not(stage0))]  // NOTE(stage0): Remove cfg after a snapshot
 impl<'a> Add<&'a str, String> for String {
     fn add(mut self, other: &str) -> String {
         self.push_str(other);