about summary refs log tree commit diff
path: root/src/libstd/string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/string.rs')
-rw-r--r--src/libstd/string.rs3
1 files changed, 2 insertions, 1 deletions
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