mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
a8d57a26df
Make bytepos_to_charpos relative to the start of the filemap rather than its previous behaviour which was to be realtive to the start of the codemap, but ignoring multi-byte chars in earlier filemaps. Rename to bytepos_to_file_charpos. Add tests for multi-byte chars.