Skip to content

Commit ecd3572

Browse files
committed
Fix zero-normalization of the pos of a MultiByteChar.
Fix #24687
1 parent 857ef6e commit ecd3572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/metadata/creader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ fn import_codemap(local_codemap: &codemap::CodeMap,
664664
.into_inner()
665665
.map_in_place(|mbc|
666666
codemap::MultiByteChar {
667-
pos: mbc.pos + start_pos,
667+
pos: mbc.pos - start_pos,
668668
bytes: mbc.bytes
669669
});
670670

0 commit comments

Comments
 (0)