@@ -31,39 +31,23 @@ LL | | }, e.mark(3), e.ok(4));
3131note: `#3` invokes this custom destructor
3232 --> $DIR/drop-order-comparisons.rs:571:1
3333 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4036note: `#1` invokes this custom destructor
4137 --> $DIR/drop-order-comparisons.rs:571:1
4238 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4941note: `_v` invokes this custom destructor
5042 --> $DIR/drop-order-comparisons.rs:571:1
5143 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5846note: `#2` invokes this custom destructor
5947 --> $DIR/drop-order-comparisons.rs:571:1
6048 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6751 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
6852note: the lint level is defined here
6953 --> $DIR/drop-order-comparisons.rs:28:25
@@ -95,21 +79,13 @@ LL | | }, e.mark(1), e.ok(4));
9579note: `#2` invokes this custom destructor
9680 --> $DIR/drop-order-comparisons.rs:571:1
9781 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10484note: `#1` invokes this custom destructor
10585 --> $DIR/drop-order-comparisons.rs:571:1
10686 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11389 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
11490
11591warning: relative drop order changing in Rust 2024
@@ -135,21 +111,13 @@ LL | | }, e.mark(1), e.ok(4));
135111note: `#2` invokes this custom destructor
136112 --> $DIR/drop-order-comparisons.rs:571:1
137113 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
144116note: `#1` invokes this custom destructor
145117 --> $DIR/drop-order-comparisons.rs:571:1
146118 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
153121 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
154122
155123warning: relative drop order changing in Rust 2024
@@ -175,21 +143,13 @@ LL | | }, e.mark(2), e.ok(3));
175143note: `#2` invokes this custom destructor
176144 --> $DIR/drop-order-comparisons.rs:571:1
177145 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184148note: `#1` invokes this custom destructor
185149 --> $DIR/drop-order-comparisons.rs:571:1
186150 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
193153 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
194154
195155warning: relative drop order changing in Rust 2024
@@ -215,21 +175,13 @@ LL | | }, e.mark(2), e.ok(3));
215175note: `#2` invokes this custom destructor
216176 --> $DIR/drop-order-comparisons.rs:571:1
217177 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
224180note: `#1` invokes this custom destructor
225181 --> $DIR/drop-order-comparisons.rs:571:1
226182 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
233185 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
234186
235187warning: `if let` assigns a shorter lifetime since Edition 2024
@@ -245,12 +197,8 @@ LL | _ = (if let Ok(_) = e.ok(4).as_ref() {
245197note: value invokes this custom destructor
246198 --> $DIR/drop-order-comparisons.rs:571:1
247199 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
254202help: the value is now dropped here in Edition 2024
255203 --> $DIR/drop-order-comparisons.rs:127:5
256204 |
@@ -279,12 +227,8 @@ LL | _ = (if let Ok(_) = e.err(4).as_ref() {} else {
279227note: value invokes this custom destructor
280228 --> $DIR/drop-order-comparisons.rs:571:1
281229 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
288232help: the value is now dropped here in Edition 2024
289233 --> $DIR/drop-order-comparisons.rs:145:44
290234 |
@@ -312,12 +256,8 @@ LL | if let Ok(_) = e.err(4).as_ref() {} else {
312256note: value invokes this custom destructor
313257 --> $DIR/drop-order-comparisons.rs:571:1
314258 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
321261help: the value is now dropped here in Edition 2024
322262 --> $DIR/drop-order-comparisons.rs:247:43
323263 |
@@ -345,12 +285,8 @@ LL | if let true = e.err(9).is_ok() {} else {
345285note: value invokes this custom destructor
346286 --> $DIR/drop-order-comparisons.rs:571:1
347287 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
354290help: the value is now dropped here in Edition 2024
355291 --> $DIR/drop-order-comparisons.rs:352:41
356292 |
@@ -378,12 +314,8 @@ LL | if let Ok(_v) = e.err(8) {} else {
378314note: value invokes this custom destructor
379315 --> $DIR/drop-order-comparisons.rs:571:1
380316 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
387319help: the value is now dropped here in Edition 2024
388320 --> $DIR/drop-order-comparisons.rs:355:35
389321 |
@@ -411,12 +343,8 @@ LL | if let Ok(_) = e.err(7) {} else {
411343note: value invokes this custom destructor
412344 --> $DIR/drop-order-comparisons.rs:571:1
413345 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
420348help: the value is now dropped here in Edition 2024
421349 --> $DIR/drop-order-comparisons.rs:358:34
422350 |
@@ -444,12 +372,8 @@ LL | if let Ok(_) = e.err(6).as_ref() {} else {
444372note: value invokes this custom destructor
445373 --> $DIR/drop-order-comparisons.rs:571:1
446374 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
453377help: the value is now dropped here in Edition 2024
454378 --> $DIR/drop-order-comparisons.rs:361:43
455379 |
@@ -477,12 +401,8 @@ LL | if let Ok(_v) = e.err(5) {} else {
477401note: value invokes this custom destructor
478402 --> $DIR/drop-order-comparisons.rs:571:1
479403 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
486406help: the value is now dropped here in Edition 2024
487407 --> $DIR/drop-order-comparisons.rs:365:35
488408 |
@@ -510,12 +430,8 @@ LL | if let Ok(_) = e.err(4) {} else {
510430note: value invokes this custom destructor
511431 --> $DIR/drop-order-comparisons.rs:571:1
512432 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
519435help: the value is now dropped here in Edition 2024
520436 --> $DIR/drop-order-comparisons.rs:368:34
521437 |
@@ -543,12 +459,8 @@ LL | if let Ok(_) = e.err(4).as_ref() {} else {
543459note: value invokes this custom destructor
544460 --> $DIR/drop-order-comparisons.rs:571:1
545461 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
552464help: the value is now dropped here in Edition 2024
553465 --> $DIR/drop-order-comparisons.rs:404:43
554466 |
0 commit comments