Skip to content

Commit

Permalink
Fix code broken by rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Sep 17, 2015
1 parent c3f53d1 commit 1599c16
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/librustc/lint/context.rs
Expand Up @@ -767,6 +767,11 @@ impl<'a, 'tcx, 'v> hir_visit::Visitor<'v> for LateContext<'a, 'tcx> {
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);
}
Expand Down Expand Up @@ -915,9 +920,9 @@ impl<'a, 'v> ast_visit::Visitor<'v> for EarlyContext<'a> {
ast_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, item);
visit::walk_path_list_item(self, prefix, item);
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) {
Expand Down

0 comments on commit 1599c16

Please sign in to comment.