Skip to content

Commit ce4e43f

Browse files
committed
Bless test UI changes in backport
1 parent 18d3153 commit ce4e43f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: tests/ui/drop/lint-tail-expr-drop-order-borrowck.rs

+2-2
Original file line numberDiff line numberDiff 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

Diff for: tests/ui/drop/lint-tail-expr-drop-order-borrowck.stderr

+4-2
Original file line numberDiff line numberDiff 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
|
44
LL | 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
|
2021
LL | 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>

0 commit comments

Comments
 (0)