]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_error_messages/locales/en-US/passes.ftl
Rollup merge of #106407 - mejrs:attr_check, r=compiler-errors
[rust.git] / compiler / rustc_error_messages / locales / en-US / passes.ftl
index 91857dd227ddd602bb0eeee9eee8a291faa3ebbc..0c2ab3d08f9dea13d6b1da74a346e231f40c9f6f 100644 (file)
@@ -710,3 +710,24 @@ passes_ignored_derived_impls =
       [one] trait {$trait_list}, but this is
      *[other] traits {$trait_list}, but these are
     } intentionally ignored during dead code analysis
+
+passes_proc_macro_typeerror = mismatched {$kind} signature
+    .label = found {$found}, expected type `proc_macro::TokenStream`
+    .note = {$kind}s must have a signature of `{$expected_signature}`
+
+passes_proc_macro_diff_arg_count = mismatched {$kind} signature
+    .label = found unexpected {$count ->
+      [one] argument
+     *[other] arguments
+    }
+    .note = {$kind}s must have a signature of `{$expected_signature}`
+
+passes_proc_macro_missing_args = mismatched {$kind} signature
+    .label = {$kind} must have {$expected_input_count ->
+      [one] one argument
+     *[other] two arguments
+    } of type `proc_macro::TokenStream`
+
+passes_proc_macro_invalid_abi = proc macro functions may not be `extern "{$abi}"`
+
+passes_proc_macro_unsafe = proc macro functions may not be `unsafe`