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