about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/messages.ftl
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2025-03-29 17:30:11 +0100
committerFolkert de Vries <folkert@folkertdev.nl>2025-04-19 00:03:35 +0200
commit41ddf8672231c1f8cfa0fc754c1653f151030b19 (patch)
tree005cc521b545437b4f34871d8149c82b5d6827d9 /compiler/rustc_builtin_macros/messages.ftl
parent191df20fcad9331d3a948aa8e8556775ec3fe69d (diff)
downloadrust-41ddf8672231c1f8cfa0fc754c1653f151030b19.tar.gz
rust-41ddf8672231c1f8cfa0fc754c1653f151030b19.zip
Make `#[naked]` an unsafe attribute
Diffstat (limited to 'compiler/rustc_builtin_macros/messages.ftl')
-rw-r--r--compiler/rustc_builtin_macros/messages.ftl4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/messages.ftl b/compiler/rustc_builtin_macros/messages.ftl
index 5316e90847a..73be954cefd 100644
--- a/compiler/rustc_builtin_macros/messages.ftl
+++ b/compiler/rustc_builtin_macros/messages.ftl
@@ -247,9 +247,9 @@ builtin_macros_multiple_defaults = multiple declared defaults
     .suggestion = make `{$ident}` default
 
 builtin_macros_naked_functions_testing_attribute =
-    cannot use `#[naked]` with testing attributes
+    cannot use `#[unsafe(naked)]` with testing attributes
     .label = function marked with testing attribute here
-    .naked_attribute = `#[naked]` is incompatible with testing attributes
+    .naked_attribute = `#[unsafe(naked)]` is incompatible with testing attributes
 
 builtin_macros_no_default_variant = `#[derive(Default)]` on enum with no `#[default]`
     .label = this enum needs a unit variant marked with `#[default]`