11error: statement with no effect
2- --> tests/ui/no_effect.rs:122 :5
2+ --> tests/ui/no_effect.rs:115 :5
33 |
44LL | 0;
55 | ^^
@@ -8,151 +8,139 @@ LL | 0;
88 = help: to override `-D warnings` add `#[allow(clippy::no_effect)]`
99
1010error: 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
2412 |
2513LL | Tuple(0);
2614 | ^^^^^^^^^
2715
2816error: statement with no effect
29- --> tests/ui/no_effect.rs:131 :5
17+ --> tests/ui/no_effect.rs:119 :5
3018 |
3119LL | Struct { field: 0 };
3220 | ^^^^^^^^^^^^^^^^^^^^
3321
3422error: statement with no effect
35- --> tests/ui/no_effect.rs:133 :5
23+ --> tests/ui/no_effect.rs:121 :5
3624 |
3725LL | Struct { ..s };
3826 | ^^^^^^^^^^^^^^^
3927
4028error: statement with no effect
41- --> tests/ui/no_effect.rs:135 :5
29+ --> tests/ui/no_effect.rs:123 :5
4230 |
4331LL | Union { a: 0 };
4432 | ^^^^^^^^^^^^^^^
4533
4634error: statement with no effect
47- --> tests/ui/no_effect.rs:137 :5
35+ --> tests/ui/no_effect.rs:125 :5
4836 |
4937LL | Enum::Tuple(0);
5038 | ^^^^^^^^^^^^^^^
5139
5240error: statement with no effect
53- --> tests/ui/no_effect.rs:139 :5
41+ --> tests/ui/no_effect.rs:127 :5
5442 |
5543LL | Enum::Struct { field: 0 };
5644 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
5745
5846error: statement with no effect
59- --> tests/ui/no_effect.rs:141 :5
47+ --> tests/ui/no_effect.rs:129 :5
6048 |
6149LL | 5 + 6;
6250 | ^^^^^^
6351
6452error: statement with no effect
65- --> tests/ui/no_effect.rs:143 :5
53+ --> tests/ui/no_effect.rs:131 :5
6654 |
6755LL | *&42;
6856 | ^^^^^
6957
7058error: statement with no effect
71- --> tests/ui/no_effect.rs:145 :5
59+ --> tests/ui/no_effect.rs:133 :5
7260 |
7361LL | &6;
7462 | ^^^
7563
7664error: statement with no effect
77- --> tests/ui/no_effect.rs:147 :5
65+ --> tests/ui/no_effect.rs:135 :5
7866 |
7967LL | (5, 6, 7);
8068 | ^^^^^^^^^^
8169
8270error: statement with no effect
83- --> tests/ui/no_effect.rs:149 :5
71+ --> tests/ui/no_effect.rs:137 :5
8472 |
8573LL | ..;
8674 | ^^^
8775
8876error: statement with no effect
89- --> tests/ui/no_effect.rs:151 :5
77+ --> tests/ui/no_effect.rs:139 :5
9078 |
9179LL | 5..;
9280 | ^^^^
9381
9482error: statement with no effect
95- --> tests/ui/no_effect.rs:153 :5
83+ --> tests/ui/no_effect.rs:141 :5
9684 |
9785LL | ..5;
9886 | ^^^^
9987
10088error: statement with no effect
101- --> tests/ui/no_effect.rs:155 :5
89+ --> tests/ui/no_effect.rs:143 :5
10290 |
10391LL | 5..6;
10492 | ^^^^^
10593
10694error: statement with no effect
107- --> tests/ui/no_effect.rs:157 :5
95+ --> tests/ui/no_effect.rs:145 :5
10896 |
10997LL | 5..=6;
11098 | ^^^^^^
11199
112100error: statement with no effect
113- --> tests/ui/no_effect.rs:159 :5
101+ --> tests/ui/no_effect.rs:147 :5
114102 |
115103LL | [42, 55];
116104 | ^^^^^^^^^
117105
118106error: statement with no effect
119- --> tests/ui/no_effect.rs:161 :5
107+ --> tests/ui/no_effect.rs:149 :5
120108 |
121109LL | [42, 55][1];
122110 | ^^^^^^^^^^^^
123111
124112error: statement with no effect
125- --> tests/ui/no_effect.rs:163 :5
113+ --> tests/ui/no_effect.rs:151 :5
126114 |
127115LL | (42, 55).1;
128116 | ^^^^^^^^^^^
129117
130118error: statement with no effect
131- --> tests/ui/no_effect.rs:165 :5
119+ --> tests/ui/no_effect.rs:153 :5
132120 |
133121LL | [42; 55];
134122 | ^^^^^^^^^
135123
136124error: statement with no effect
137- --> tests/ui/no_effect.rs:167 :5
125+ --> tests/ui/no_effect.rs:155 :5
138126 |
139127LL | [42; 55][13];
140128 | ^^^^^^^^^^^^^
141129
142130error: statement with no effect
143- --> tests/ui/no_effect.rs:170 :5
131+ --> tests/ui/no_effect.rs:158 :5
144132 |
145133LL | || x += 5;
146134 | ^^^^^^^^^^
147135
148136error: statement with no effect
149- --> tests/ui/no_effect.rs:173 :5
137+ --> tests/ui/no_effect.rs:161 :5
150138 |
151139LL | FooString { s: s };
152140 | ^^^^^^^^^^^^^^^^^^^
153141
154142error: binding to `_` prefixed variable with no side-effect
155- --> tests/ui/no_effect.rs:175 :9
143+ --> tests/ui/no_effect.rs:163 :9
156144 |
157145LL | let _unused = 1;
158146 | ^^^^^^^
@@ -161,22 +149,22 @@ LL | let _unused = 1;
161149 = help: to override `-D warnings` add `#[allow(clippy::no_effect_underscore_binding)]`
162150
163151error: binding to `_` prefixed variable with no side-effect
164- --> tests/ui/no_effect.rs:178 :9
152+ --> tests/ui/no_effect.rs:166 :9
165153 |
166154LL | let _penguin = || println!("Some helpful closure");
167155 | ^^^^^^^^
168156
169157error: binding to `_` prefixed variable with no side-effect
170- --> tests/ui/no_effect.rs:180 :9
158+ --> tests/ui/no_effect.rs:168 :9
171159 |
172160LL | let _duck = Struct { field: 0 };
173161 | ^^^^^
174162
175163error: binding to `_` prefixed variable with no side-effect
176- --> tests/ui/no_effect.rs:182 :9
164+ --> tests/ui/no_effect.rs:170 :9
177165 |
178166LL | let _cat = [2, 4, 6, 8][2];
179167 | ^^^^
180168
181- error: aborting due to 29 previous errors
169+ error: aborting due to 27 previous errors
182170
0 commit comments