mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Fix error message in #[patchable_function_entry]
This commit is contained in:
@@ -737,7 +737,7 @@ fn convert(cx: &mut AcceptContext<'_, '_, S>, args: &ArgParser) -> Option<Attrib
|
||||
let mut entry = None;
|
||||
|
||||
if meta_item_list.len() == 0 {
|
||||
cx.adcx().expected_list(meta_item_list.span, args);
|
||||
cx.adcx().expected_at_least_one_argument(meta_item_list.span);
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ error[E0539]: malformed `patchable_function_entry` attribute input
|
||||
LL | #[patchable_function_entry()]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^--^
|
||||
| | |
|
||||
| | expected this to be a list
|
||||
| | expected at least 1 argument here
|
||||
| help: must be of the form: `#[patchable_function_entry(prefix_nops = m, entry_nops = n)]`
|
||||
|
||||
error[E0538]: malformed `patchable_function_entry` attribute input
|
||||
|
||||
Reference in New Issue
Block a user