@@ -767,6 +767,11 @@ impl<'a, 'tcx, 'v> hir_visit::Visitor<'v> for LateContext<'a, 'tcx> {
767767 hir_visit:: walk_path ( self , p) ;
768768 }
769769
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+
770775 fn visit_attribute ( & mut self , attr : & ast:: Attribute ) {
771776 run_lints ! ( self , check_attribute, late_passes, attr) ;
772777 }
@@ -915,9 +920,9 @@ impl<'a, 'v> ast_visit::Visitor<'v> for EarlyContext<'a> {
915920 ast_visit:: walk_path ( self , p) ;
916921 }
917922
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) ;
921926 }
922927
923928 fn visit_attribute ( & mut self , attr : & ast:: Attribute ) {
0 commit comments