about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-03 16:06:35 +0000
committerbors <bors@rust-lang.org>2021-07-03 16:06:35 +0000
commit96859dbaf6229f131fbd427a32aaa95d4f9cb132 (patch)
treee4fec5b9f22a98f051e19ead1483603e78f96d61 /compiler/rustc_query_impl/src
parent8649737beefccbef2d6bc0113df4650dd05ad7f2 (diff)
parent7a410763facea6aab28cdaeb133179b11a979eb6 (diff)
downloadrust-96859dbaf6229f131fbd427a32aaa95d4f9cb132.tar.gz
rust-96859dbaf6229f131fbd427a32aaa95d4f9cb132.zip
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.
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions