Skip to content

Commit

Permalink
Fix visit_ex_clause_with
Browse files Browse the repository at this point in the history
The sub-visits were incorrectly combined with an `&&` instead of
an `||`.
  • Loading branch information
scalexm committed Dec 27, 2018
1 parent 50f8ae3 commit 37ef0c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_traits/chalk_context/mod.rs
Expand Up @@ -547,9 +547,9 @@ impl ExClauseFold<'tcx> for ChalkArenas<'tcx> {
subgoals,
} = ex_clause;
subst.visit_with(visitor)
&& delayed_literals.visit_with(visitor)
&& constraints.visit_with(visitor)
&& subgoals.visit_with(visitor)
|| delayed_literals.visit_with(visitor)
|| constraints.visit_with(visitor)
|| subgoals.visit_with(visitor)
}
}

Expand Down

0 comments on commit 37ef0c3

Please sign in to comment.