@@ -301,10 +301,6 @@ impl<'v> hir_visit::Visitor<'v> for StatCollector<'v> {
301
301
hir_visit:: walk_path ( self , path)
302
302
}
303
303
304
- // `PathSegment` has one inline use (in `ast::ExprKind::MethodCall`) and
305
- // one non-inline use (in `Path::segments`). The latter case is more common
306
- // than the former case, so we implement this visitor and tolerate the
307
- // double counting in the former case.
308
304
fn visit_path_segment ( & mut self , path_span : Span , path_segment : & ' v hir:: PathSegment < ' v > ) {
309
305
self . record ( "PathSegment" , Id :: None , path_segment) ;
310
306
hir_visit:: walk_path_segment ( self , path_span, path_segment)
@@ -509,6 +505,10 @@ impl<'v> ast_visit::Visitor<'v> for StatCollector<'v> {
509
505
// common, so we don't implement `visit_use_tree` and tolerate the missed
510
506
// coverage in the latter case.
511
507
508
+ // `PathSegment` has one inline use (in `ast::ExprKind::MethodCall`) and
509
+ // one non-inline use (in `ast::Path::segments`). The latter case is more
510
+ // common than the former case, so we implement this visitor and tolerate
511
+ // the double counting in the former case.
512
512
fn visit_path_segment ( & mut self , path_span : Span , path_segment : & ' v ast:: PathSegment ) {
513
513
self . record ( "PathSegment" , Id :: None , path_segment) ;
514
514
ast_visit:: walk_path_segment ( self , path_span, path_segment)
0 commit comments