We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 343e157 commit b6b11f0Copy full SHA for b6b11f0
src/librustc_passes/ast_validation.rs
@@ -741,11 +741,14 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
741
742
// Equivalent of `visit::walk_item` for `ItemKind::Trait` that inserts a bound
743
// context for the supertraits.
744
+ self.visit_vis(&item.vis);
745
+ self.visit_ident(item.ident);
746
self.visit_generics(generics);
747
self.with_bound_context(Some(BoundContext::TraitBounds), |this| {
748
walk_list!(this, visit_param_bound, bounds);
749
});
750
walk_list!(self, visit_trait_item, trait_items);
751
+ walk_list!(self, visit_attribute, &item.attrs);
752
return;
753
}
754
ItemKind::Mod(_) => {
0 commit comments