1
1
error: relative drop order changing in Rust 2024
2
- --> $DIR/lint-tail-expr-drop-order.rs:42 :15
2
+ --> $DIR/lint-tail-expr-drop-order.rs:41 :15
3
3
|
4
4
LL | let x = LoudDropper;
5
5
| -
@@ -19,28 +19,28 @@ LL | }
19
19
= warning: this changes meaning in Rust 2024
20
20
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
21
21
note: `#1` invokes this custom destructor
22
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
22
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
23
23
|
24
24
LL | / impl Drop for LoudDropper {
25
25
... |
26
26
LL | | }
27
27
| |_^
28
28
note: `x` invokes this custom destructor
29
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
29
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
30
30
|
31
31
LL | / impl Drop for LoudDropper {
32
32
... |
33
33
LL | | }
34
34
| |_^
35
35
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
36
36
note: the lint level is defined here
37
- --> $DIR/lint-tail-expr-drop-order.rs:7 :9
37
+ --> $DIR/lint-tail-expr-drop-order.rs:6 :9
38
38
|
39
39
LL | #![deny(tail_expr_drop_order)]
40
40
| ^^^^^^^^^^^^^^^^^^^^
41
41
42
42
error: relative drop order changing in Rust 2024
43
- --> $DIR/lint-tail-expr-drop-order.rs:67 :19
43
+ --> $DIR/lint-tail-expr-drop-order.rs:66 :19
44
44
|
45
45
LL | let x = LoudDropper;
46
46
| -
@@ -60,14 +60,14 @@ LL | }
60
60
= warning: this changes meaning in Rust 2024
61
61
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
62
62
note: `#1` invokes this custom destructor
63
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
63
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
64
64
|
65
65
LL | / impl Drop for LoudDropper {
66
66
... |
67
67
LL | | }
68
68
| |_^
69
69
note: `x` invokes this custom destructor
70
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
70
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
71
71
|
72
72
LL | / impl Drop for LoudDropper {
73
73
... |
@@ -76,7 +76,7 @@ LL | | }
76
76
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
77
77
78
78
error: relative drop order changing in Rust 2024
79
- --> $DIR/lint-tail-expr-drop-order.rs:94 :7
79
+ --> $DIR/lint-tail-expr-drop-order.rs:93 :7
80
80
|
81
81
LL | let x = LoudDropper;
82
82
| -
@@ -96,14 +96,14 @@ LL | }
96
96
= warning: this changes meaning in Rust 2024
97
97
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
98
98
note: `#1` invokes this custom destructor
99
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
99
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
100
100
|
101
101
LL | / impl Drop for LoudDropper {
102
102
... |
103
103
LL | | }
104
104
| |_^
105
105
note: `x` invokes this custom destructor
106
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
106
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
107
107
|
108
108
LL | / impl Drop for LoudDropper {
109
109
... |
@@ -112,7 +112,7 @@ LL | | }
112
112
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
113
113
114
114
error: relative drop order changing in Rust 2024
115
- --> $DIR/lint-tail-expr-drop-order.rs:147 :5
115
+ --> $DIR/lint-tail-expr-drop-order.rs:146 :5
116
116
|
117
117
LL | let future = f();
118
118
| ------
@@ -132,14 +132,14 @@ LL | }
132
132
= warning: this changes meaning in Rust 2024
133
133
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
134
134
note: `#1` invokes this custom destructor
135
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
135
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
136
136
|
137
137
LL | / impl Drop for LoudDropper {
138
138
... |
139
139
LL | | }
140
140
| |_^
141
141
note: `future` invokes this custom destructor
142
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
142
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
143
143
|
144
144
LL | / impl Drop for LoudDropper {
145
145
... |
@@ -148,7 +148,7 @@ LL | | }
148
148
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
149
149
150
150
error: relative drop order changing in Rust 2024
151
- --> $DIR/lint-tail-expr-drop-order.rs:164 :14
151
+ --> $DIR/lint-tail-expr-drop-order.rs:163 :14
152
152
|
153
153
LL | let x = T::default();
154
154
| -
@@ -170,7 +170,7 @@ LL | }
170
170
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
171
171
172
172
error: relative drop order changing in Rust 2024
173
- --> $DIR/lint-tail-expr-drop-order.rs:178 :5
173
+ --> $DIR/lint-tail-expr-drop-order.rs:177 :5
174
174
|
175
175
LL | let x: Result<LoudDropper, ()> = Ok(LoudDropper);
176
176
| -
@@ -190,14 +190,14 @@ LL | }
190
190
= warning: this changes meaning in Rust 2024
191
191
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
192
192
note: `#1` invokes this custom destructor
193
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
193
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
194
194
|
195
195
LL | / impl Drop for LoudDropper {
196
196
... |
197
197
LL | | }
198
198
| |_^
199
199
note: `x` invokes this custom destructor
200
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
200
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
201
201
|
202
202
LL | / impl Drop for LoudDropper {
203
203
... |
@@ -206,7 +206,7 @@ LL | | }
206
206
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
207
207
208
208
error: relative drop order changing in Rust 2024
209
- --> $DIR/lint-tail-expr-drop-order.rs:222 :5
209
+ --> $DIR/lint-tail-expr-drop-order.rs:221 :5
210
210
|
211
211
LL | let x = LoudDropper2;
212
212
| -
@@ -226,7 +226,7 @@ LL | }
226
226
= warning: this changes meaning in Rust 2024
227
227
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
228
228
note: `#1` invokes this custom destructor
229
- --> $DIR/lint-tail-expr-drop-order.rs:195 :5
229
+ --> $DIR/lint-tail-expr-drop-order.rs:194 :5
230
230
|
231
231
LL | / impl Drop for LoudDropper3 {
232
232
LL | |
@@ -236,7 +236,7 @@ LL | | }
236
236
LL | | }
237
237
| |_____^
238
238
note: `x` invokes this custom destructor
239
- --> $DIR/lint-tail-expr-drop-order.rs:207 :5
239
+ --> $DIR/lint-tail-expr-drop-order.rs:206 :5
240
240
|
241
241
LL | / impl Drop for LoudDropper2 {
242
242
LL | |
@@ -248,7 +248,7 @@ LL | | }
248
248
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
249
249
250
250
error: relative drop order changing in Rust 2024
251
- --> $DIR/lint-tail-expr-drop-order.rs:235 :13
251
+ --> $DIR/lint-tail-expr-drop-order.rs:234 :13
252
252
|
253
253
LL | LoudDropper.get()
254
254
| ^^^^^^^^^^^
@@ -268,14 +268,14 @@ LL | ));
268
268
= warning: this changes meaning in Rust 2024
269
269
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
270
270
note: `#1` invokes this custom destructor
271
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
271
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
272
272
|
273
273
LL | / impl Drop for LoudDropper {
274
274
... |
275
275
LL | | }
276
276
| |_^
277
277
note: `_x` invokes this custom destructor
278
- --> $DIR/lint-tail-expr-drop-order.rs:11 :1
278
+ --> $DIR/lint-tail-expr-drop-order.rs:10 :1
279
279
|
280
280
LL | / impl Drop for LoudDropper {
281
281
... |
0 commit comments