]> git.lizzy.rs Git - rust.git/commit
auto merge of #14213 : kballard/rust/str_from_utf8_result, r=cmr
authorbors <bors@rust-lang.org>
Fri, 16 May 2014 04:41:29 +0000 (21:41 -0700)
committerbors <bors@rust-lang.org>
Fri, 16 May 2014 04:41:29 +0000 (21:41 -0700)
commit84406d438c6c49aa63875096e5f3cca1a3879f17
tree7a6fd3d17580bc611d1d9c6bd5774f70c847b58c
parent632d48640113ab75833f5b2ae613532b8209c9b2
parentba7844a7fff0061e5b4528c2ecd5adf765145b70
auto merge of #14213 : kballard/rust/str_from_utf8_result, r=cmr

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.
src/libstd/str.rs