about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/str.rs7
-rw-r--r--src/libstd/string.rs3
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs
index d68ed099a4a..b57c329983e 100644
--- a/src/libstd/str.rs
+++ b/src/libstd/str.rs
@@ -910,10 +910,9 @@ impl OwnedStr for String {
     }
 
     #[inline]
-    fn append(self, rhs: &str) -> String {
-        let mut new_str = String::from_owned_str(self);
-        new_str.push_str(rhs);
-        new_str
+    fn append(mut self, rhs: &str) -> String {
+        self.push_str(rhs);
+        self
     }
 }
 
diff --git a/src/libstd/string.rs b/src/libstd/string.rs
index f4d1e2a1858..8897750df65 100644
--- a/src/libstd/string.rs
+++ b/src/libstd/string.rs
@@ -68,7 +68,8 @@ impl String {
         }
     }
 
-    /// Creates a new string buffer from the given owned string, taking care not to copy it.
+    #[allow(missing_doc)]
+    #[deprecated = "obsoleted by the removal of ~str"]
     #[inline]
     pub fn from_owned_str(string: String) -> String {
         string