diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-04-29 10:21:29 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-04-29 10:21:29 +0200 |
| commit | ecd3572f496c3249719ad9b91849e80fdf7e1fb2 (patch) | |
| tree | 52b75f00c582ac77061da7449fdaf1b0bdd584e3 /src | |
| parent | 857ef6e272e5634cb9f3e6ee50eb6bc2a2e71651 (diff) | |
| download | rust-ecd3572f496c3249719ad9b91849e80fdf7e1fb2.tar.gz rust-ecd3572f496c3249719ad9b91849e80fdf7e1fb2.zip | |
Fix zero-normalization of the pos of a `MultiByteChar`.
Fix #24687
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/metadata/creader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/metadata/creader.rs b/src/librustc/metadata/creader.rs index 802c5815398..241d8fd0025 100644 --- a/src/librustc/metadata/creader.rs +++ b/src/librustc/metadata/creader.rs @@ -664,7 +664,7 @@ fn import_codemap(local_codemap: &codemap::CodeMap, .into_inner() .map_in_place(|mbc| codemap::MultiByteChar { - pos: mbc.pos + start_pos, + pos: mbc.pos - start_pos, bytes: mbc.bytes }); |
