Skip to content

Commit

Permalink
Bless test UI changes in backport
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jan 11, 2025
1 parent 18d3153 commit ce4e43f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/ui/drop/lint-tail-expr-drop-order-borrowck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn should_lint_with_potential_borrowck_err() {
//~^ ERROR: relative drop order changing
//~| WARN: this changes meaning in Rust 2024
//~| NOTE: this temporary value will be dropped at the end of the block
//~| borrow later used by call
//~| borrow later used here
//~| NOTE: for more information, see
}

Expand All @@ -20,7 +20,7 @@ fn should_lint_with_unsafe_block() {
//~^ ERROR: relative drop order changing
//~| WARN: this changes meaning in Rust 2024
//~| NOTE: this temporary value will be dropped at the end of the block
//~| borrow later used by call
//~| borrow later used here
//~| NOTE: for more information, see
}

Expand Down
6 changes: 4 additions & 2 deletions tests/ui/drop/lint-tail-expr-drop-order-borrowck.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ error: relative drop order changing in Rust 2024
--> $DIR/lint-tail-expr-drop-order-borrowck.rs:9:15
|
LL | let _ = { String::new().as_str() }.len();
| ^^^^^^^^^^^^^ --- borrow later used by call
| ^^^^^^^^^^^^^---------
| |
| this temporary value will be dropped at the end of the block
| borrow later used here
|
= warning: this changes meaning in Rust 2024
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
Expand All @@ -18,9 +19,10 @@ error: relative drop order changing in Rust 2024
--> $DIR/lint-tail-expr-drop-order-borrowck.rs:19:16
|
LL | f(unsafe { String::new().as_str() }.len());
| ^^^^^^^^^^^^^ --- borrow later used by call
| ^^^^^^^^^^^^^---------
| |
| this temporary value will be dropped at the end of the block
| borrow later used here
|
= warning: this changes meaning in Rust 2024
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
Expand Down

0 comments on commit ce4e43f

Please sign in to comment.