Skip to content

Commit 6270aba

Browse files
committed
try solve conflict
1 parent db10b7f commit 6270aba

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

tests/ui/drop/drop-order-comparisons.e2021.fixed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
//@ [e2024] edition: 2024
2525
//@ run-pass
2626

27-
#![feature(if_let_guard)]
2827
#![cfg_attr(e2021, feature(let_chains))]
2928
#![cfg_attr(e2021, warn(rust_2024_compatibility))]
3029

tests/ui/drop/drop-order-comparisons.e2021.stderr

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: relative drop order changing in Rust 2024
2-
--> $DIR/drop-order-comparisons.rs:77:9
2+
--> $DIR/drop-order-comparisons.rs:76:9
33
|
44
LL | _ = ({
55
| _________-
@@ -50,14 +50,14 @@ LL | impl<'b> Drop for LogDrop<'b> {
5050
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5151
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
5252
note: the lint level is defined here
53-
--> $DIR/drop-order-comparisons.rs:29:25
53+
--> $DIR/drop-order-comparisons.rs:28:25
5454
|
5555
LL | #![cfg_attr(e2021, warn(rust_2024_compatibility))]
5656
| ^^^^^^^^^^^^^^^^^^^^^^^
5757
= note: `#[warn(tail_expr_drop_order)]` implied by `#[warn(rust_2024_compatibility)]`
5858

5959
warning: relative drop order changing in Rust 2024
60-
--> $DIR/drop-order-comparisons.rs:101:45
60+
--> $DIR/drop-order-comparisons.rs:100:45
6161
|
6262
LL | _ = ({
6363
| _________-
@@ -89,7 +89,7 @@ LL | impl<'b> Drop for LogDrop<'b> {
8989
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
9090

9191
warning: relative drop order changing in Rust 2024
92-
--> $DIR/drop-order-comparisons.rs:101:19
92+
--> $DIR/drop-order-comparisons.rs:100:19
9393
|
9494
LL | _ = ({
9595
| _________-
@@ -121,7 +121,7 @@ LL | impl<'b> Drop for LogDrop<'b> {
121121
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
122122

123123
warning: relative drop order changing in Rust 2024
124-
--> $DIR/drop-order-comparisons.rs:222:24
124+
--> $DIR/drop-order-comparisons.rs:221:24
125125
|
126126
LL | _ = ({
127127
| _________-
@@ -153,7 +153,7 @@ LL | impl<'b> Drop for LogDrop<'b> {
153153
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
154154

155155
warning: relative drop order changing in Rust 2024
156-
--> $DIR/drop-order-comparisons.rs:248:24
156+
--> $DIR/drop-order-comparisons.rs:247:24
157157
|
158158
LL | _ = ({
159159
| _________-
@@ -185,7 +185,7 @@ LL | impl<'b> Drop for LogDrop<'b> {
185185
= note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
186186

187187
warning: `if let` assigns a shorter lifetime since Edition 2024
188-
--> $DIR/drop-order-comparisons.rs:124:13
188+
--> $DIR/drop-order-comparisons.rs:123:13
189189
|
190190
LL | _ = (if let Ok(_) = e.ok(4).as_ref() {
191191
| ^^^^^^^^^^^^-------^^^^^^^^^
@@ -200,7 +200,7 @@ note: value invokes this custom destructor
200200
LL | impl<'b> Drop for LogDrop<'b> {
201201
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
202202
help: the value is now dropped here in Edition 2024
203-
--> $DIR/drop-order-comparisons.rs:128:5
203+
--> $DIR/drop-order-comparisons.rs:127:5
204204
|
205205
LL | }, e.mark(2), e.ok(3));
206206
| ^
@@ -215,7 +215,7 @@ LL ~ } _ => {}}, e.mark(2), e.ok(3));
215215
|
216216

217217
warning: `if let` assigns a shorter lifetime since Edition 2024
218-
--> $DIR/drop-order-comparisons.rs:146:13
218+
--> $DIR/drop-order-comparisons.rs:145:13
219219
|
220220
LL | _ = (if let Ok(_) = e.err(4).as_ref() {} else {
221221
| ^^^^^^^^^^^^--------^^^^^^^^^
@@ -230,7 +230,7 @@ note: value invokes this custom destructor
230230
LL | impl<'b> Drop for LogDrop<'b> {
231231
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
232232
help: the value is now dropped here in Edition 2024
233-
--> $DIR/drop-order-comparisons.rs:146:44
233+
--> $DIR/drop-order-comparisons.rs:145:44
234234
|
235235
LL | _ = (if let Ok(_) = e.err(4).as_ref() {} else {
236236
| ^
@@ -244,7 +244,7 @@ LL ~ }}, e.mark(2), e.ok(3));
244244
|
245245

246246
warning: `if let` assigns a shorter lifetime since Edition 2024
247-
--> $DIR/drop-order-comparisons.rs:248:12
247+
--> $DIR/drop-order-comparisons.rs:247:12
248248
|
249249
LL | if let Ok(_) = e.err(4).as_ref() {} else {
250250
| ^^^^^^^^^^^^--------^^^^^^^^^
@@ -259,7 +259,7 @@ note: value invokes this custom destructor
259259
LL | impl<'b> Drop for LogDrop<'b> {
260260
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
261261
help: the value is now dropped here in Edition 2024
262-
--> $DIR/drop-order-comparisons.rs:248:43
262+
--> $DIR/drop-order-comparisons.rs:247:43
263263
|
264264
LL | if let Ok(_) = e.err(4).as_ref() {} else {
265265
| ^

tests/ui/drop/drop-order-comparisons.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
//@ [e2024] edition: 2024
2525
//@ run-pass
2626

27-
#![feature(if_let_guard)]
2827
#![cfg_attr(e2021, feature(let_chains))]
2928
#![cfg_attr(e2021, warn(rust_2024_compatibility))]
3029

0 commit comments

Comments
 (0)