diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2025-05-23 16:50:24 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2025-05-23 22:08:12 +0800 |
| commit | 898b6a13f1bdbeb5adbf45875fac01cec09d09a4 (patch) | |
| tree | 4ac6d79fcae34b34c012d24caa25cadddd267ba0 /compiler/rustc_lint/src/early.rs | |
| parent | 52bf0cf795dfecc8b929ebb1c1e2545c3f41d4c9 (diff) | |
| download | rust-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.rs | 2 |
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); } |
