Skip to content

Commit 37ef0c3

Browse files
committed
Fix visit_ex_clause_with
The sub-visits were incorrectly combined with an `&&` instead of an `||`.
1 parent 50f8ae3 commit 37ef0c3

File tree

1 file changed

+3
-3
lines changed
  • src/librustc_traits/chalk_context

1 file changed

+3
-3
lines changed

src/librustc_traits/chalk_context/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ impl ExClauseFold<'tcx> for ChalkArenas<'tcx> {
547547
subgoals,
548548
} = ex_clause;
549549
subst.visit_with(visitor)
550-
&& delayed_literals.visit_with(visitor)
551-
&& constraints.visit_with(visitor)
552-
&& subgoals.visit_with(visitor)
550+
|| delayed_literals.visit_with(visitor)
551+
|| constraints.visit_with(visitor)
552+
|| subgoals.visit_with(visitor)
553553
}
554554
}
555555

0 commit comments

Comments
 (0)