]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/assign_ops.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / assign_ops.stderr
CommitLineData
ea8adc8c
XL
1error: assign operation detected
2 --> $DIR/assign_ops.rs:8:5
3 |
48 | i += 2;
5 | ^^^^^^ help: replace it with: `i = i + 2`
6 |
7 = note: `-D assign-ops` implied by `-D warnings`
8
9error: assign operation detected
10 --> $DIR/assign_ops.rs:9:5
11 |
129 | i += 2 + 17;
13 | ^^^^^^^^^^^ help: replace it with: `i = i + 2 + 17`
14
15error: assign operation detected
16 --> $DIR/assign_ops.rs:10:5
17 |
1810 | i -= 6;
19 | ^^^^^^ help: replace it with: `i = i - 6`
20
21error: assign operation detected
22 --> $DIR/assign_ops.rs:11:5
23 |
2411 | i -= 2 - 1;
25 | ^^^^^^^^^^ help: replace it with: `i = i - (2 - 1)`
26
27error: assign operation detected
28 --> $DIR/assign_ops.rs:12:5
29 |
3012 | i *= 5;
31 | ^^^^^^ help: replace it with: `i = i * 5`
32
33error: assign operation detected
34 --> $DIR/assign_ops.rs:13:5
35 |
3613 | i *= 1+5;
37 | ^^^^^^^^ help: replace it with: `i = i * (1+5)`
38
39error: assign operation detected
40 --> $DIR/assign_ops.rs:14:5
41 |
4214 | i /= 32;
43 | ^^^^^^^ help: replace it with: `i = i / 32`
44
45error: assign operation detected
46 --> $DIR/assign_ops.rs:15:5
47 |
4815 | i /= 32 | 5;
49 | ^^^^^^^^^^^ help: replace it with: `i = i / (32 | 5)`
50
51error: assign operation detected
52 --> $DIR/assign_ops.rs:16:5
53 |
5416 | i /= 32 / 5;
55 | ^^^^^^^^^^^ help: replace it with: `i = i / (32 / 5)`
56
57error: assign operation detected
58 --> $DIR/assign_ops.rs:17:5
59 |
6017 | i %= 42;
61 | ^^^^^^^ help: replace it with: `i = i % 42`
62
63error: assign operation detected
64 --> $DIR/assign_ops.rs:18:5
65 |
6618 | i >>= i;
67 | ^^^^^^^ help: replace it with: `i = i >> i`
68
69error: assign operation detected
70 --> $DIR/assign_ops.rs:19:5
71 |
7219 | i <<= 9 + 6 - 7;
73 | ^^^^^^^^^^^^^^^ help: replace it with: `i = i << (9 + 6 - 7)`
74
75error: assign operation detected
76 --> $DIR/assign_ops.rs:20:5
77 |
7820 | i += 1 << 5;
79 | ^^^^^^^^^^^ help: replace it with: `i = i + (1 << 5)`
80
81error: manual implementation of an assign operation
82 --> $DIR/assign_ops.rs:27:5
83 |
8427 | a = a + 1;
85 | ^^^^^^^^^ help: replace it with: `a += 1`
86 |
87 = note: `-D assign-op-pattern` implied by `-D warnings`
88
89error: manual implementation of an assign operation
90 --> $DIR/assign_ops.rs:28:5
91 |
9228 | a = 1 + a;
93 | ^^^^^^^^^ help: replace it with: `a += 1`
94
95error: manual implementation of an assign operation
96 --> $DIR/assign_ops.rs:29:5
97 |
9829 | a = a - 1;
99 | ^^^^^^^^^ help: replace it with: `a -= 1`
100
101error: manual implementation of an assign operation
102 --> $DIR/assign_ops.rs:30:5
103 |
10430 | a = a * 99;
105 | ^^^^^^^^^^ help: replace it with: `a *= 99`
106
107error: manual implementation of an assign operation
108 --> $DIR/assign_ops.rs:31:5
109 |
11031 | a = 42 * a;
111 | ^^^^^^^^^^ help: replace it with: `a *= 42`
112
113error: manual implementation of an assign operation
114 --> $DIR/assign_ops.rs:32:5
115 |
11632 | a = a / 2;
117 | ^^^^^^^^^ help: replace it with: `a /= 2`
118
119error: manual implementation of an assign operation
120 --> $DIR/assign_ops.rs:33:5
121 |
12233 | a = a % 5;
123 | ^^^^^^^^^ help: replace it with: `a %= 5`
124
125error: manual implementation of an assign operation
126 --> $DIR/assign_ops.rs:34:5
127 |
12834 | a = a & 1;
129 | ^^^^^^^^^ help: replace it with: `a &= 1`
130
131error: manual implementation of an assign operation
132 --> $DIR/assign_ops.rs:40:5
133 |
13440 | s = s + "bla";
135 | ^^^^^^^^^^^^^ help: replace it with: `s += "bla"`
136