about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/early.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-12-07 01:11:23 +0000
committerMichael Goulet <michael@errs.io>2024-12-07 02:08:40 +0000
commitdb9e3681f968c326039d56de478c2f7d3dae3e7e (patch)
treecdae0a7b15e6142a36d8dff376512580d4060149 /compiler/rustc_lint/src/early.rs
parentacabb5248231987ae1f0c215208d1005a5db402d (diff)
downloadrust-db9e3681f968c326039d56de478c2f7d3dae3e7e.tar.gz
rust-db9e3681f968c326039d56de478c2f7d3dae3e7e.zip
Actually walk into lifetimes and attrs in EarlyContextAndPass
Diffstat (limited to 'compiler/rustc_lint/src/early.rs')
-rw-r--r--compiler/rustc_lint/src/early.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/early.rs b/compiler/rustc_lint/src/early.rs
index 4f3184f1d7c..a68a2a7f983 100644
--- a/compiler/rustc_lint/src/early.rs
+++ b/compiler/rustc_lint/src/early.rs
@@ -245,6 +245,7 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T>
 
     fn visit_lifetime(&mut self, lt: &'a ast::Lifetime, _: ast_visit::LifetimeCtxt) {
         self.check_id(lt.id);
+        ast_visit::walk_lifetime(self, lt);
     }
 
     fn visit_path(&mut self, p: &'a ast::Path, id: ast::NodeId) {
@@ -259,6 +260,7 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T>
 
     fn visit_attribute(&mut self, attr: &'a ast::Attribute) {
         lint_callback!(self, check_attribute, attr);
+        ast_visit::walk_attribute(self, attr);
     }
 
     fn visit_mac_def(&mut self, mac: &'a ast::MacroDef, id: ast::NodeId) {