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:
parent
8100541d54
commit
70ee0c96fc
4 changed files with 45 additions and 2 deletions
|
@ -67,6 +67,7 @@ decl_derive!(
|
|||
warning,
|
||||
error,
|
||||
// field attributes
|
||||
skip_arg,
|
||||
primary_span,
|
||||
label,
|
||||
suggestion,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue