about summary refs log tree commit diff
path: root/compiler/rustc_incremental/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-18 09:57:00 +0000
committerbors <bors@rust-lang.org>2022-06-18 09:57:00 +0000
commitcdcc53b7dc002ea4a7a28105010c5a1126ee31b7 (patch)
tree48332da5be8538e7715065e456b7cb5ccd93d6b5 /compiler/rustc_incremental/src
parent0182fd99afaf4a3d602de6b88506edaf6043c125 (diff)
parentbe45f10a9c3b429eeef95dc24ebdd19cbccce0be (diff)
downloadrust-cdcc53b7dc002ea4a7a28105010c5a1126ee31b7.tar.gz
rust-cdcc53b7dc002ea4a7a28105010c5a1126ee31b7.zip
Auto merge of #98153 - nnethercote:fix-MissingDoc-quadratic-behaviour, r=cjgillot
Fix `MissingDoc` quadratic behaviour

Best reviewed one commit at a time.

r? `@cjgillot`
Diffstat (limited to 'compiler/rustc_incremental/src')
-rw-r--r--compiler/rustc_incremental/src/persist/dirty_clean.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_incremental/src/persist/dirty_clean.rs b/compiler/rustc_incremental/src/persist/dirty_clean.rs
index 424164d8760..94097357f8c 100644
--- a/compiler/rustc_incremental/src/persist/dirty_clean.rs
+++ b/compiler/rustc_incremental/src/persist/dirty_clean.rs
@@ -21,7 +21,6 @@
 
 use rustc_ast::{self as ast, Attribute, NestedMetaItem};
 use rustc_data_structures::fx::FxHashSet;
-use rustc_hir as hir;
 use rustc_hir::def_id::LocalDefId;
 use rustc_hir::intravisit;
 use rustc_hir::Node as HirNode;
@@ -473,7 +472,7 @@ impl<'tcx> intravisit::Visitor<'tcx> for FindAllAttrs<'tcx> {
         self.tcx.hir()
     }
 
-    fn visit_attribute(&mut self, _: hir::HirId, attr: &'tcx Attribute) {
+    fn visit_attribute(&mut self, attr: &'tcx Attribute) {
         if self.is_active_attr(attr) {
             self.found_attrs.push(attr);
         }