rollup merge of #18397 : aochagavia/ascii

This commit is contained in:
Alex Crichton 2014-10-30 08:57:17 -07:00
commit f2fe55b013

View File

@ -331,8 +331,7 @@ impl IntoStr for Vec<Ascii> {
#[inline]
fn into_string(self) -> String {
unsafe {
let s: &str = mem::transmute(self.as_slice());
String::from_str(s)
string::raw::from_utf8(self.into_bytes())
}
}
}