diff options
| author | Brian Anderson <banderson@mozilla.com> | 2016-09-23 17:25:26 +0000 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2016-09-23 23:01:11 +0000 |
| commit | cfb29db52fc47f4ff317abade9869351b72bf010 (patch) | |
| tree | 72c86c8423baeb3f66e0b9bbecf5f915a06f3057 | |
| parent | aec83648f2d5a96e1779d75ecaa84b18349761dc (diff) | |
| download | rust-cfb29db52fc47f4ff317abade9869351b72bf010.tar.gz rust-cfb29db52fc47f4ff317abade9869351b72bf010.zip | |
Revert "implement `From<Vec<char>>` and `From<&'a [char]>` for `String`"
This reverts commit ac73335f2f5421c914fa3900567696cc6dc73d8d.
| -rw-r--r-- | src/libcollections/string.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 788c838cd3f..1ba0319f2d7 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -1901,26 +1901,6 @@ impl Into<Vec<u8>> for String { } } -#[stable(feature = "stringfromchars", since = "1.12.0")] -impl<'a> From<&'a [char]> for String { - #[inline] - fn from(v: &'a [char]) -> String { - let mut s = String::with_capacity(v.len()); - for c in v { - s.push(*c); - } - s - } -} - -#[stable(feature = "stringfromchars", since = "1.12.0")] -impl From<Vec<char>> for String { - #[inline] - fn from(v: Vec<char>) -> String { - String::from(v.as_slice()) - } -} - #[stable(feature = "rust1", since = "1.0.0")] impl fmt::Write for String { #[inline] |
