Skip to content

Commit 7bd7a46

Browse files
committed
run tests/ui/update-references.sh to update 'suspicious_arithmetic_impl.rs'
1 parent f4eeff9 commit 7bd7a46

File tree

1 file changed

+40
-4
lines changed

1 file changed

+40
-4
lines changed
Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,60 @@
11
error: suspicious use of binary operator in `Add` impl
2-
--> $DIR/suspicious_arithmetic_impl.rs:11:20
2+
--> $DIR/suspicious_arithmetic_impl.rs:13:20
33
|
44
LL | Foo(self.0 - other.0)
55
| ^
66
|
77
= note: `-D clippy::suspicious-arithmetic-impl` implied by `-D warnings`
88

99
error: suspicious use of binary operator in `AddAssign` impl
10-
--> $DIR/suspicious_arithmetic_impl.rs:17:23
10+
--> $DIR/suspicious_arithmetic_impl.rs:19:23
1111
|
1212
LL | *self = *self - other;
1313
| ^
1414
|
1515
= note: `#[deny(clippy::suspicious_op_assign_impl)]` on by default
1616

1717
error: suspicious use of binary operator in `MulAssign` impl
18-
--> $DIR/suspicious_arithmetic_impl.rs:30:16
18+
--> $DIR/suspicious_arithmetic_impl.rs:32:16
1919
|
2020
LL | self.0 /= other.0;
2121
| ^^
2222

23-
error: aborting due to 3 previous errors
23+
error: suspicious use of binary operator in `Rem` impl
24+
--> $DIR/suspicious_arithmetic_impl.rs:70:20
25+
|
26+
LL | Foo(self.0 / other.0)
27+
| ^
28+
29+
error: suspicious use of binary operator in `BitAnd` impl
30+
--> $DIR/suspicious_arithmetic_impl.rs:78:20
31+
|
32+
LL | Foo(self.0 | other.0)
33+
| ^
34+
35+
error: suspicious use of binary operator in `BitOr` impl
36+
--> $DIR/suspicious_arithmetic_impl.rs:86:20
37+
|
38+
LL | Foo(self.0 ^ other.0)
39+
| ^
40+
41+
error: suspicious use of binary operator in `BitXor` impl
42+
--> $DIR/suspicious_arithmetic_impl.rs:94:20
43+
|
44+
LL | Foo(self.0 & other.0)
45+
| ^
46+
47+
error: suspicious use of binary operator in `Shl` impl
48+
--> $DIR/suspicious_arithmetic_impl.rs:102:20
49+
|
50+
LL | Foo(self.0 >> other.0)
51+
| ^^
52+
53+
error: suspicious use of binary operator in `Shr` impl
54+
--> $DIR/suspicious_arithmetic_impl.rs:110:20
55+
|
56+
LL | Foo(self.0 << other.0)
57+
| ^^
58+
59+
error: aborting due to 9 previous errors
2460

0 commit comments

Comments
 (0)