about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/early.rs
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2025-05-23 16:50:24 +0800
committerDeadbeef <ent3rm4n@gmail.com>2025-05-23 22:08:12 +0800
commit898b6a13f1bdbeb5adbf45875fac01cec09d09a4 (patch)
tree4ac6d79fcae34b34c012d24caa25cadddd267ba0 /compiler/rustc_lint/src/early.rs
parent52bf0cf795dfecc8b929ebb1c1e2545c3f41d4c9 (diff)
downloadrust-898b6a13f1bdbeb5adbf45875fac01cec09d09a4.tar.gz
rust-898b6a13f1bdbeb5adbf45875fac01cec09d09a4.zip
further deduplicate ast visitor code
Diffstat (limited to 'compiler/rustc_lint/src/early.rs')
-rw-r--r--compiler/rustc_lint/src/early.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/early.rs b/compiler/rustc_lint/src/early.rs
index f9601fa5ef1..2aeff4e66d5 100644
--- a/compiler/rustc_lint/src/early.rs
+++ b/compiler/rustc_lint/src/early.rs
@@ -277,7 +277,7 @@ impl<'ast, 'ecx, 'tcx, T: EarlyLintPass> ast_visit::Visitor<'ast>
         ast_visit::walk_attribute(self, attr);
     }
 
-    fn visit_mac_def(&mut self, mac: &'ast ast::MacroDef, id: ast::NodeId) {
+    fn visit_macro_def(&mut self, mac: &'ast ast::MacroDef, id: ast::NodeId) {
         lint_callback!(self, check_mac_def, mac);
         self.check_id(id);
     }