Skip to content

Commit

Permalink
librustdoc: Fix compilation after visitor change
Browse files Browse the repository at this point in the history
  • Loading branch information
flodiebold committed Nov 29, 2016
1 parent 9457497 commit 593b273
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/librustdoc/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,8 @@ impl<'a, 'hir> HirCollector<'a, 'hir> {
}

impl<'a, 'hir> intravisit::Visitor<'hir> for HirCollector<'a, 'hir> {
fn nested_visit_map(&mut self) -> Option<&hir::map::Map<'hir>> {
Some(self.map)
}

fn nested_visit_mode(&mut self) -> intravisit::NestedVisitMode {
intravisit::NestedVisitMode::All
fn nested_visit_map<'this>(&'this mut self) -> intravisit::NestedVisitorMap<'this, 'hir> {
intravisit::NestedVisitorMap::All(&self.map)
}

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

0 comments on commit 593b273

Please sign in to comment.