@@ -31,39 +31,23 @@ LL | | }, e.mark(3), e.ok(4));
31
31
note: `#3` invokes this custom destructor
32
32
--> $DIR/drop-order-comparisons.rs:571:1
33
33
|
34
- LL | / impl<'b> Drop for LogDrop<'b> {
35
- LL | | fn drop(&mut self) {
36
- LL | | self.0.mark(self.1);
37
- LL | | }
38
- LL | | }
39
- | |_^
34
+ LL | impl<'b> Drop for LogDrop<'b> {
35
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
36
note: `#1` invokes this custom destructor
41
37
--> $DIR/drop-order-comparisons.rs:571:1
42
38
|
43
- LL | / impl<'b> Drop for LogDrop<'b> {
44
- LL | | fn drop(&mut self) {
45
- LL | | self.0.mark(self.1);
46
- LL | | }
47
- LL | | }
48
- | |_^
39
+ LL | impl<'b> Drop for LogDrop<'b> {
40
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
41
note: `_v` invokes this custom destructor
50
42
--> $DIR/drop-order-comparisons.rs:571:1
51
43
|
52
- LL | / impl<'b> Drop for LogDrop<'b> {
53
- LL | | fn drop(&mut self) {
54
- LL | | self.0.mark(self.1);
55
- LL | | }
56
- LL | | }
57
- | |_^
44
+ LL | impl<'b> Drop for LogDrop<'b> {
45
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
46
note: `#2` invokes this custom destructor
59
47
--> $DIR/drop-order-comparisons.rs:571:1
60
48
|
61
- LL | / impl<'b> Drop for LogDrop<'b> {
62
- LL | | fn drop(&mut self) {
63
- LL | | self.0.mark(self.1);
64
- LL | | }
65
- LL | | }
66
- | |_^
49
+ LL | impl<'b> Drop for LogDrop<'b> {
50
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67
51
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
68
52
note: the lint level is defined here
69
53
--> $DIR/drop-order-comparisons.rs:28:25
@@ -95,21 +79,13 @@ LL | | }, e.mark(1), e.ok(4));
95
79
note: `#2` invokes this custom destructor
96
80
--> $DIR/drop-order-comparisons.rs:571:1
97
81
|
98
- LL | / impl<'b> Drop for LogDrop<'b> {
99
- LL | | fn drop(&mut self) {
100
- LL | | self.0.mark(self.1);
101
- LL | | }
102
- LL | | }
103
- | |_^
82
+ LL | impl<'b> Drop for LogDrop<'b> {
83
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
84
note: `#1` invokes this custom destructor
105
85
--> $DIR/drop-order-comparisons.rs:571:1
106
86
|
107
- LL | / impl<'b> Drop for LogDrop<'b> {
108
- LL | | fn drop(&mut self) {
109
- LL | | self.0.mark(self.1);
110
- LL | | }
111
- LL | | }
112
- | |_^
87
+ LL | impl<'b> Drop for LogDrop<'b> {
88
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
89
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
114
90
115
91
warning: relative drop order changing in Rust 2024
@@ -135,21 +111,13 @@ LL | | }, e.mark(1), e.ok(4));
135
111
note: `#2` invokes this custom destructor
136
112
--> $DIR/drop-order-comparisons.rs:571:1
137
113
|
138
- LL | / impl<'b> Drop for LogDrop<'b> {
139
- LL | | fn drop(&mut self) {
140
- LL | | self.0.mark(self.1);
141
- LL | | }
142
- LL | | }
143
- | |_^
114
+ LL | impl<'b> Drop for LogDrop<'b> {
115
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
144
116
note: `#1` invokes this custom destructor
145
117
--> $DIR/drop-order-comparisons.rs:571:1
146
118
|
147
- LL | / impl<'b> Drop for LogDrop<'b> {
148
- LL | | fn drop(&mut self) {
149
- LL | | self.0.mark(self.1);
150
- LL | | }
151
- LL | | }
152
- | |_^
119
+ LL | impl<'b> Drop for LogDrop<'b> {
120
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
153
121
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
154
122
155
123
warning: relative drop order changing in Rust 2024
@@ -175,21 +143,13 @@ LL | | }, e.mark(2), e.ok(3));
175
143
note: `#2` invokes this custom destructor
176
144
--> $DIR/drop-order-comparisons.rs:571:1
177
145
|
178
- LL | / impl<'b> Drop for LogDrop<'b> {
179
- LL | | fn drop(&mut self) {
180
- LL | | self.0.mark(self.1);
181
- LL | | }
182
- LL | | }
183
- | |_^
146
+ LL | impl<'b> Drop for LogDrop<'b> {
147
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184
148
note: `#1` invokes this custom destructor
185
149
--> $DIR/drop-order-comparisons.rs:571:1
186
150
|
187
- LL | / impl<'b> Drop for LogDrop<'b> {
188
- LL | | fn drop(&mut self) {
189
- LL | | self.0.mark(self.1);
190
- LL | | }
191
- LL | | }
192
- | |_^
151
+ LL | impl<'b> Drop for LogDrop<'b> {
152
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
193
153
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
194
154
195
155
warning: relative drop order changing in Rust 2024
@@ -215,21 +175,13 @@ LL | | }, e.mark(2), e.ok(3));
215
175
note: `#2` invokes this custom destructor
216
176
--> $DIR/drop-order-comparisons.rs:571:1
217
177
|
218
- LL | / impl<'b> Drop for LogDrop<'b> {
219
- LL | | fn drop(&mut self) {
220
- LL | | self.0.mark(self.1);
221
- LL | | }
222
- LL | | }
223
- | |_^
178
+ LL | impl<'b> Drop for LogDrop<'b> {
179
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
224
180
note: `#1` invokes this custom destructor
225
181
--> $DIR/drop-order-comparisons.rs:571:1
226
182
|
227
- LL | / impl<'b> Drop for LogDrop<'b> {
228
- LL | | fn drop(&mut self) {
229
- LL | | self.0.mark(self.1);
230
- LL | | }
231
- LL | | }
232
- | |_^
183
+ LL | impl<'b> Drop for LogDrop<'b> {
184
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
233
185
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
234
186
235
187
warning: `if let` assigns a shorter lifetime since Edition 2024
@@ -245,12 +197,8 @@ LL | _ = (if let Ok(_) = e.ok(4).as_ref() {
245
197
note: value invokes this custom destructor
246
198
--> $DIR/drop-order-comparisons.rs:571:1
247
199
|
248
- LL | / impl<'b> Drop for LogDrop<'b> {
249
- LL | | fn drop(&mut self) {
250
- LL | | self.0.mark(self.1);
251
- LL | | }
252
- LL | | }
253
- | |_^
200
+ LL | impl<'b> Drop for LogDrop<'b> {
201
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
254
202
help: the value is now dropped here in Edition 2024
255
203
--> $DIR/drop-order-comparisons.rs:127:5
256
204
|
@@ -279,12 +227,8 @@ LL | _ = (if let Ok(_) = e.err(4).as_ref() {} else {
279
227
note: value invokes this custom destructor
280
228
--> $DIR/drop-order-comparisons.rs:571:1
281
229
|
282
- LL | / impl<'b> Drop for LogDrop<'b> {
283
- LL | | fn drop(&mut self) {
284
- LL | | self.0.mark(self.1);
285
- LL | | }
286
- LL | | }
287
- | |_^
230
+ LL | impl<'b> Drop for LogDrop<'b> {
231
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
288
232
help: the value is now dropped here in Edition 2024
289
233
--> $DIR/drop-order-comparisons.rs:145:44
290
234
|
@@ -312,12 +256,8 @@ LL | if let Ok(_) = e.err(4).as_ref() {} else {
312
256
note: value invokes this custom destructor
313
257
--> $DIR/drop-order-comparisons.rs:571:1
314
258
|
315
- LL | / impl<'b> Drop for LogDrop<'b> {
316
- LL | | fn drop(&mut self) {
317
- LL | | self.0.mark(self.1);
318
- LL | | }
319
- LL | | }
320
- | |_^
259
+ LL | impl<'b> Drop for LogDrop<'b> {
260
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
321
261
help: the value is now dropped here in Edition 2024
322
262
--> $DIR/drop-order-comparisons.rs:247:43
323
263
|
@@ -345,12 +285,8 @@ LL | if let true = e.err(9).is_ok() {} else {
345
285
note: value invokes this custom destructor
346
286
--> $DIR/drop-order-comparisons.rs:571:1
347
287
|
348
- LL | / impl<'b> Drop for LogDrop<'b> {
349
- LL | | fn drop(&mut self) {
350
- LL | | self.0.mark(self.1);
351
- LL | | }
352
- LL | | }
353
- | |_^
288
+ LL | impl<'b> Drop for LogDrop<'b> {
289
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
354
290
help: the value is now dropped here in Edition 2024
355
291
--> $DIR/drop-order-comparisons.rs:352:41
356
292
|
@@ -378,12 +314,8 @@ LL | if let Ok(_v) = e.err(8) {} else {
378
314
note: value invokes this custom destructor
379
315
--> $DIR/drop-order-comparisons.rs:571:1
380
316
|
381
- LL | / impl<'b> Drop for LogDrop<'b> {
382
- LL | | fn drop(&mut self) {
383
- LL | | self.0.mark(self.1);
384
- LL | | }
385
- LL | | }
386
- | |_^
317
+ LL | impl<'b> Drop for LogDrop<'b> {
318
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
387
319
help: the value is now dropped here in Edition 2024
388
320
--> $DIR/drop-order-comparisons.rs:355:35
389
321
|
@@ -411,12 +343,8 @@ LL | if let Ok(_) = e.err(7) {} else {
411
343
note: value invokes this custom destructor
412
344
--> $DIR/drop-order-comparisons.rs:571:1
413
345
|
414
- LL | / impl<'b> Drop for LogDrop<'b> {
415
- LL | | fn drop(&mut self) {
416
- LL | | self.0.mark(self.1);
417
- LL | | }
418
- LL | | }
419
- | |_^
346
+ LL | impl<'b> Drop for LogDrop<'b> {
347
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
420
348
help: the value is now dropped here in Edition 2024
421
349
--> $DIR/drop-order-comparisons.rs:358:34
422
350
|
@@ -444,12 +372,8 @@ LL | if let Ok(_) = e.err(6).as_ref() {} else {
444
372
note: value invokes this custom destructor
445
373
--> $DIR/drop-order-comparisons.rs:571:1
446
374
|
447
- LL | / impl<'b> Drop for LogDrop<'b> {
448
- LL | | fn drop(&mut self) {
449
- LL | | self.0.mark(self.1);
450
- LL | | }
451
- LL | | }
452
- | |_^
375
+ LL | impl<'b> Drop for LogDrop<'b> {
376
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
453
377
help: the value is now dropped here in Edition 2024
454
378
--> $DIR/drop-order-comparisons.rs:361:43
455
379
|
@@ -477,12 +401,8 @@ LL | if let Ok(_v) = e.err(5) {} else {
477
401
note: value invokes this custom destructor
478
402
--> $DIR/drop-order-comparisons.rs:571:1
479
403
|
480
- LL | / impl<'b> Drop for LogDrop<'b> {
481
- LL | | fn drop(&mut self) {
482
- LL | | self.0.mark(self.1);
483
- LL | | }
484
- LL | | }
485
- | |_^
404
+ LL | impl<'b> Drop for LogDrop<'b> {
405
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
486
406
help: the value is now dropped here in Edition 2024
487
407
--> $DIR/drop-order-comparisons.rs:365:35
488
408
|
@@ -510,12 +430,8 @@ LL | if let Ok(_) = e.err(4) {} else {
510
430
note: value invokes this custom destructor
511
431
--> $DIR/drop-order-comparisons.rs:571:1
512
432
|
513
- LL | / impl<'b> Drop for LogDrop<'b> {
514
- LL | | fn drop(&mut self) {
515
- LL | | self.0.mark(self.1);
516
- LL | | }
517
- LL | | }
518
- | |_^
433
+ LL | impl<'b> Drop for LogDrop<'b> {
434
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
519
435
help: the value is now dropped here in Edition 2024
520
436
--> $DIR/drop-order-comparisons.rs:368:34
521
437
|
@@ -543,12 +459,8 @@ LL | if let Ok(_) = e.err(4).as_ref() {} else {
543
459
note: value invokes this custom destructor
544
460
--> $DIR/drop-order-comparisons.rs:571:1
545
461
|
546
- LL | / impl<'b> Drop for LogDrop<'b> {
547
- LL | | fn drop(&mut self) {
548
- LL | | self.0.mark(self.1);
549
- LL | | }
550
- LL | | }
551
- | |_^
462
+ LL | impl<'b> Drop for LogDrop<'b> {
463
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
552
464
help: the value is now dropped here in Edition 2024
553
465
--> $DIR/drop-order-comparisons.rs:404:43
554
466
|
0 commit comments