diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-08-26 18:42:08 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-02 19:08:58 +0200 |
| commit | 7ec973d9ce7bc02577efde54929ad38bcf5a40eb (patch) | |
| tree | 5056ed7a189839f58b35412ad02cf53158fcd65c /compiler/rustc_incremental | |
| parent | ad3407f482d29f26c67700974d86f89b3f2ab993 (diff) | |
| download | rust-7ec973d9ce7bc02577efde54929ad38bcf5a40eb.tar.gz rust-7ec973d9ce7bc02577efde54929ad38bcf5a40eb.zip | |
Stop using walk_crate.
Diffstat (limited to 'compiler/rustc_incremental')
| -rw-r--r-- | compiler/rustc_incremental/src/persist/dirty_clean.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_incremental/src/persist/dirty_clean.rs b/compiler/rustc_incremental/src/persist/dirty_clean.rs index c4dc0fbadc8..c190391d211 100644 --- a/compiler/rustc_incremental/src/persist/dirty_clean.rs +++ b/compiler/rustc_incremental/src/persist/dirty_clean.rs @@ -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 |
