about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-01-30 16:29:25 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-01-30 17:07:50 +0100
commit8db9ecfd74732f4227421fd9bbf3c7704f594cbe (patch)
tree8353c88937d2923b94db183636297c32a2a53d68 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentad05bc055c0580c87af7a3306e865a38a8e307bc (diff)
downloadrust-8db9ecfd74732f4227421fd9bbf3c7704f594cbe.tar.gz
rust-8db9ecfd74732f4227421fd9bbf3c7704f594cbe.zip
New lint: `precedence_bits`, with recent additions to `precedence`
Commit 25505302665a707bedee68ca1f3faf2a09f12c00 has extended the
`precedence` lint to include bitmasking and shift operations. The lint
is warn by default, and this generates many hits, especially in embedded
or system code, where it is very idiomatic to use expressions such as
`1 << 3 | 1 << 5` without parentheses.

This commit splits the recent addition into a new lint, which is put
into the "restriction" category, while the original one stays in
"complexity", because mixing bitmasking and arithmetic operations is
less typical.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions