1
1
error: statement with no effect
2
- --> tests/ui/no_effect.rs:122 :5
2
+ --> tests/ui/no_effect.rs:115 :5
3
3
|
4
4
LL | 0;
5
5
| ^^
@@ -8,151 +8,139 @@ LL | 0;
8
8
= help: to override `-D warnings` add `#[allow(clippy::no_effect)]`
9
9
10
10
error: statement with no effect
11
- --> tests/ui/no_effect.rs:125:5
12
- |
13
- LL | s2;
14
- | ^^^
15
-
16
- error: statement with no effect
17
- --> tests/ui/no_effect.rs:127:5
18
- |
19
- LL | Unit;
20
- | ^^^^^
21
-
22
- error: statement with no effect
23
- --> tests/ui/no_effect.rs:129:5
11
+ --> tests/ui/no_effect.rs:117:5
24
12
|
25
13
LL | Tuple(0);
26
14
| ^^^^^^^^^
27
15
28
16
error: statement with no effect
29
- --> tests/ui/no_effect.rs:131 :5
17
+ --> tests/ui/no_effect.rs:119 :5
30
18
|
31
19
LL | Struct { field: 0 };
32
20
| ^^^^^^^^^^^^^^^^^^^^
33
21
34
22
error: statement with no effect
35
- --> tests/ui/no_effect.rs:133 :5
23
+ --> tests/ui/no_effect.rs:121 :5
36
24
|
37
25
LL | Struct { ..s };
38
26
| ^^^^^^^^^^^^^^^
39
27
40
28
error: statement with no effect
41
- --> tests/ui/no_effect.rs:135 :5
29
+ --> tests/ui/no_effect.rs:123 :5
42
30
|
43
31
LL | Union { a: 0 };
44
32
| ^^^^^^^^^^^^^^^
45
33
46
34
error: statement with no effect
47
- --> tests/ui/no_effect.rs:137 :5
35
+ --> tests/ui/no_effect.rs:125 :5
48
36
|
49
37
LL | Enum::Tuple(0);
50
38
| ^^^^^^^^^^^^^^^
51
39
52
40
error: statement with no effect
53
- --> tests/ui/no_effect.rs:139 :5
41
+ --> tests/ui/no_effect.rs:127 :5
54
42
|
55
43
LL | Enum::Struct { field: 0 };
56
44
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
57
45
58
46
error: statement with no effect
59
- --> tests/ui/no_effect.rs:141 :5
47
+ --> tests/ui/no_effect.rs:129 :5
60
48
|
61
49
LL | 5 + 6;
62
50
| ^^^^^^
63
51
64
52
error: statement with no effect
65
- --> tests/ui/no_effect.rs:143 :5
53
+ --> tests/ui/no_effect.rs:131 :5
66
54
|
67
55
LL | *&42;
68
56
| ^^^^^
69
57
70
58
error: statement with no effect
71
- --> tests/ui/no_effect.rs:145 :5
59
+ --> tests/ui/no_effect.rs:133 :5
72
60
|
73
61
LL | &6;
74
62
| ^^^
75
63
76
64
error: statement with no effect
77
- --> tests/ui/no_effect.rs:147 :5
65
+ --> tests/ui/no_effect.rs:135 :5
78
66
|
79
67
LL | (5, 6, 7);
80
68
| ^^^^^^^^^^
81
69
82
70
error: statement with no effect
83
- --> tests/ui/no_effect.rs:149 :5
71
+ --> tests/ui/no_effect.rs:137 :5
84
72
|
85
73
LL | ..;
86
74
| ^^^
87
75
88
76
error: statement with no effect
89
- --> tests/ui/no_effect.rs:151 :5
77
+ --> tests/ui/no_effect.rs:139 :5
90
78
|
91
79
LL | 5..;
92
80
| ^^^^
93
81
94
82
error: statement with no effect
95
- --> tests/ui/no_effect.rs:153 :5
83
+ --> tests/ui/no_effect.rs:141 :5
96
84
|
97
85
LL | ..5;
98
86
| ^^^^
99
87
100
88
error: statement with no effect
101
- --> tests/ui/no_effect.rs:155 :5
89
+ --> tests/ui/no_effect.rs:143 :5
102
90
|
103
91
LL | 5..6;
104
92
| ^^^^^
105
93
106
94
error: statement with no effect
107
- --> tests/ui/no_effect.rs:157 :5
95
+ --> tests/ui/no_effect.rs:145 :5
108
96
|
109
97
LL | 5..=6;
110
98
| ^^^^^^
111
99
112
100
error: statement with no effect
113
- --> tests/ui/no_effect.rs:159 :5
101
+ --> tests/ui/no_effect.rs:147 :5
114
102
|
115
103
LL | [42, 55];
116
104
| ^^^^^^^^^
117
105
118
106
error: statement with no effect
119
- --> tests/ui/no_effect.rs:161 :5
107
+ --> tests/ui/no_effect.rs:149 :5
120
108
|
121
109
LL | [42, 55][1];
122
110
| ^^^^^^^^^^^^
123
111
124
112
error: statement with no effect
125
- --> tests/ui/no_effect.rs:163 :5
113
+ --> tests/ui/no_effect.rs:151 :5
126
114
|
127
115
LL | (42, 55).1;
128
116
| ^^^^^^^^^^^
129
117
130
118
error: statement with no effect
131
- --> tests/ui/no_effect.rs:165 :5
119
+ --> tests/ui/no_effect.rs:153 :5
132
120
|
133
121
LL | [42; 55];
134
122
| ^^^^^^^^^
135
123
136
124
error: statement with no effect
137
- --> tests/ui/no_effect.rs:167 :5
125
+ --> tests/ui/no_effect.rs:155 :5
138
126
|
139
127
LL | [42; 55][13];
140
128
| ^^^^^^^^^^^^^
141
129
142
130
error: statement with no effect
143
- --> tests/ui/no_effect.rs:170 :5
131
+ --> tests/ui/no_effect.rs:158 :5
144
132
|
145
133
LL | || x += 5;
146
134
| ^^^^^^^^^^
147
135
148
136
error: statement with no effect
149
- --> tests/ui/no_effect.rs:173 :5
137
+ --> tests/ui/no_effect.rs:161 :5
150
138
|
151
139
LL | FooString { s: s };
152
140
| ^^^^^^^^^^^^^^^^^^^
153
141
154
142
error: binding to `_` prefixed variable with no side-effect
155
- --> tests/ui/no_effect.rs:175 :9
143
+ --> tests/ui/no_effect.rs:163 :9
156
144
|
157
145
LL | let _unused = 1;
158
146
| ^^^^^^^
@@ -161,22 +149,22 @@ LL | let _unused = 1;
161
149
= help: to override `-D warnings` add `#[allow(clippy::no_effect_underscore_binding)]`
162
150
163
151
error: binding to `_` prefixed variable with no side-effect
164
- --> tests/ui/no_effect.rs:178 :9
152
+ --> tests/ui/no_effect.rs:166 :9
165
153
|
166
154
LL | let _penguin = || println!("Some helpful closure");
167
155
| ^^^^^^^^
168
156
169
157
error: binding to `_` prefixed variable with no side-effect
170
- --> tests/ui/no_effect.rs:180 :9
158
+ --> tests/ui/no_effect.rs:168 :9
171
159
|
172
160
LL | let _duck = Struct { field: 0 };
173
161
| ^^^^^
174
162
175
163
error: binding to `_` prefixed variable with no side-effect
176
- --> tests/ui/no_effect.rs:182 :9
164
+ --> tests/ui/no_effect.rs:170 :9
177
165
|
178
166
LL | let _cat = [2, 4, 6, 8][2];
179
167
| ^^^^
180
168
181
- error: aborting due to 29 previous errors
169
+ error: aborting due to 27 previous errors
182
170
0 commit comments