Fix error message in #[patchable_function_entry]

This commit is contained in:
Sasha Pourcelot
2026-04-04 19:46:50 +00:00
parent 6f87e0be69
commit ec3f4382df
2 changed files with 2 additions and 2 deletions
@@ -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