about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-16 07:54:03 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-06-16 09:52:04 +1000
commitc9e97251adf538be8f7f34bfd3e02a4bed164cbd (patch)
treefdd335474786d13cf9b0dfbdd96008339f58d7a5 /compiler/rustc_lint/src
parent969a2cc8c1e83ce93a13ab126c4519a72405bb69 (diff)
downloadrust-c9e97251adf538be8f7f34bfd3e02a4bed164cbd.tar.gz
rust-c9e97251adf538be8f7f34bfd3e02a4bed164cbd.zip
Remove unused `hir_id` arg from `visit_attribute`.
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/late.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/late.rs b/compiler/rustc_lint/src/late.rs
index 9ca80334e05..e9b14b2693c 100644
--- a/compiler/rustc_lint/src/late.rs
+++ b/compiler/rustc_lint/src/late.rs
@@ -337,7 +337,7 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
         hir_visit::walk_path(self, p);
     }
 
-    fn visit_attribute(&mut self, _hir_id: hir::HirId, attr: &'tcx ast::Attribute) {
+    fn visit_attribute(&mut self, attr: &'tcx ast::Attribute) {
         lint_callback!(self, check_attribute, attr);
     }
 }
@@ -400,7 +400,7 @@ fn late_lint_mod_pass<'tcx, T: LateLintPass<'tcx>>(
     // Visit the crate attributes
     if hir_id == hir::CRATE_HIR_ID {
         for attr in tcx.hir().attrs(hir::CRATE_HIR_ID).iter() {
-            cx.visit_attribute(hir_id, attr)
+            cx.visit_attribute(attr)
         }
     }
 }