You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_mir_transform/messages.ftl
+2-2
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@ mir_transform_operation_will_panic = this operation will panic at runtime
27
27
28
28
mir_transform_tail_expr_drop_order = this value has significant drop implementation that will have a different drop order from that of Edition 2021, whose type `{$ty}` drops `{$ty_drop_components}` while dropping
29
29
.label = this local binding may observe changes in drop order under Edition 2024, whose type `{$observer_ty}` drops `{$observer_ty_drop_components}` while dropping
30
-
.note_ty = these are the types with significant drop implementation
31
-
.note_observer_ty = these are the types with significant drop implementation that may be sensitive the the change in the drop order
30
+
.note_ty = these are the types and values with significant drop implementation
31
+
.note_observer_ty = these are the types and values with significant drop implementation that are from Edition 2024 dropped earlier rather than later
32
32
33
33
mir_transform_unaligned_packed_ref = reference to packed field is unaligned
34
34
.note = packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
error: this value has significant drop implementation that will have a different drop order from that of Edition 2021, whose type `LoudDropper` drops `LoudDropper` while dropping
2
-
--> $DIR/lint-tail-expr-drop-order.rs:26:15
2
+
--> $DIR/lint-tail-expr-drop-order.rs:28:15
3
3
|
4
4
LL | let x = LoudDropper;
5
5
| - this local binding may observe changes in drop order under Edition 2024, whose type `LoudDropper` drops `LoudDropper` while dropping
= note: for more information, see issue #123739 <https://github.com/rust-lang/rust/issues/123739>
12
+
note: these are the types and values with significant drop implementation
13
+
--> $DIR/lint-tail-expr-drop-order.rs:10:1
14
+
|
15
+
LL | struct LoudDropper;
16
+
| ^^^^^^^^^^^^^^^^^^
17
+
note: these are the types and values with significant drop implementation that are from Edition 2024 dropped earlier rather than later
18
+
--> $DIR/lint-tail-expr-drop-order.rs:10:1
19
+
|
20
+
LL | struct LoudDropper;
21
+
| ^^^^^^^^^^^^^^^^^^
12
22
note: the lint level is defined here
13
-
--> $DIR/lint-tail-expr-drop-order.rs:5:9
23
+
--> $DIR/lint-tail-expr-drop-order.rs:7:9
14
24
|
15
25
LL | #![deny(tail_expr_drop_order)]
16
26
| ^^^^^^^^^^^^^^^^^^^^
17
27
18
28
error: this value has significant drop implementation that will have a different drop order from that of Edition 2021, whose type `LoudDropper` drops `LoudDropper` while dropping
19
-
--> $DIR/lint-tail-expr-drop-order.rs:44:19
29
+
--> $DIR/lint-tail-expr-drop-order.rs:46:19
20
30
|
21
31
LL | let x = LoudDropper;
22
32
| - this local binding may observe changes in drop order under Edition 2024, whose type `LoudDropper` drops `LoudDropper` while dropping
= note: for more information, see issue #123739 <https://github.com/rust-lang/rust/issues/123739>
39
+
note: these are the types and values with significant drop implementation
40
+
--> $DIR/lint-tail-expr-drop-order.rs:10:1
41
+
|
42
+
LL | struct LoudDropper;
43
+
| ^^^^^^^^^^^^^^^^^^
44
+
note: these are the types and values with significant drop implementation that are from Edition 2024 dropped earlier rather than later
45
+
--> $DIR/lint-tail-expr-drop-order.rs:10:1
46
+
|
47
+
LL | struct LoudDropper;
48
+
| ^^^^^^^^^^^^^^^^^^
29
49
30
50
error: this value has significant drop implementation that will have a different drop order from that of Edition 2021, whose type `LoudDropper` drops `LoudDropper` while dropping
31
-
--> $DIR/lint-tail-expr-drop-order.rs:64:7
51
+
--> $DIR/lint-tail-expr-drop-order.rs:66:7
32
52
|
33
53
LL | let x = LoudDropper;
34
54
| - this local binding may observe changes in drop order under Edition 2024, whose type `LoudDropper` drops `LoudDropper` while dropping
@@ -37,6 +57,47 @@ LL | { LoudDropper.get() }
37
57
|
38
58
= warning: this changes meaning in Rust 2024
39
59
= note: for more information, see issue #123739 <https://github.com/rust-lang/rust/issues/123739>
60
+
note: these are the types and values with significant drop implementation
61
+
--> $DIR/lint-tail-expr-drop-order.rs:10:1
62
+
|
63
+
LL | struct LoudDropper;
64
+
| ^^^^^^^^^^^^^^^^^^
65
+
note: these are the types and values with significant drop implementation that are from Edition 2024 dropped earlier rather than later
66
+
--> $DIR/lint-tail-expr-drop-order.rs:10:1
67
+
|
68
+
LL | struct LoudDropper;
69
+
| ^^^^^^^^^^^^^^^^^^
70
+
71
+
error: this value has significant drop implementation that will have a different drop order from that of Edition 2021, whose type `LoudDropper` drops `LoudDropper` while dropping
72
+
--> $DIR/lint-tail-expr-drop-order.rs:112:5
73
+
|
74
+
LL | let future = f();
75
+
| ------ this local binding may observe changes in drop order under Edition 2024, whose type `impl std::future::Future<Output = ()>` drops `LoudDropper` while dropping
76
+
LL | LoudDropper.get()
77
+
| ^^^^^^^^^^^
78
+
|
79
+
= warning: this changes meaning in Rust 2024
80
+
= note: for more information, see issue #123739 <https://github.com/rust-lang/rust/issues/123739>
81
+
note: these are the types and values with significant drop implementation
82
+
--> $DIR/lint-tail-expr-drop-order.rs:10:1
83
+
|
84
+
LL | struct LoudDropper;
85
+
| ^^^^^^^^^^^^^^^^^^
86
+
note: these are the types and values with significant drop implementation that are from Edition 2024 dropped earlier rather than later
87
+
--> $DIR/lint-tail-expr-drop-order.rs:10:1
88
+
|
89
+
LL | struct LoudDropper;
90
+
| ^^^^^^^^^^^^^^^^^^
91
+
note: these are the types and values with significant drop implementation that are from Edition 2024 dropped earlier rather than later
92
+
--> $DIR/lint-tail-expr-drop-order.rs:106:13
93
+
|
94
+
LL | let x = LoudDropper;
95
+
| ^
96
+
note: these are the types and values with significant drop implementation that are from Edition 2024 dropped earlier rather than later
0 commit comments