diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-03 18:57:18 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2016-10-03 18:57:18 +1100 |
| commit | 49960ad2503eb050e02c6c428111a59d5bc16ba3 (patch) | |
| tree | 169061bdff32d2ff2d5766240996967ffab8a274 /src/test/run-pass/thinlto | |
| parent | 144af3e97aa30feba3d36a98ac04c0f1b2bc0bea (diff) | |
| download | rust-49960ad2503eb050e02c6c428111a59d5bc16ba3.tar.gz rust-49960ad2503eb050e02c6c428111a59d5bc16ba3.zip | |
Streamline StringReader::bump.
First, assert! is redundant w.r.t. the unwrap() immediately afterwards. Second, `byte_offset_diff` is effectively computed as `current_byte_offset + ch.len_utf8() - current_byte_offset` (with `next` as an intermediate) which is silly and can be simplified.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
