about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2025-02-13 21:37:50 -0800
committerGitHub <noreply@github.com>2025-02-13 21:37:50 -0800
commit8f4b7668857c03d30d26a9ce0198bb8d37044231 (patch)
tree1c646109a1a6212218ee88e6d3f696491cbe1fcb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parente7d9cb3d0192931676d6c1698e8589962e3a238f (diff)
parentd6ca7ad0d7a7e8acd14f6da3bad4e7b5a25c3d17 (diff)
downloadrust-8f4b7668857c03d30d26a9ce0198bb8d37044231.tar.gz
rust-8f4b7668857c03d30d26a9ce0198bb8d37044231.zip
Rollup merge of #136460 - real-eren:simplify-rustc_span-analyze, r=Noratrieb
Simplify `rustc_span` `analyze_source_file`

Simplifies the logic to what the code *actually* does, which is to just record newlines and multibyte characters. Checking for other ASCII control characters is unnecessary because the generic fallback doesn't do anything for those cases.
Also uses a simpler (and more efficient) means of iterating the set bits of the mask.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions