]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/suspicious_arithmetic_impl.stderr
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / src / tools / clippy / tests / ui / suspicious_arithmetic_impl.stderr
CommitLineData
136023e0 1error: suspicious use of `-` in `Add` impl
e8be2606 2 --> tests/ui/suspicious_arithmetic_impl.rs:14:20
f20569fa
XL
3 |
4LL | Foo(self.0 - other.0)
5 | ^
6 |
7 = note: `-D clippy::suspicious-arithmetic-impl` implied by `-D warnings`
781aab86 8 = help: to override `-D warnings` add `#[allow(clippy::suspicious_arithmetic_impl)]`
f20569fa 9
136023e0 10error: suspicious use of `-` in `AddAssign` impl
e8be2606 11 --> tests/ui/suspicious_arithmetic_impl.rs:22:23
f20569fa
XL
12 |
13LL | *self = *self - other;
14 | ^
15 |
136023e0 16 = note: `-D clippy::suspicious-op-assign-impl` implied by `-D warnings`
781aab86 17 = help: to override `-D warnings` add `#[allow(clippy::suspicious_op_assign_impl)]`
f20569fa 18
136023e0 19error: suspicious use of `/` in `MulAssign` impl
e8be2606 20 --> tests/ui/suspicious_arithmetic_impl.rs:37:16
f20569fa
XL
21 |
22LL | self.0 /= other.0;
23 | ^^
24
136023e0 25error: suspicious use of `/` in `Rem` impl
e8be2606 26 --> tests/ui/suspicious_arithmetic_impl.rs:76:20
f20569fa
XL
27 |
28LL | Foo(self.0 / other.0)
29 | ^
30
136023e0 31error: suspicious use of `|` in `BitAnd` impl
e8be2606 32 --> tests/ui/suspicious_arithmetic_impl.rs:85:20
f20569fa
XL
33 |
34LL | Foo(self.0 | other.0)
35 | ^
36
136023e0 37error: suspicious use of `^` in `BitOr` impl
e8be2606 38 --> tests/ui/suspicious_arithmetic_impl.rs:94:20
f20569fa
XL
39 |
40LL | Foo(self.0 ^ other.0)
41 | ^
42
136023e0 43error: suspicious use of `&` in `BitXor` impl
e8be2606 44 --> tests/ui/suspicious_arithmetic_impl.rs:103:20
f20569fa
XL
45 |
46LL | Foo(self.0 & other.0)
47 | ^
48
136023e0 49error: suspicious use of `>>` in `Shl` impl
e8be2606 50 --> tests/ui/suspicious_arithmetic_impl.rs:112:20
f20569fa
XL
51 |
52LL | Foo(self.0 >> other.0)
53 | ^^
54
136023e0 55error: suspicious use of `<<` in `Shr` impl
e8be2606 56 --> tests/ui/suspicious_arithmetic_impl.rs:121:20
f20569fa
XL
57 |
58LL | Foo(self.0 << other.0)
59 | ^^
60
61error: aborting due to 9 previous errors
62