1
Fork 0

Reword comments and rename HIR visiting methods.

This commit is contained in:
Camille GILLOT 2022-07-03 15:28:57 +02:00
parent c461f7a16e
commit 111df9e6ed
18 changed files with 113 additions and 105 deletions

View file

@ -75,7 +75,7 @@ pub fn assert_dep_graph(tcx: TyCtxt<'_>) {
let mut visitor =
IfThisChanged { tcx, if_this_changed: vec![], then_this_would_need: vec![] };
visitor.process_attrs(hir::CRATE_HIR_ID);
tcx.hir().deep_visit_all_item_likes(&mut visitor);
tcx.hir().visit_all_item_likes_in_crate(&mut visitor);
(visitor.if_this_changed, visitor.then_this_would_need)
};