Don't trigger some lints inside macros

This commit is contained in:
Oliver Schneider 2017-05-09 17:15:13 +02:00
parent d2dab198fa
commit a67774530f

View file

@ -267,6 +267,9 @@ impl EarlyLintPass for MiscEarly {
}
fn check_expr(&mut self, cx: &EarlyContext, expr: &Expr) {
if in_external_macro(cx, expr.span) {
return;
}
match expr.node {
ExprKind::Call(ref paren, _) => {
if let ExprKind::Paren(ref closure) = paren.node {