1
Fork 0

Visit more targets when checking attrs

This commit is contained in:
Ryan Levick 2021-01-08 10:00:39 +01:00 committed by Ryan Levick
parent ea098255f7
commit 396022b90b
4 changed files with 25 additions and 17 deletions

View file

@ -54,6 +54,7 @@ pub enum Target {
ForeignTy,
GenericParam(GenericParamKind),
MacroDef,
Param,
}
impl Display for Target {
@ -96,6 +97,7 @@ impl Display for Target {
GenericParamKind::Const => "const parameter",
},
Target::MacroDef => "macro def",
Target::Param => "function param",
}
)
}