Skip to content

Commit

Permalink
Auto merge of #28506 - Manishearth:no_mac, r=eddyb
Browse files Browse the repository at this point in the history
It's not being called or used, and `Mac`s don't exist at either lint phase.
  • Loading branch information
bors committed Sep 20, 2015
2 parents 50048c0 + 19d41ef commit 23b1e48
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustc/lint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ pub trait LateLintPass: LintPass {
fn check_lifetime_ref(&mut self, _: &LateContext, _: &hir::Lifetime) { }
fn check_lifetime_def(&mut self, _: &LateContext, _: &hir::LifetimeDef) { }
fn check_explicit_self(&mut self, _: &LateContext, _: &hir::ExplicitSelf) { }
// Note that you shouldn't implement both check_mac and check_ast_mac,
// because then your lint will be called twice. Prefer check_ast_mac.
fn check_mac(&mut self, _: &LateContext, _: &ast::Mac) { }
fn check_path(&mut self, _: &LateContext, _: &hir::Path, _: ast::NodeId) { }
fn check_attribute(&mut self, _: &LateContext, _: &ast::Attribute) { }

Expand Down Expand Up @@ -209,7 +206,6 @@ pub trait EarlyLintPass: LintPass {
fn check_lifetime_ref(&mut self, _: &EarlyContext, _: &ast::Lifetime) { }
fn check_lifetime_def(&mut self, _: &EarlyContext, _: &ast::LifetimeDef) { }
fn check_explicit_self(&mut self, _: &EarlyContext, _: &ast::ExplicitSelf) { }
fn check_mac(&mut self, _: &EarlyContext, _: &ast::Mac) { }
fn check_path(&mut self, _: &EarlyContext, _: &ast::Path, _: ast::NodeId) { }
fn check_attribute(&mut self, _: &EarlyContext, _: &ast::Attribute) { }

Expand Down

0 comments on commit 23b1e48

Please sign in to comment.