Remove unused argument from check_mac_def
.
This commit is contained in:
parent
7e3fd33a66
commit
b8ed1c5745
3 changed files with 3 additions and 3 deletions
|
@ -2000,7 +2000,7 @@ impl KeywordIdents {
|
|||
}
|
||||
|
||||
impl EarlyLintPass for KeywordIdents {
|
||||
fn check_mac_def(&mut self, cx: &EarlyContext<'_>, mac_def: &ast::MacroDef, _id: ast::NodeId) {
|
||||
fn check_mac_def(&mut self, cx: &EarlyContext<'_>, mac_def: &ast::MacroDef) {
|
||||
self.check_tokens(cx, mac_def.body.inner_tokens());
|
||||
}
|
||||
fn check_mac(&mut self, cx: &EarlyContext<'_>, mac: &ast::MacCall) {
|
||||
|
|
|
@ -276,7 +276,7 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T>
|
|||
}
|
||||
|
||||
fn visit_mac_def(&mut self, mac: &'a ast::MacroDef, id: ast::NodeId) {
|
||||
run_early_pass!(self, check_mac_def, mac, id);
|
||||
run_early_pass!(self, check_mac_def, mac);
|
||||
self.check_id(id);
|
||||
}
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ macro_rules! early_lint_methods {
|
|||
fn check_impl_item(a: &ast::AssocItem);
|
||||
fn check_variant(a: &ast::Variant);
|
||||
fn check_attribute(a: &ast::Attribute);
|
||||
fn check_mac_def(a: &ast::MacroDef, b: ast::NodeId);
|
||||
fn check_mac_def(a: &ast::MacroDef);
|
||||
fn check_mac(a: &ast::MacCall);
|
||||
|
||||
/// Called when entering a syntax node that can have lint attributes such
|
||||
|
|
Loading…
Add table
Reference in a new issue