about summary refs log tree commit diff
path: root/compiler/rustc_passes/messages.ftl
diff options
context:
space:
mode:
authorManuel Drehwald <git@manuel.drehwald.info>2024-10-11 19:13:31 +0200
committerManuel Drehwald <git@manuel.drehwald.info>2024-10-11 19:13:31 +0200
commit624c071b997f3bab0ef086af24f59ebc95f37c59 (patch)
tree44091cd44e62db9aa4d0f0b6053de7b84769a5cb /compiler/rustc_passes/messages.ftl
parent52fd9983996d9fcfb719749838336be66dee68f9 (diff)
downloadrust-624c071b997f3bab0ef086af24f59ebc95f37c59.tar.gz
rust-624c071b997f3bab0ef086af24f59ebc95f37c59.zip
Single commit implementing the enzyme/autodiff frontend
Co-authored-by: Lorenz Schmidt <bytesnake@mailbox.org>
Diffstat (limited to 'compiler/rustc_passes/messages.ftl')
-rw-r--r--compiler/rustc_passes/messages.ftl4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_passes/messages.ftl b/compiler/rustc_passes/messages.ftl
index be76d6cef2b..d60d7e00d4b 100644
--- a/compiler/rustc_passes/messages.ftl
+++ b/compiler/rustc_passes/messages.ftl
@@ -49,6 +49,10 @@ passes_attr_crate_level =
 passes_attr_only_in_functions =
     `{$attr}` attribute can only be used on functions
 
+passes_autodiff_attr =
+    `#[autodiff]` should be applied to a function
+    .label = not a function
+
 passes_both_ffi_const_and_pure =
     `#[ffi_const]` function cannot be `#[ffi_pure]`