rust/compiler/rustc_span
bors 96859dbaf6 Auto merge of #86778 - tmiasko:fast-multiline, r=davidtwco
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.
2021-07-03 16:06:35 +00:00
..
src Avoid byte to char position conversions in is_multiline 2021-07-01 13:30:00 +02:00
Cargo.toml rustc_span: Explicitly handle crates that differ from package names 2021-06-24 23:48:53 -07:00