11error: statement with no effect
2- --> $DIR/no_effect.rs:114 :5
2+ --> $DIR/no_effect.rs:122 :5
33 |
44LL | 0;
55 | ^^
@@ -8,151 +8,151 @@ LL | 0;
88 = help: to override `-D warnings` add `#[allow(clippy::no_effect)]`
99
1010error: statement with no effect
11- --> $DIR/no_effect.rs:117 :5
11+ --> $DIR/no_effect.rs:125 :5
1212 |
1313LL | s2;
1414 | ^^^
1515
1616error: statement with no effect
17- --> $DIR/no_effect.rs:119 :5
17+ --> $DIR/no_effect.rs:127 :5
1818 |
1919LL | Unit;
2020 | ^^^^^
2121
2222error: statement with no effect
23- --> $DIR/no_effect.rs:121 :5
23+ --> $DIR/no_effect.rs:129 :5
2424 |
2525LL | Tuple(0);
2626 | ^^^^^^^^^
2727
2828error: statement with no effect
29- --> $DIR/no_effect.rs:123 :5
29+ --> $DIR/no_effect.rs:131 :5
3030 |
3131LL | Struct { field: 0 };
3232 | ^^^^^^^^^^^^^^^^^^^^
3333
3434error: statement with no effect
35- --> $DIR/no_effect.rs:125 :5
35+ --> $DIR/no_effect.rs:133 :5
3636 |
3737LL | Struct { ..s };
3838 | ^^^^^^^^^^^^^^^
3939
4040error: statement with no effect
41- --> $DIR/no_effect.rs:127 :5
41+ --> $DIR/no_effect.rs:135 :5
4242 |
4343LL | Union { a: 0 };
4444 | ^^^^^^^^^^^^^^^
4545
4646error: statement with no effect
47- --> $DIR/no_effect.rs:129 :5
47+ --> $DIR/no_effect.rs:137 :5
4848 |
4949LL | Enum::Tuple(0);
5050 | ^^^^^^^^^^^^^^^
5151
5252error: statement with no effect
53- --> $DIR/no_effect.rs:131 :5
53+ --> $DIR/no_effect.rs:139 :5
5454 |
5555LL | Enum::Struct { field: 0 };
5656 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
5757
5858error: statement with no effect
59- --> $DIR/no_effect.rs:133 :5
59+ --> $DIR/no_effect.rs:141 :5
6060 |
6161LL | 5 + 6;
6262 | ^^^^^^
6363
6464error: statement with no effect
65- --> $DIR/no_effect.rs:135 :5
65+ --> $DIR/no_effect.rs:143 :5
6666 |
6767LL | *&42;
6868 | ^^^^^
6969
7070error: statement with no effect
71- --> $DIR/no_effect.rs:137 :5
71+ --> $DIR/no_effect.rs:145 :5
7272 |
7373LL | &6;
7474 | ^^^
7575
7676error: statement with no effect
77- --> $DIR/no_effect.rs:139 :5
77+ --> $DIR/no_effect.rs:147 :5
7878 |
7979LL | (5, 6, 7);
8080 | ^^^^^^^^^^
8181
8282error: statement with no effect
83- --> $DIR/no_effect.rs:141 :5
83+ --> $DIR/no_effect.rs:149 :5
8484 |
8585LL | ..;
8686 | ^^^
8787
8888error: statement with no effect
89- --> $DIR/no_effect.rs:143 :5
89+ --> $DIR/no_effect.rs:151 :5
9090 |
9191LL | 5..;
9292 | ^^^^
9393
9494error: statement with no effect
95- --> $DIR/no_effect.rs:145 :5
95+ --> $DIR/no_effect.rs:153 :5
9696 |
9797LL | ..5;
9898 | ^^^^
9999
100100error: statement with no effect
101- --> $DIR/no_effect.rs:147 :5
101+ --> $DIR/no_effect.rs:155 :5
102102 |
103103LL | 5..6;
104104 | ^^^^^
105105
106106error: statement with no effect
107- --> $DIR/no_effect.rs:149 :5
107+ --> $DIR/no_effect.rs:157 :5
108108 |
109109LL | 5..=6;
110110 | ^^^^^^
111111
112112error: statement with no effect
113- --> $DIR/no_effect.rs:151 :5
113+ --> $DIR/no_effect.rs:159 :5
114114 |
115115LL | [42, 55];
116116 | ^^^^^^^^^
117117
118118error: statement with no effect
119- --> $DIR/no_effect.rs:153 :5
119+ --> $DIR/no_effect.rs:161 :5
120120 |
121121LL | [42, 55][1];
122122 | ^^^^^^^^^^^^
123123
124124error: statement with no effect
125- --> $DIR/no_effect.rs:155 :5
125+ --> $DIR/no_effect.rs:163 :5
126126 |
127127LL | (42, 55).1;
128128 | ^^^^^^^^^^^
129129
130130error: statement with no effect
131- --> $DIR/no_effect.rs:157 :5
131+ --> $DIR/no_effect.rs:165 :5
132132 |
133133LL | [42; 55];
134134 | ^^^^^^^^^
135135
136136error: statement with no effect
137- --> $DIR/no_effect.rs:159 :5
137+ --> $DIR/no_effect.rs:167 :5
138138 |
139139LL | [42; 55][13];
140140 | ^^^^^^^^^^^^^
141141
142142error: statement with no effect
143- --> $DIR/no_effect.rs:162 :5
143+ --> $DIR/no_effect.rs:170 :5
144144 |
145145LL | || x += 5;
146146 | ^^^^^^^^^^
147147
148148error: statement with no effect
149- --> $DIR/no_effect.rs:165 :5
149+ --> $DIR/no_effect.rs:173 :5
150150 |
151151LL | FooString { s: s };
152152 | ^^^^^^^^^^^^^^^^^^^
153153
154154error: binding to `_` prefixed variable with no side-effect
155- --> $DIR/no_effect.rs:167 :5
155+ --> $DIR/no_effect.rs:175 :5
156156 |
157157LL | let _unused = 1;
158158 | ^^^^^^^^^^^^^^^^
@@ -161,19 +161,19 @@ LL | let _unused = 1;
161161 = help: to override `-D warnings` add `#[allow(clippy::no_effect_underscore_binding)]`
162162
163163error: binding to `_` prefixed variable with no side-effect
164- --> $DIR/no_effect.rs:170 :5
164+ --> $DIR/no_effect.rs:178 :5
165165 |
166166LL | let _penguin = || println!("Some helpful closure");
167167 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
168168
169169error: binding to `_` prefixed variable with no side-effect
170- --> $DIR/no_effect.rs:172 :5
170+ --> $DIR/no_effect.rs:180 :5
171171 |
172172LL | let _duck = Struct { field: 0 };
173173 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174174
175175error: binding to `_` prefixed variable with no side-effect
176- --> $DIR/no_effect.rs:174 :5
176+ --> $DIR/no_effect.rs:182 :5
177177 |
178178LL | let _cat = [2, 4, 6, 8][2];
179179 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments