@@ -30,7 +30,7 @@ use rustc::dep_graph::DepNode;
30
30
use rustc:: hir:: { self , PatKind } ;
31
31
use rustc:: hir:: def:: { self , Def , CtorKind } ;
32
32
use rustc:: hir:: def_id:: DefId ;
33
- use rustc:: hir:: intravisit:: { self , Visitor } ;
33
+ use rustc:: hir:: intravisit:: { self , Visitor , NestedVisitMode } ;
34
34
use rustc:: hir:: itemlikevisit:: DeepVisitor ;
35
35
use rustc:: hir:: pat_util:: EnumerateAndAdjustIterator ;
36
36
use rustc:: lint;
@@ -120,8 +120,8 @@ impl<'a, 'tcx> EmbargoVisitor<'a, 'tcx> {
120
120
impl < ' a , ' tcx > Visitor < ' tcx > for EmbargoVisitor < ' a , ' tcx > {
121
121
/// We want to visit items in the context of their containing
122
122
/// module and so forth, so supply a crate for doing a deep walk.
123
- fn nested_visit_map ( & mut self ) -> Option < & hir:: map:: Map < ' tcx > > {
124
- Some ( & self . tcx . map )
123
+ fn nested_visit_map ( & mut self ) -> Option < ( & hir:: map:: Map < ' tcx > , NestedVisitMode ) > {
124
+ Some ( ( & self . tcx . map , NestedVisitMode :: All ) )
125
125
}
126
126
127
127
fn visit_item ( & mut self , item : & ' tcx hir:: Item ) {
@@ -432,8 +432,8 @@ impl<'a, 'tcx> PrivacyVisitor<'a, 'tcx> {
432
432
impl < ' a , ' tcx > Visitor < ' tcx > for PrivacyVisitor < ' a , ' tcx > {
433
433
/// We want to visit items in the context of their containing
434
434
/// module and so forth, so supply a crate for doing a deep walk.
435
- fn nested_visit_map ( & mut self ) -> Option < & hir:: map:: Map < ' tcx > > {
436
- Some ( & self . tcx . map )
435
+ fn nested_visit_map ( & mut self ) -> Option < ( & hir:: map:: Map < ' tcx > , NestedVisitMode ) > {
436
+ Some ( ( & self . tcx . map , NestedVisitMode :: All ) )
437
437
}
438
438
439
439
fn visit_item ( & mut self , item : & ' tcx hir:: Item ) {
@@ -640,8 +640,8 @@ impl<'a, 'b, 'tcx, 'v> Visitor<'v> for ObsoleteCheckTypeForPrivatenessVisitor<'a
640
640
impl < ' a , ' tcx > Visitor < ' tcx > for ObsoleteVisiblePrivateTypesVisitor < ' a , ' tcx > {
641
641
/// We want to visit items in the context of their containing
642
642
/// module and so forth, so supply a crate for doing a deep walk.
643
- fn nested_visit_map ( & mut self ) -> Option < & hir:: map:: Map < ' tcx > > {
644
- Some ( & self . tcx . map )
643
+ fn nested_visit_map ( & mut self ) -> Option < ( & hir:: map:: Map < ' tcx > , NestedVisitMode ) > {
644
+ Some ( ( & self . tcx . map , NestedVisitMode :: All ) )
645
645
}
646
646
647
647
fn visit_item ( & mut self , item : & ' tcx hir:: Item ) {
0 commit comments