@@ -81,106 +81,100 @@ LL | (5, 6, 7);
8181error: statement with no effect
8282 --> $DIR/no_effect.rs:105:5
8383 |
84- LL | box 42;
85- | ^^^^^^^
86-
87- error: statement with no effect
88- --> $DIR/no_effect.rs:106:5
89- |
9084LL | ..;
9185 | ^^^
9286
9387error: statement with no effect
94- --> $DIR/no_effect.rs:107 :5
88+ --> $DIR/no_effect.rs:106 :5
9589 |
9690LL | 5..;
9791 | ^^^^
9892
9993error: statement with no effect
100- --> $DIR/no_effect.rs:108 :5
94+ --> $DIR/no_effect.rs:107 :5
10195 |
10296LL | ..5;
10397 | ^^^^
10498
10599error: statement with no effect
106- --> $DIR/no_effect.rs:109 :5
100+ --> $DIR/no_effect.rs:108 :5
107101 |
108102LL | 5..6;
109103 | ^^^^^
110104
111105error: statement with no effect
112- --> $DIR/no_effect.rs:110 :5
106+ --> $DIR/no_effect.rs:109 :5
113107 |
114108LL | 5..=6;
115109 | ^^^^^^
116110
117111error: statement with no effect
118- --> $DIR/no_effect.rs:111 :5
112+ --> $DIR/no_effect.rs:110 :5
119113 |
120114LL | [42, 55];
121115 | ^^^^^^^^^
122116
123117error: statement with no effect
124- --> $DIR/no_effect.rs:112 :5
118+ --> $DIR/no_effect.rs:111 :5
125119 |
126120LL | [42, 55][1];
127121 | ^^^^^^^^^^^^
128122
129123error: statement with no effect
130- --> $DIR/no_effect.rs:113 :5
124+ --> $DIR/no_effect.rs:112 :5
131125 |
132126LL | (42, 55).1;
133127 | ^^^^^^^^^^^
134128
135129error: statement with no effect
136- --> $DIR/no_effect.rs:114 :5
130+ --> $DIR/no_effect.rs:113 :5
137131 |
138132LL | [42; 55];
139133 | ^^^^^^^^^
140134
141135error: statement with no effect
142- --> $DIR/no_effect.rs:115 :5
136+ --> $DIR/no_effect.rs:114 :5
143137 |
144138LL | [42; 55][13];
145139 | ^^^^^^^^^^^^^
146140
147141error: statement with no effect
148- --> $DIR/no_effect.rs:117 :5
142+ --> $DIR/no_effect.rs:116 :5
149143 |
150144LL | || x += 5;
151145 | ^^^^^^^^^^
152146
153147error: statement with no effect
154- --> $DIR/no_effect.rs:119 :5
148+ --> $DIR/no_effect.rs:118 :5
155149 |
156150LL | FooString { s: s };
157151 | ^^^^^^^^^^^^^^^^^^^
158152
159153error: binding to `_` prefixed variable with no side-effect
160- --> $DIR/no_effect.rs:120 :5
154+ --> $DIR/no_effect.rs:119 :5
161155 |
162156LL | let _unused = 1;
163157 | ^^^^^^^^^^^^^^^^
164158 |
165159 = note: `-D clippy::no-effect-underscore-binding` implied by `-D warnings`
166160
167161error: binding to `_` prefixed variable with no side-effect
168- --> $DIR/no_effect.rs:121 :5
162+ --> $DIR/no_effect.rs:120 :5
169163 |
170164LL | let _penguin = || println!("Some helpful closure");
171165 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172166
173167error: binding to `_` prefixed variable with no side-effect
174- --> $DIR/no_effect.rs:122 :5
168+ --> $DIR/no_effect.rs:121 :5
175169 |
176170LL | let _duck = Struct { field: 0 };
177171 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178172
179173error: binding to `_` prefixed variable with no side-effect
180- --> $DIR/no_effect.rs:123 :5
174+ --> $DIR/no_effect.rs:122 :5
181175 |
182176LL | let _cat = [2, 4, 6, 8][2];
183177 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
184178
185- error: aborting due to 30 previous errors
179+ error: aborting due to 29 previous errors
186180
0 commit comments