mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
96859dbaf6
Avoid byte to char position conversions in `is_multiline` Converting a byte position into a char position is currently linear in the number of multibyte characters in the source code. Avoid it when checking if a range spans across lines. This makes it feasible to compile source files with a large number of multibyte characters.