Skip to content

Commit bf298ae

Browse files
committed
Fix doc test collection
1 parent b10bbde commit bf298ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ impl<'a, 'hir> intravisit::Visitor<'hir> for HirCollector<'a, 'hir> {
493493
Some(self.map)
494494
}
495495

496+
fn nested_visit_mode(&mut self) -> intravisit::NestedVisitMode {
497+
intravisit::NestedVisitMode::All
498+
}
499+
496500
fn visit_item(&mut self, item: &'hir hir::Item) {
497501
let name = if let hir::ItemImpl(.., ref ty, _) = item.node {
498502
hir::print::ty_to_string(ty)

0 commit comments

Comments
 (0)