This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ fn should_lint_with_potential_borrowck_err() {
1010 //~^ ERROR: relative drop order changing
1111 //~| WARN: this changes meaning in Rust 2024
1212 //~| NOTE: this temporary value will be dropped at the end of the block
13- //~| borrow later used by call
13+ //~| borrow later used here
1414 //~| NOTE: for more information, see
1515}
1616
@@ -20,7 +20,7 @@ fn should_lint_with_unsafe_block() {
2020 //~^ ERROR: relative drop order changing
2121 //~| WARN: this changes meaning in Rust 2024
2222 //~| NOTE: this temporary value will be dropped at the end of the block
23- //~| borrow later used by call
23+ //~| borrow later used here
2424 //~| NOTE: for more information, see
2525}
2626
Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ error: relative drop order changing in Rust 2024
22 --> $DIR/lint-tail-expr-drop-order-borrowck.rs:9:15
33 |
44LL | let _ = { String::new().as_str() }.len();
5- | ^^^^^^^^^^^^^ --- borrow later used by call
5+ | ^^^^^^^^^^^^^---------
66 | |
77 | this temporary value will be dropped at the end of the block
8+ | borrow later used here
89 |
910 = warning: this changes meaning in Rust 2024
1011 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
@@ -18,9 +19,10 @@ error: relative drop order changing in Rust 2024
1819 --> $DIR/lint-tail-expr-drop-order-borrowck.rs:19:16
1920 |
2021LL | f(unsafe { String::new().as_str() }.len());
21- | ^^^^^^^^^^^^^ --- borrow later used by call
22+ | ^^^^^^^^^^^^^---------
2223 | |
2324 | this temporary value will be dropped at the end of the block
25+ | borrow later used here
2426 |
2527 = warning: this changes meaning in Rust 2024
2628 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
You can’t perform that action at this time.
0 commit comments