Check attributes on pattern fields.
Attributes on pattern struct fields were not being checked for validity. This adds the fields as HIR nodes so that the `CheckAttrVisitor` can visit those nodes to check their attributes.
This commit is contained in:
parent
b998821e4c
commit
1b464c73b7
10 changed files with 64 additions and 22 deletions
|
@ -56,6 +56,7 @@ pub enum Target {
|
|||
GenericParam(GenericParamKind),
|
||||
MacroDef,
|
||||
Param,
|
||||
PatField,
|
||||
}
|
||||
|
||||
impl Display for Target {
|
||||
|
@ -183,6 +184,7 @@ impl Target {
|
|||
},
|
||||
Target::MacroDef => "macro def",
|
||||
Target::Param => "function param",
|
||||
Target::PatField => "pattern field",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue