diff options
| author | Brian Anderson <banderson@mozilla.com> | 2016-09-23 17:25:26 +0000 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2016-09-23 17:25:26 +0000 |
| commit | 2e02803c7384398058a6fffd4cef723d8b7729dc (patch) | |
| tree | 46149c52afe88d96fcad8b33dfa3da14318874c3 | |
| parent | 86a686c4f71d208ecf8f7ee5a035b17a545d8b62 (diff) | |
| download | rust-2e02803c7384398058a6fffd4cef723d8b7729dc.tar.gz rust-2e02803c7384398058a6fffd4cef723d8b7729dc.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 773e94f1b41..cff0308d4af 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -1902,26 +1902,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] |
