提交 b6b11f0f 编写于 作者: D Dylan MacKenzie

Call all visit methods on trait definitions

上级 343e1570
......@@ -741,11 +741,14 @@ fn visit_item(&mut self, item: &'a Item) {
// Equivalent of `visit::walk_item` for `ItemKind::Trait` that inserts a bound
// context for the supertraits.
self.visit_vis(&item.vis);
self.visit_ident(item.ident);
self.visit_generics(generics);
self.with_bound_context(Some(BoundContext::TraitBounds), |this| {
walk_list!(this, visit_param_bound, bounds);
});
walk_list!(self, visit_trait_item, trait_items);
walk_list!(self, visit_attribute, &item.attrs);
return;
}
ItemKind::Mod(_) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册