Skip to content

Commit cad1fd2

Browse files
committed
update rustdoc code to use new method name
Signed-off-by: Miguel Guarniz <[email protected]>
1 parent 2e98879 commit cad1fd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_middle/src/hir/nested_filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_hir::intravisit::nested_filter::NestedFilter;
88
/// constant arguments of types, e.g. in `let _: [(); /* HERE */];`.
99
///
1010
/// **This is the most common choice.** A very common pattern is
11-
/// to use `visit_all_item_likes()` as an outer loop,
11+
/// to use `deep_visit_all_item_likes()` as an outer loop,
1212
/// and to have the visitor that visits the contents of each item
1313
/// using this setting.
1414
pub struct OnlyBodies(());

src/librustdoc/scrape_examples.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ crate fn run(
303303
// Run call-finder on all items
304304
let mut calls = FxHashMap::default();
305305
let mut finder = FindCalls { calls: &mut calls, tcx, map: tcx.hir(), cx, target_crates };
306-
tcx.hir().visit_all_item_likes(&mut finder);
306+
tcx.hir().deep_visit_all_item_likes(&mut finder);
307307

308308
// Sort call locations within a given file in document order
309309
for fn_calls in calls.values_mut() {

0 commit comments

Comments
 (0)