mozilla/rust — pull request #14213 by kballard (2014-05-15 00:38:39+00:00)
Title: Change from_utf8_owned() to return Result

Change `str::from_utf8_owned()` and `StrBuf::from_utf8()` to return `Result`.

This allows the vector to be recovered when it contains invalid UTF-8.