]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #40212 - SimonSapin:utf8error-resume-from, r=aturon
authorbors <bors@rust-lang.org>
Wed, 15 Mar 2017 07:04:20 +0000 (07:04 +0000)
committerbors <bors@rust-lang.org>
Wed, 15 Mar 2017 07:04:20 +0000 (07:04 +0000)
Add Utf8Error::error_len, to help incremental and/or lossy decoding.

Without this, code outside of the standard library needs to reimplement most of the logic `from_utf8` to interpret the bytes after `valid_up_to()`.


Trivial merge