Rename walk_crate.
This commit is contained in:
parent
df148e4efb
commit
d119a13137
11 changed files with 14 additions and 14 deletions
|
@ -775,5 +775,5 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
|
|||
let krate = tcx.hir().krate();
|
||||
let live_symbols = find_live(tcx, access_levels, krate);
|
||||
let mut visitor = DeadVisitor { tcx, live_symbols };
|
||||
tcx.hir().walk_crate(&mut visitor);
|
||||
tcx.hir().walk_toplevel_module(&mut visitor);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ pub fn print_hir_stats(tcx: TyCtxt<'_>) {
|
|||
data: FxHashMap::default(),
|
||||
seen: FxHashSet::default(),
|
||||
};
|
||||
tcx.hir().walk_crate(&mut collector);
|
||||
tcx.hir().walk_toplevel_module(&mut collector);
|
||||
tcx.hir().walk_attributes(&mut collector);
|
||||
collector.print("HIR STATS");
|
||||
}
|
||||
|
|
|
@ -717,7 +717,7 @@ fn stability_index(tcx: TyCtxt<'tcx>, (): ()) -> Index<'tcx> {
|
|||
InheritDeprecation::Yes,
|
||||
InheritConstStability::No,
|
||||
InheritStability::No,
|
||||
|v| tcx.hir().walk_crate(v),
|
||||
|v| tcx.hir().walk_toplevel_module(v),
|
||||
);
|
||||
}
|
||||
index
|
||||
|
@ -909,7 +909,7 @@ pub fn check_unused_or_stable_features(tcx: TyCtxt<'_>) {
|
|||
let krate = tcx.hir().krate();
|
||||
let mut missing = MissingStabilityAnnotations { tcx, access_levels };
|
||||
missing.check_missing_stability(CRATE_DEF_ID, tcx.hir().span(CRATE_HIR_ID));
|
||||
tcx.hir().walk_crate(&mut missing);
|
||||
tcx.hir().walk_toplevel_module(&mut missing);
|
||||
krate.visit_all_item_likes(&mut missing.as_deep_visitor());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue