We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14c9ab8 commit eabd51aCopy full SHA for eabd51a
src/librustc_passes/ast_validation.rs
@@ -722,11 +722,14 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
722
723
// Equivalent of `visit::walk_item` for `ItemKind::Trait` that inserts a bound
724
// context for the supertraits.
725
+ self.visit_vis(&item.vis);
726
+ self.visit_ident(item.ident);
727
self.visit_generics(generics);
728
self.with_bound_context(Some(BoundContext::TraitBounds), |this| {
729
walk_list!(this, visit_param_bound, bounds);
730
});
731
walk_list!(self, visit_trait_item, trait_items);
732
+ walk_list!(self, visit_attribute, &item.attrs);
733
return;
734
}
735
ItemKind::Mod(_) => {
0 commit comments