Skip to content

Commit b8ed1c5

Browse files
committed
Remove unused argument from check_mac_def.
1 parent 7e3fd33 commit b8ed1c5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_lint/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ impl KeywordIdents {
20002000
}
20012001

20022002
impl EarlyLintPass for KeywordIdents {
2003-
fn check_mac_def(&mut self, cx: &EarlyContext<'_>, mac_def: &ast::MacroDef, _id: ast::NodeId) {
2003+
fn check_mac_def(&mut self, cx: &EarlyContext<'_>, mac_def: &ast::MacroDef) {
20042004
self.check_tokens(cx, mac_def.body.inner_tokens());
20052005
}
20062006
fn check_mac(&mut self, cx: &EarlyContext<'_>, mac: &ast::MacCall) {

compiler/rustc_lint/src/early.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T>
276276
}
277277

278278
fn visit_mac_def(&mut self, mac: &'a ast::MacroDef, id: ast::NodeId) {
279-
run_early_pass!(self, check_mac_def, mac, id);
279+
run_early_pass!(self, check_mac_def, mac);
280280
self.check_id(id);
281281
}
282282

compiler/rustc_lint/src/passes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ macro_rules! early_lint_methods {
162162
fn check_impl_item(a: &ast::AssocItem);
163163
fn check_variant(a: &ast::Variant);
164164
fn check_attribute(a: &ast::Attribute);
165-
fn check_mac_def(a: &ast::MacroDef, b: ast::NodeId);
165+
fn check_mac_def(a: &ast::MacroDef);
166166
fn check_mac(a: &ast::MacCall);
167167

168168
/// Called when entering a syntax node that can have lint attributes such

0 commit comments

Comments
 (0)