@@ -767,6 +767,11 @@ impl<'a, 'tcx, 'v> hir_visit::Visitor<'v> for LateContext<'a, 'tcx> {
767
767
hir_visit:: walk_path ( self , p) ;
768
768
}
769
769
770
+ fn visit_path_list_item ( & mut self , prefix : & hir:: Path , item : & hir:: PathListItem ) {
771
+ run_lints ! ( self , check_path_list_item, late_passes, item) ;
772
+ hir_visit:: walk_path_list_item ( self , prefix, item) ;
773
+ }
774
+
770
775
fn visit_attribute ( & mut self , attr : & ast:: Attribute ) {
771
776
run_lints ! ( self , check_attribute, late_passes, attr) ;
772
777
}
@@ -915,9 +920,9 @@ impl<'a, 'v> ast_visit::Visitor<'v> for EarlyContext<'a> {
915
920
ast_visit:: walk_path ( self , p) ;
916
921
}
917
922
918
- fn visit_path_list_item ( & mut self , prefix : & hir :: Path , item : & hir :: PathListItem ) {
919
- run_lints ! ( self , check_path_list_item, item) ;
920
- visit :: walk_path_list_item ( self , prefix, item) ;
923
+ fn visit_path_list_item ( & mut self , prefix : & ast :: Path , item : & ast :: PathListItem ) {
924
+ run_lints ! ( self , check_path_list_item, early_passes , item) ;
925
+ ast_visit :: walk_path_list_item ( self , prefix, item) ;
921
926
}
922
927
923
928
fn visit_attribute ( & mut self , attr : & ast:: Attribute ) {
0 commit comments