mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Rollup merge of #5430 - michaelsproul:integer-arithmetic, r=flip1995
Disallow bit-shifting in integer_arithmetic Make the `integer_arithmetic` lint detect all the operations that are defined as being capable of overflow in the [Rust Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow), by also linting for bit-shifting operations (`<<`, `>>`). changelog: Disallow bit-shifting in `integer_arithmetic`
This commit is contained in:
+1
-1
@@ -853,7 +853,7 @@
|
||||
Lint {
|
||||
name: "integer_arithmetic",
|
||||
group: "restriction",
|
||||
desc: "any integer arithmetic statement",
|
||||
desc: "any integer arithmetic expression which could overflow or panic",
|
||||
deprecation: None,
|
||||
module: "arithmetic",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user