Files
rust/tests/ui/patchable-function-entry/patchable-function-entry-attribute.stderr
T
Esteban Küber b849e10d38 Make span_suggestions always verbose
`span_suggestions` is to provide mutually exclusive suggestions. When it was introduced, we made its behavior be that if a single suggestion is given to it, we present the suggestion inline, otherwise in patch format. Changing this to make all of its uses be verbose, as that is closer in intent of output.
2026-04-15 01:38:14 +00:00

85 lines
3.3 KiB
Plaintext

error[E0539]: malformed `patchable_function_entry` attribute input
--> $DIR/patchable-function-entry-attribute.rs:4:1
|
LL | #[patchable_function_entry(prefix_nops = 256, entry_nops = 0)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^
| |
| expected an integer literal in the range of 0..=255
|
help: must be of the form
|
LL - #[patchable_function_entry(prefix_nops = 256, entry_nops = 0)]
LL + #[patchable_function_entry(prefix_nops = m, entry_nops = n)]
|
error[E0539]: malformed `patchable_function_entry` attribute input
--> $DIR/patchable-function-entry-attribute.rs:8:1
|
LL | #[patchable_function_entry(prefix_nops = "stringvalue", entry_nops = 0)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------^^^^^^^^^^^^^^^^^^
| |
| expected an integer literal here
|
help: must be of the form
|
LL - #[patchable_function_entry(prefix_nops = "stringvalue", entry_nops = 0)]
LL + #[patchable_function_entry(prefix_nops = m, entry_nops = n)]
|
error[E0539]: malformed `patchable_function_entry` attribute input
--> $DIR/patchable-function-entry-attribute.rs:12:1
|
LL | #[patchable_function_entry]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected this to be a list
|
help: must be of the form
|
LL | #[patchable_function_entry(prefix_nops = m, entry_nops = n)]
| +++++++++++++++++++++++++++++++++
error[E0539]: malformed `patchable_function_entry` attribute input
--> $DIR/patchable-function-entry-attribute.rs:16:1
|
LL | #[patchable_function_entry(prefix_nops = 10, something = 0)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------^^^^^^
| |
| valid arguments are `prefix_nops` or `entry_nops`
|
help: must be of the form
|
LL - #[patchable_function_entry(prefix_nops = 10, something = 0)]
LL + #[patchable_function_entry(prefix_nops = m, entry_nops = n)]
|
error[E0539]: malformed `patchable_function_entry` attribute input
--> $DIR/patchable-function-entry-attribute.rs:20:1
|
LL | #[patchable_function_entry()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^--^
| |
| expected at least 1 argument here
|
help: must be of the form
|
LL | #[patchable_function_entry(prefix_nops = m, entry_nops = n)]
| +++++++++++++++++++++++++++++++
error[E0538]: malformed `patchable_function_entry` attribute input
--> $DIR/patchable-function-entry-attribute.rs:24:1
|
LL | #[patchable_function_entry(prefix_nops = 255, prefix_nops = 255)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------^^^^^^^^
| |
| found `prefix_nops` used as a key more than once
|
help: must be of the form
|
LL - #[patchable_function_entry(prefix_nops = 255, prefix_nops = 255)]
LL + #[patchable_function_entry(prefix_nops = m, entry_nops = n)]
|
error: aborting due to 6 previous errors
Some errors have detailed explanations: E0538, E0539.
For more information about an error, try `rustc --explain E0538`.