1
Fork 0

fix attribute validation on associated items in traits

This commit is contained in:
gvozdvmozgu 2024-02-24 08:14:38 -05:00
parent 8f359beca4
commit 8b576d5536
3 changed files with 16 additions and 0 deletions

View file

@ -1519,6 +1519,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
generics,
body.as_deref(),
);
walk_list!(self, visit_attribute, &item.attrs);
self.visit_fn(kind, item.span, item.id);
}
AssocItemKind::Type(_) => {