Stop using walk_crate.
This commit is contained in:
parent
ad3407f482
commit
7ec973d9ce
15 changed files with 45 additions and 39 deletions
|
@ -142,7 +142,7 @@ pub fn check_dirty_clean_annotations(tcx: TyCtxt<'_>) {
|
|||
krate.visit_all_item_likes(&mut dirty_clean_visitor);
|
||||
|
||||
let mut all_attrs = FindAllAttrs { tcx, found_attrs: vec![] };
|
||||
intravisit::walk_crate(&mut all_attrs, krate);
|
||||
tcx.hir().walk_attributes(&mut all_attrs);
|
||||
|
||||
// Note that we cannot use the existing "unused attribute"-infrastructure
|
||||
// here, since that is running before codegen. This is also the reason why
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue