about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-17 08:10:32 +0000
committerbors <bors@rust-lang.org>2024-03-17 08:10:32 +0000
commite9a50f2859d45a8a3720a72a7c27c319e5dfc8c3 (patch)
tree7b91ca5ba110081d4186862e2d8adc871ee5796d /compiler/rustc_codegen_llvm/src/errors.rs
parentd202eb653baf55ee0287a677c4272cd4d7ddde9d (diff)
parentedcf10e2f7243d4173d2a2c635ef923ba813a10f (diff)
downloadrust-e9a50f2859d45a8a3720a72a7c27c319e5dfc8c3.tar.gz
rust-e9a50f2859d45a8a3720a72a7c27c319e5dfc8c3.zip
Auto merge of #12451 - Jacherr:issue-12391, r=llogiq
new restriction lint: `integer_division_remainder_used`

Fixes https://github.com/rust-lang/rust-clippy/issues/12391

Introduces a restriction lint which disallows the use of `/` and `%` operators on any `Int` or `Uint` types (i.e., any that use the default `Div` or `Rem` trait implementations). Custom implementations of these traits are ignored.

----

changelog: Add new restriction lint [`integer_division_remainder_used`]
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions