Skip to content

Commit 0cdd1d4

Browse files
committed
rustc_privacy: fix compilation
1 parent dd6a57c commit 0cdd1d4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/librustc_privacy/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use rustc::dep_graph::DepNode;
3030
use rustc::hir::{self, PatKind};
3131
use rustc::hir::def::{self, Def, CtorKind};
3232
use rustc::hir::def_id::DefId;
33-
use rustc::hir::intravisit::{self, Visitor};
33+
use rustc::hir::intravisit::{self, Visitor, NestedVisitMode};
3434
use rustc::hir::itemlikevisit::DeepVisitor;
3535
use rustc::hir::pat_util::EnumerateAndAdjustIterator;
3636
use rustc::lint;
@@ -120,8 +120,8 @@ impl<'a, 'tcx> EmbargoVisitor<'a, 'tcx> {
120120
impl<'a, 'tcx> Visitor<'tcx> for EmbargoVisitor<'a, 'tcx> {
121121
/// We want to visit items in the context of their containing
122122
/// 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))
125125
}
126126

127127
fn visit_item(&mut self, item: &'tcx hir::Item) {
@@ -432,8 +432,8 @@ impl<'a, 'tcx> PrivacyVisitor<'a, 'tcx> {
432432
impl<'a, 'tcx> Visitor<'tcx> for PrivacyVisitor<'a, 'tcx> {
433433
/// We want to visit items in the context of their containing
434434
/// 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))
437437
}
438438

439439
fn visit_item(&mut self, item: &'tcx hir::Item) {
@@ -640,8 +640,8 @@ impl<'a, 'b, 'tcx, 'v> Visitor<'v> for ObsoleteCheckTypeForPrivatenessVisitor<'a
640640
impl<'a, 'tcx> Visitor<'tcx> for ObsoleteVisiblePrivateTypesVisitor<'a, 'tcx> {
641641
/// We want to visit items in the context of their containing
642642
/// 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))
645645
}
646646

647647
fn visit_item(&mut self, item: &'tcx hir::Item) {

0 commit comments

Comments
 (0)