about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-20 02:00:04 +0000
committerbors <bors@rust-lang.org>2015-09-20 02:00:04 +0000
commit23b1e4807e9d4db14c7a7d09f12daa52e4bfafcf (patch)
tree8572ae0aada3323c537f85cef8738f6a48eada6c
parent50048c00b9cfedb0c1f5939f47adc51fab608ad7 (diff)
parent19d41ef6a8eaa82cc55b84678d75637038d27883 (diff)
downloadrust-23b1e4807e9d4db14c7a7d09f12daa52e4bfafcf.tar.gz
rust-23b1e4807e9d4db14c7a7d09f12daa52e4bfafcf.zip
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.
-rw-r--r--src/librustc/lint/mod.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/librustc/lint/mod.rs b/src/librustc/lint/mod.rs
index e52b6e91f68..7a5b5aa1da0 100644
--- a/src/librustc/lint/mod.rs
+++ b/src/librustc/lint/mod.rs
@@ -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) { }
 
@@ -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) { }