Skip to content

Commit d2772e8

Browse files
committed
explain why the code is the way it is
1 parent 56ae0bf commit d2772e8

File tree

1 file changed

+2
-0
lines changed
  • src/librustc/infer/lexical_region_resolve

1 file changed

+2
-0
lines changed

src/librustc/infer/lexical_region_resolve/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
204204
graph: &RegionGraph<'tcx>,
205205
var_values: &mut LexicalRegionResolutions<'tcx>,
206206
) -> bool {
207+
// Note: we don't use the `any` combinator because we don't
208+
// want to stop at the first constraint that makes a change.
207209
let mut any_changed = false;
208210
for member_constraint in &self.data.member_constraints {
209211
if self.enforce_member_constraint(graph, member_constraint, var_values) {

0 commit comments

Comments
 (0)