fn visit_struct_def(&mut self,
s: &hir::StructDef,
- ident: ast::Ident,
+ name: ast::Name,
g: &hir::Generics,
id: ast::NodeId) {
- run_lints!(self, check_struct_def, late_passes, s, ident, g, id);
+ run_lints!(self, check_struct_def, late_passes, s, name, g, id);
hir_visit::walk_struct_def(self, s);
- run_lints!(self, check_struct_def_post, late_passes, s, ident, g, id);
+ run_lints!(self, check_struct_def_post, late_passes, s, name, g, id);
}
fn visit_struct_field(&mut self, s: &hir::StructField) {
hir_visit::walk_ty(self, t);
}
- fn visit_ident(&mut self, sp: Span, id: ast::Ident) {
- run_lints!(self, check_ident, late_passes, sp, id);
+ fn visit_name(&mut self, sp: Span, name: ast::Name) {
+ run_lints!(self, check_name, late_passes, sp, name);
}
fn visit_mod(&mut self, m: &hir::Mod, s: Span, n: ast::NodeId) {
hir_visit::walk_path(self, p);
}
+ fn visit_path_list_item(&mut self, prefix: &hir::Path, item: &hir::PathListItem) {
+ run_lints!(self, check_path_list_item, late_passes, item);
+ hir_visit::walk_path_list_item(self, prefix, item);
+ }
+
fn visit_attribute(&mut self, attr: &ast::Attribute) {
run_lints!(self, check_attribute, late_passes, attr);
}
});
}
- fn visit_opt_lifetime_ref(&mut self, sp: Span, lt: &Option<ast::Lifetime>) {
- run_lints!(self, check_opt_lifetime_ref, early_passes, sp, lt);
- }
-
- fn visit_lifetime_ref(&mut self, lt: &ast::Lifetime) {
- run_lints!(self, check_lifetime_ref, early_passes, lt);
+ fn visit_lifetime(&mut self, lt: &ast::Lifetime) {
+ run_lints!(self, check_lifetime, early_passes, lt);
}
fn visit_lifetime_def(&mut self, lt: &ast::LifetimeDef) {
ast_visit::walk_path(self, p);
}
+ fn visit_path_list_item(&mut self, prefix: &ast::Path, item: &ast::PathListItem) {
+ run_lints!(self, check_path_list_item, early_passes, item);
+ ast_visit::walk_path_list_item(self, prefix, item);
+ }
+
fn visit_attribute(&mut self, attr: &ast::Attribute) {
run_lints!(self, check_attribute, early_passes, attr);
}