Skip to content

Commit cfb29db

Browse files
committed
Revert "implement From<Vec<char>> and From<&'a [char]> for String"
This reverts commit ac73335.
1 parent aec8364 commit cfb29db

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/libcollections/string.rs

-20
Original file line numberDiff line numberDiff line change
@@ -1901,26 +1901,6 @@ impl Into<Vec<u8>> for String {
19011901
}
19021902
}
19031903

1904-
#[stable(feature = "stringfromchars", since = "1.12.0")]
1905-
impl<'a> From<&'a [char]> for String {
1906-
#[inline]
1907-
fn from(v: &'a [char]) -> String {
1908-
let mut s = String::with_capacity(v.len());
1909-
for c in v {
1910-
s.push(*c);
1911-
}
1912-
s
1913-
}
1914-
}
1915-
1916-
#[stable(feature = "stringfromchars", since = "1.12.0")]
1917-
impl From<Vec<char>> for String {
1918-
#[inline]
1919-
fn from(v: Vec<char>) -> String {
1920-
String::from(v.as_slice())
1921-
}
1922-
}
1923-
19241904
#[stable(feature = "rust1", since = "1.0.0")]
19251905
impl fmt::Write for String {
19261906
#[inline]

0 commit comments

Comments
 (0)