explain why the code is the way it is
This commit is contained in:
parent
56ae0bfc79
commit
d2772e8989
1 changed files with 2 additions and 0 deletions
|
|
@ -204,6 +204,8 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
|
|||
graph: &RegionGraph<'tcx>,
|
||||
var_values: &mut LexicalRegionResolutions<'tcx>,
|
||||
) -> bool {
|
||||
// Note: we don't use the `any` combinator because we don't
|
||||
// want to stop at the first constraint that makes a change.
|
||||
let mut any_changed = false;
|
||||
for member_constraint in &self.data.member_constraints {
|
||||
if self.enforce_member_constraint(graph, member_constraint, var_values) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue