Forbid redundant_pattern_matching triggering in macros

- remove ice-2636 test
This commit is contained in:
Aleksei Latyshev 2020-09-20 12:38:23 +03:00
parent 78fbb04edb
commit d4f158fa5c
No known key found for this signature in database
GPG key ID: 46FDD62F9CC114DB
6 changed files with 37 additions and 52 deletions

View file

@ -502,7 +502,7 @@ impl_lint_pass!(Matches => [
impl<'tcx> LateLintPass<'tcx> for Matches {
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
if in_external_macro(cx.sess(), expr.span) {
if in_external_macro(cx.sess(), expr.span) || in_macro(expr.span) {
return;
}