removed lint for division/modulo for literal 0
This commit is contained in:
parent
e97602e482
commit
fa0a78b130
2 changed files with 2 additions and 19 deletions
|
|
@ -75,12 +75,6 @@ error: integer arithmetic detected
|
|||
LL | i *= 2;
|
||||
| ^^^^^^
|
||||
|
||||
error: integer arithmetic detected
|
||||
--> $DIR/integer_arithmetic.rs:37:5
|
||||
|
|
||||
LL | i /= 0;
|
||||
| ^^^^^^
|
||||
|
||||
error: integer arithmetic detected
|
||||
--> $DIR/integer_arithmetic.rs:38:11
|
||||
|
|
||||
|
|
@ -99,12 +93,6 @@ error: integer arithmetic detected
|
|||
LL | i /= var2;
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: integer arithmetic detected
|
||||
--> $DIR/integer_arithmetic.rs:42:5
|
||||
|
|
||||
LL | i %= 0;
|
||||
| ^^^^^^
|
||||
|
||||
error: integer arithmetic detected
|
||||
--> $DIR/integer_arithmetic.rs:43:11
|
||||
|
|
||||
|
|
@ -177,5 +165,5 @@ error: integer arithmetic detected
|
|||
LL | (&x + &y)
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: aborting due to 29 previous errors
|
||||
error: aborting due to 27 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue