librustdoc: Fix compilation after visitor change

This commit is contained in:
Florian Diebold 2016-11-29 13:07:04 +01:00
parent 9457497bcc
commit 593b273659

View File

@ -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) {