about summary refs log tree commit diff
path: root/tests/ui/panic-handler
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-05 19:07:55 +0200
committerGitHub <noreply@github.com>2024-10-05 19:07:55 +0200
commit6a85c32f55fce74987cb600f23d609bda2360efe (patch)
treece5b664d0ba91cb61832795c9cd6b02b35833e6f /tests/ui/panic-handler
parentc45f9027230dbde55377d86165b12f50a9f959ad (diff)
parent8faf3722ac963a637265c3fb087fce08f9ceb163 (diff)
downloadrust-6a85c32f55fce74987cb600f23d609bda2360efe.tar.gz
rust-6a85c32f55fce74987cb600f23d609bda2360efe.zip
Rollup merge of #131299 - RalfJung:lang-item-track-caller, r=compiler-errors
fix typo in 'lang item with track_caller' message

Revival of https://github.com/rust-lang/rust/pull/124912
Diffstat (limited to 'tests/ui/panic-handler')
-rw-r--r--tests/ui/panic-handler/panic-handler-with-track-caller.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/panic-handler/panic-handler-with-track-caller.stderr b/tests/ui/panic-handler/panic-handler-with-track-caller.stderr
index 9ed387fc8d1..605567acdb5 100644
--- a/tests/ui/panic-handler/panic-handler-with-track-caller.stderr
+++ b/tests/ui/panic-handler/panic-handler-with-track-caller.stderr
@@ -5,7 +5,7 @@ LL | #[track_caller]
    | ^^^^^^^^^^^^^^^
 LL |
 LL | fn panic(info: &PanicInfo) -> ! {
-   | ------------------------------- `#[panic_handler]` function is not allowed to have `#[target_feature]`
+   | ------------------------------- `#[panic_handler]` function is not allowed to have `#[track_caller]`
 
 error: aborting due to 1 previous error