about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/messages.ftl
diff options
context:
space:
mode:
authorFolkert <folkert@folkertdev.nl>2024-07-17 00:03:33 +0200
committerFolkert <folkert@folkertdev.nl>2024-07-17 00:04:00 +0200
commit4d082b77af1f714df6c407785e1961a9dddd554c (patch)
treec73cb2325d16e38d91e13de25cd951574242d56f /compiler/rustc_builtin_macros/messages.ftl
parent7e6c083873b7b98aa52d47896107af11560aeaf5 (diff)
downloadrust-4d082b77af1f714df6c407785e1961a9dddd554c.tar.gz
rust-4d082b77af1f714df6c407785e1961a9dddd554c.zip
add error message when `#[naked]` is used with `#[test]`
Diffstat (limited to 'compiler/rustc_builtin_macros/messages.ftl')
-rw-r--r--compiler/rustc_builtin_macros/messages.ftl5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_builtin_macros/messages.ftl b/compiler/rustc_builtin_macros/messages.ftl
index b56bfa98357..21c0f0802f7 100644
--- a/compiler/rustc_builtin_macros/messages.ftl
+++ b/compiler/rustc_builtin_macros/messages.ftl
@@ -216,6 +216,11 @@ builtin_macros_multiple_defaults = multiple declared defaults
     .note = only one variant can be default
     .suggestion = make `{$ident}` default
 
+builtin_macros_naked_functions_testing_attribute =
+    cannot use `#[naked]` with testing attributes
+    .label = function marked with testing attribute here
+    .naked_attribute = `#[naked]` is incompatible with testing attributes
+
 builtin_macros_no_default_variant = no default declared
     .help = make a unit variant default by placing `#[default]` above it
     .suggestion = make `{$ident}` default