1
Fork 0

macros: add #[no_arg] to skip set_arg call

A call to `set_arg` is generated for every field of a
`SessionDiagnostic` struct without attributes, but not all types support
being an argument, so `#[no_arg]` is introduced to skip these fields.

Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
David Wood 2022-03-31 09:02:31 +01:00
parent 8100541d54
commit 70ee0c96fc
4 changed files with 45 additions and 2 deletions

View file

@ -67,6 +67,7 @@ decl_derive!(
warning,
error,
// field attributes
skip_arg,
primary_span,
label,
suggestion,