improve error message when #[naked]
is used with #[inline]
This commit is contained in:
parent
ceec6ddf9e
commit
4bd36324b6
8 changed files with 104 additions and 111 deletions
|
@ -69,9 +69,6 @@ passes_break_non_loop =
|
|||
.suggestion = use `break` on its own without a value inside this `{$kind}` loop
|
||||
.break_expr_suggestion = alternatively, you might have meant to use the available loop label
|
||||
|
||||
passes_cannot_inline_naked_function =
|
||||
naked functions cannot be inlined
|
||||
|
||||
passes_cannot_stabilize_deprecated =
|
||||
an API can't be stabilized after it is deprecated
|
||||
.label = invalid version
|
||||
|
@ -485,6 +482,11 @@ passes_naked_functions_asm_block =
|
|||
passes_naked_functions_asm_options =
|
||||
asm options unsupported in naked functions: {$unsupported_options}
|
||||
|
||||
passes_naked_functions_codegen_attribute =
|
||||
cannot use additional code generation attributes with `#[naked]`
|
||||
.label = this attribute is incompatible with `#[naked]`
|
||||
.label2 = function marked with `#[naked]` here
|
||||
|
||||
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
|
||||
|
@ -492,9 +494,6 @@ passes_naked_functions_must_use_noreturn =
|
|||
passes_naked_functions_operands =
|
||||
only `const` and `sym` operands are supported in naked functions
|
||||
|
||||
passes_naked_tracked_caller =
|
||||
cannot use `#[track_caller]` with `#[naked]`
|
||||
|
||||
passes_no_link =
|
||||
attribute should be applied to an `extern crate` item
|
||||
.label = not an `extern crate` item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue