Skip to content

Commit 593b273

Browse files
committed
librustdoc: Fix compilation after visitor change
1 parent 9457497 commit 593b273

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/librustdoc/test.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -489,12 +489,8 @@ impl<'a, 'hir> HirCollector<'a, 'hir> {
489489
}
490490

491491
impl<'a, 'hir> intravisit::Visitor<'hir> for HirCollector<'a, 'hir> {
492-
fn nested_visit_map(&mut self) -> Option<&hir::map::Map<'hir>> {
493-
Some(self.map)
494-
}
495-
496-
fn nested_visit_mode(&mut self) -> intravisit::NestedVisitMode {
497-
intravisit::NestedVisitMode::All
492+
fn nested_visit_map<'this>(&'this mut self) -> intravisit::NestedVisitorMap<'this, 'hir> {
493+
intravisit::NestedVisitorMap::All(&self.map)
498494
}
499495

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

0 commit comments

Comments
 (0)