Skip to content

Commit 23b1e48

Browse files
committed
Auto merge of #28506 - Manishearth:no_mac, r=eddyb
It's not being called or used, and `Mac`s don't exist at either lint phase.
2 parents 50048c0 + 19d41ef commit 23b1e48

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc/lint/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ pub trait LateLintPass: LintPass {
161161
fn check_lifetime_ref(&mut self, _: &LateContext, _: &hir::Lifetime) { }
162162
fn check_lifetime_def(&mut self, _: &LateContext, _: &hir::LifetimeDef) { }
163163
fn check_explicit_self(&mut self, _: &LateContext, _: &hir::ExplicitSelf) { }
164-
// Note that you shouldn't implement both check_mac and check_ast_mac,
165-
// because then your lint will be called twice. Prefer check_ast_mac.
166-
fn check_mac(&mut self, _: &LateContext, _: &ast::Mac) { }
167164
fn check_path(&mut self, _: &LateContext, _: &hir::Path, _: ast::NodeId) { }
168165
fn check_attribute(&mut self, _: &LateContext, _: &ast::Attribute) { }
169166

@@ -209,7 +206,6 @@ pub trait EarlyLintPass: LintPass {
209206
fn check_lifetime_ref(&mut self, _: &EarlyContext, _: &ast::Lifetime) { }
210207
fn check_lifetime_def(&mut self, _: &EarlyContext, _: &ast::LifetimeDef) { }
211208
fn check_explicit_self(&mut self, _: &EarlyContext, _: &ast::ExplicitSelf) { }
212-
fn check_mac(&mut self, _: &EarlyContext, _: &ast::Mac) { }
213209
fn check_path(&mut self, _: &EarlyContext, _: &ast::Path, _: ast::NodeId) { }
214210
fn check_attribute(&mut self, _: &EarlyContext, _: &ast::Attribute) { }
215211

0 commit comments

Comments
 (0)