diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2024-12-03 15:58:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-03 15:58:06 +0000 |
| commit | 25505302665a707bedee68ca1f3faf2a09f12c00 (patch) | |
| tree | f92f09fd99542158ed6484d0b80a5ba73d55715e /compiler/rustc_codegen_gcc | |
| parent | 19426bfdfb430c1a423c56160e120f95e8548e3d (diff) | |
| parent | 120b84125ec545a6233eaa2224829510992f6c98 (diff) | |
| download | rust-25505302665a707bedee68ca1f3faf2a09f12c00.tar.gz rust-25505302665a707bedee68ca1f3faf2a09f12c00.zip | |
Extend `precedence` for bitmasking and shift (#13743)
Now we can lint for the expressions like `_&_>>_`, `_<<_^_`, etc. And will suggest to add parentheses like `_&(_>>_)` and `(_<<_)^_`. I get implementation suggestions from [https://github.com/rust-lang/rust-clippy/pull/8735#pullrequestreview-954273477](https://github.com/rust-lang/rust-clippy/pull/8735#pullrequestreview-954273477). changelog: extended [`precedence`] to lint for bit masking and bit shifting without parentheses fixes #6632
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
