diff options
| author | Nathan Stocks <cleancut@github.com> | 2022-09-27 09:44:56 -0600 |
|---|---|---|
| committer | Nathan Stocks <cleancut@github.com> | 2022-10-07 13:19:27 -0600 |
| commit | 96f92eab683497a14079fd4da67642f1a4fc07e0 (patch) | |
| tree | f550cbb253a4f0ffe70cac65cfe1fb9c62ba0567 /compiler/rustc_error_messages | |
| parent | 69766e4f167f4097e1f8975bd866c1f782fa26d5 (diff) | |
| download | rust-96f92eab683497a14079fd4da67642f1a4fc07e0.tar.gz rust-96f92eab683497a14079fd4da67642f1a4fc07e0.zip | |
migrate naked_functions.rs to translateable diagnostics
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/passes.ftl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/passes.ftl b/compiler/rustc_error_messages/locales/en-US/passes.ftl index 3dc4204f986..ddc8f149d13 100644 --- a/compiler/rustc_error_messages/locales/en-US/passes.ftl +++ b/compiler/rustc_error_messages/locales/en-US/passes.ftl @@ -467,3 +467,31 @@ passes_unlabeled_in_labeled_block = passes_unlabeled_cf_in_while_condition = `break` or `continue` with no label in the condition of a `while` loop .label = unlabeled `{$cf_type}` in the condition of a `while` loop + +passes_cannot_inline_naked_function = + naked functions cannot be inlined + +passes_undefined_naked_function_abi = + Rust ABI is unsupported in naked functions + +passes_no_patterns = + patterns not allowed in naked function parameters + +passes_params_not_allowed = + referencing function parameters is not allowed in naked functions + .help = follow the calling convention in asm block to use parameters + +passes_naked_functions_asm_block = + naked functions must contain a single asm block + .label_multiple_asm = multiple asm blocks are unsupported in naked functions + .label_non_asm = non-asm is unsupported in naked functions + +passes_naked_functions_operands = + only `const` and `sym` operands are supported in naked functions + +passes_naked_functions_asm_options = + asm options unsupported in naked functions: {$unsupported_options} + +passes_naked_functions_must_use_noreturn = + asm in naked functions must use `noreturn` option + .suggestion = consider specifying that the asm block is responsible for returning from the function |
