diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2023-10-25 09:38:37 +0000 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2023-10-25 10:10:13 +0000 |
| commit | dc3d428a8a4771342fb76a4c7fa83569ac05c433 (patch) | |
| tree | 00a569298eabf0e8f75863a588e684f48da5ab93 /tests/ui/inline-const | |
| parent | 98108dc26cb3f73f29c07b03ab75540545f3b481 (diff) | |
| download | rust-dc3d428a8a4771342fb76a4c7fa83569ac05c433.tar.gz rust-dc3d428a8a4771342fb76a4c7fa83569ac05c433.zip | |
Make THIR unused_unsafe lint consistent with MIR
Updates THIR behavior to match the changes from #93678
Diffstat (limited to 'tests/ui/inline-const')
| -rw-r--r-- | tests/ui/inline-const/expr-unsafe.thir.stderr | 3 | ||||
| -rw-r--r-- | tests/ui/inline-const/pat-unsafe.thir.stderr | 6 |
2 files changed, 0 insertions, 9 deletions
diff --git a/tests/ui/inline-const/expr-unsafe.thir.stderr b/tests/ui/inline-const/expr-unsafe.thir.stderr index 4737444fb61..1ab6e42fba0 100644 --- a/tests/ui/inline-const/expr-unsafe.thir.stderr +++ b/tests/ui/inline-const/expr-unsafe.thir.stderr @@ -1,9 +1,6 @@ warning: unnecessary `unsafe` block --> $DIR/expr-unsafe.rs:12:13 | -LL | unsafe { - | ------ because it's nested under this `unsafe` block -... LL | unsafe {} | ^^^^^^ unnecessary `unsafe` block | diff --git a/tests/ui/inline-const/pat-unsafe.thir.stderr b/tests/ui/inline-const/pat-unsafe.thir.stderr index d62c87fc8f3..0318b3ff2cc 100644 --- a/tests/ui/inline-const/pat-unsafe.thir.stderr +++ b/tests/ui/inline-const/pat-unsafe.thir.stderr @@ -1,9 +1,6 @@ warning: unnecessary `unsafe` block --> $DIR/pat-unsafe.rs:19:17 | -LL | unsafe { - | ------ because it's nested under this `unsafe` block -... LL | unsafe {} | ^^^^^^ unnecessary `unsafe` block | @@ -16,9 +13,6 @@ LL | #![warn(unused_unsafe)] warning: unnecessary `unsafe` block --> $DIR/pat-unsafe.rs:26:17 | -LL | unsafe { - | ------ because it's nested under this `unsafe` block -... LL | unsafe {} | ^^^^^^ unnecessary `unsafe` block |
