]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/identity_op.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / identity_op.stderr
CommitLineData
f20569fa
XL
1error: the operation is ineffective. Consider reducing it to `x`
2 --> $DIR/identity_op.rs:16:5
3 |
4LL | x + 0;
5 | ^^^^^
6 |
7 = note: `-D clippy::identity-op` implied by `-D warnings`
8
9error: the operation is ineffective. Consider reducing it to `x`
10 --> $DIR/identity_op.rs:17:5
11 |
12LL | x + (1 - 1);
13 | ^^^^^^^^^^^
14
15error: the operation is ineffective. Consider reducing it to `x`
16 --> $DIR/identity_op.rs:19:5
17 |
18LL | 0 + x;
19 | ^^^^^
20
21error: the operation is ineffective. Consider reducing it to `x`
22 --> $DIR/identity_op.rs:22:5
23 |
24LL | x | (0);
25 | ^^^^^^^
26
27error: the operation is ineffective. Consider reducing it to `x`
28 --> $DIR/identity_op.rs:25:5
29 |
30LL | x * 1;
31 | ^^^^^
32
33error: the operation is ineffective. Consider reducing it to `x`
34 --> $DIR/identity_op.rs:26:5
35 |
36LL | 1 * x;
37 | ^^^^^
38
39error: the operation is ineffective. Consider reducing it to `x`
40 --> $DIR/identity_op.rs:32:5
41 |
42LL | -1 & x;
43 | ^^^^^^
44
45error: the operation is ineffective. Consider reducing it to `u`
46 --> $DIR/identity_op.rs:35:5
47 |
48LL | u & 255;
49 | ^^^^^^^
50
51error: the operation is ineffective. Consider reducing it to `42`
52 --> $DIR/identity_op.rs:38:5
53 |
54LL | 42 << 0;
55 | ^^^^^^^
56
57error: the operation is ineffective. Consider reducing it to `1`
58 --> $DIR/identity_op.rs:39:5
59 |
60LL | 1 >> 0;
61 | ^^^^^^
62
63error: the operation is ineffective. Consider reducing it to `42`
64 --> $DIR/identity_op.rs:40:5
65 |
66LL | 42 >> 0;
67 | ^^^^^^^
68
69error: aborting due to 11 previous errors
70