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
consider iterating over a slice of the `{$ty}`'s content to avoid moving into the `for` loop
215
215
216
-
borrowck_tail_expr_drop_order = a temporary value will be dropped here before the execution exits the block in Edition 2024, which will raise borrow checking error
217
-
.label = consider using a `let` binding to create a longer lived value; or replacing the `{"{"} .. {"}"}` block with curly brackets `( .. )`; or folding the rest of the expression into the surrounding `unsafe {"{"} .. {"}"}`
216
+
borrowck_tail_expr_drop_order = relative drop order changing in Rust 2024
217
+
.label = this temporary value will be dropped at the end of the block
218
+
.note = consider using a `let` binding to ensure the value will live long enough
| consider using a `let` binding to create a longer lived value; or replacing the `{ .. }` block with curly brackets `( .. )`; or folding the rest of the expression into the surrounding `unsafe { .. }`
7
+
| this temporary value will be dropped at the end of the block
8
8
|
9
9
= warning: this changes meaning in Rust 2024
10
10
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
@@ -14,27 +14,39 @@ note: the lint level is defined here
14
14
LL | #![deny(tail_expr_drop_order)]
15
15
| ^^^^^^^^^^^^^^^^^^^^
16
16
17
-
error: a temporary value will be dropped here before the execution exits the block in Edition 2024, which will raise borrow checking error
| consider using a `let` binding to create a longer lived value; or replacing the `{ .. }` block with curly brackets `( .. )`; or folding the rest of the expression into the surrounding `unsafe { .. }`
23
+
| this temporary value will be dropped at the end of the block
24
24
|
25
25
= warning: this changes meaning in Rust 2024
26
26
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
27
27
28
-
error: a temporary value will be dropped here before the execution exits the block in Edition 2024, which will raise borrow checking error
| consider using a `let` binding to create a longer lived value; or replacing the `{ .. }` block with curly brackets `( .. )`; or folding the rest of the expression into the surrounding `unsafe { .. }`
34
+
| this temporary value will be dropped at the end of the block
35
+
| borrow later used here
35
36
|
36
37
= warning: this changes meaning in Rust 2024
37
38
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
0 commit comments