Forbid redundant_pattern_matching triggering in macros
- remove ice-2636 test
This commit is contained in:
parent
78fbb04edb
commit
d4f158fa5c
6 changed files with 37 additions and 52 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue