Skip to content

Commit 1979144

Browse files
flip1995daxpedda
andauthored
Fix macro detection in empty_loop.
Co-Authored-By: daxpedda <1645124+daxpedda@users.noreply.github.com>
1 parent a77bcad commit 1979144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/loops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ impl LintPass for Pass {
479479
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
480480
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
481481
// we don't want to check expanded macros
482-
if !in_macro(expr.span) {
482+
if in_macro(expr.span) {
483483
return;
484484
}
485485

0 commit comments

Comments
 (0)