about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-05-27 01:29:19 +0800
committerGitHub <noreply@github.com>2025-05-27 01:29:19 +0800
commitbe778ed1f83286c5a52278647bb14077f65ff71a (patch)
tree1ae841564ccf992b6d339688a0d244cb1c6d5204 /compiler/rustc_lint/src
parent92b07de1ca460f81da7d8dabbf089256b1f4dbce (diff)
parent898b6a13f1bdbeb5adbf45875fac01cec09d09a4 (diff)
downloadrust-be778ed1f83286c5a52278647bb14077f65ff71a.tar.gz
rust-be778ed1f83286c5a52278647bb14077f65ff71a.zip
Rollup merge of #141449 - fee1-dead-contrib:push-qkosmtkqztkk, r=oli-obk
further deduplicate ast visitor code

Previous PR: #141249

Tracking issue: #127615

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_lint/src')
-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);
     }