about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-04 15:58:24 +0000
committerbors <bors@rust-lang.org>2017-07-04 15:58:24 +0000
commit2fbba5bdbadeef403a64e9e1568cdad225cbcec1 (patch)
tree5c28e75455be93fe83569947dfe602866a56e6ed /src/liballoc/string.rs
parentde7f0617681fc94ecd0090d2dd2e4d70fea8f3a2 (diff)
parent9cca462ca5faf348eb8a41d85193843fd6827434 (diff)
downloadrust-2fbba5bdbadeef403a64e9e1568cdad225cbcec1.tar.gz
rust-2fbba5bdbadeef403a64e9e1568cdad225cbcec1.zip
Auto merge of #43051 - Mark-Simulacrum:rollup, r=Mark-Simulacrum
Rollup of 8 pull requests

- Successful merges: #42227, #42836, #42975, #42994, #43041, #43042, #43043, #43045
- Failed merges:
Diffstat (limited to 'src/liballoc/string.rs')
-rw-r--r--src/liballoc/string.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index 79d1ccf637d..622cc68964b 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -2008,10 +2008,10 @@ impl From<Box<str>> for String {
     }
 }
 
-#[stable(feature = "box_from_str", since = "1.18.0")]
-impl Into<Box<str>> for String {
-    fn into(self) -> Box<str> {
-        self.into_boxed_str()
+#[stable(feature = "box_from_str", since = "1.20.0")]
+impl From<String> for Box<str> {
+    fn from(s: String) -> Box<str> {
+        s.into_boxed_str()
     }
 }