about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-03-06 22:06:30 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-03-14 10:02:55 +0100
commitb5f16a10e9406fc1c19294fee1c33e507a17458e (patch)
tree64a3688eb665f235e80fe2687c1087af93909693 /src/rustllvm/RustWrapper.cpp
parent182044248ca2aa569844a25e73f90e5bc2fd05d3 (diff)
downloadrust-b5f16a10e9406fc1c19294fee1c33e507a17458e.tar.gz
rust-b5f16a10e9406fc1c19294fee1c33e507a17458e.zip
Replace Utf8Error::resume_from with Utf8Error::error_len
Their relationship is:

* `resume_from = error_len.map(|l| l + valid_up_to)`
* error_len is always one of None, Some(1), Some(2), or Some(3).

When I started using resume_from I almost always ended up subtracting
valid_up_to to obtain error_len.
Therefore the latter is what should be provided in the first place.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions