@@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
3
3
use rustc_data_structures:: fx:: { FxHashMap , FxIndexMap } ;
4
4
use rustc_hir:: def:: { DefKind , Res } ;
5
5
use rustc_hir:: def_id:: { DefId , LOCAL_CRATE } ;
6
- use rustc_hir:: intravisit:: { self , Visitor } ;
6
+ use rustc_hir:: intravisit:: { self , Visitor , VisitorExt } ;
7
7
use rustc_hir:: { ExprKind , HirId , Item , ItemKind , Mod , Node , QPath } ;
8
8
use rustc_middle:: hir:: nested_filter;
9
9
use rustc_middle:: ty:: TyCtxt ;
@@ -238,13 +238,13 @@ impl<'tcx> Visitor<'tcx> for SpanMapVisitor<'tcx> {
238
238
self . infer_id ( path. hir_id , Some ( id) , path. ident . span ) ;
239
239
}
240
240
241
- rustc_ast:: visit:: try_visit!( self . visit_ty ( qself) ) ;
241
+ rustc_ast:: visit:: try_visit!( self . visit_ty_unambig ( qself) ) ;
242
242
self . visit_path_segment ( path) ;
243
243
}
244
244
QPath :: Resolved ( maybe_qself, path) => {
245
245
self . handle_path ( path, true ) ;
246
246
247
- rustc_ast:: visit:: visit_opt!( self , visit_ty , maybe_qself) ;
247
+ rustc_ast:: visit:: visit_opt!( self , visit_ty_unambig , maybe_qself) ;
248
248
if !self . handle_macro ( path. span ) {
249
249
intravisit:: walk_path ( self , path) ;
250
250
}
0 commit comments