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() {
10
10
//~^ ERROR: relative drop order changing
11
11
//~| WARN: this changes meaning in Rust 2024
12
12
//~| NOTE: this temporary value will be dropped at the end of the block
13
- //~| borrow later used by call
13
+ //~| borrow later used here
14
14
//~| NOTE: for more information, see
15
15
}
16
16
@@ -20,7 +20,7 @@ fn should_lint_with_unsafe_block() {
20
20
//~^ ERROR: relative drop order changing
21
21
//~| WARN: this changes meaning in Rust 2024
22
22
//~| NOTE: this temporary value will be dropped at the end of the block
23
- //~| borrow later used by call
23
+ //~| borrow later used here
24
24
//~| NOTE: for more information, see
25
25
}
26
26
Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ error: relative drop order changing in Rust 2024
2
2
--> $DIR/lint-tail-expr-drop-order-borrowck.rs:9:15
3
3
|
4
4
LL | let _ = { String::new().as_str() }.len();
5
- | ^^^^^^^^^^^^^ --- borrow later used by call
5
+ | ^^^^^^^^^^^^^---------
6
6
| |
7
7
| this temporary value will be dropped at the end of the block
8
+ | borrow later used here
8
9
|
9
10
= warning: this changes meaning in Rust 2024
10
11
= 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
18
19
--> $DIR/lint-tail-expr-drop-order-borrowck.rs:19:16
19
20
|
20
21
LL | f(unsafe { String::new().as_str() }.len());
21
- | ^^^^^^^^^^^^^ --- borrow later used by call
22
+ | ^^^^^^^^^^^^^---------
22
23
| |
23
24
| this temporary value will be dropped at the end of the block
25
+ | borrow later used here
24
26
|
25
27
= warning: this changes meaning in Rust 2024
26
28
= 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