Skip to content
Permalink
Browse files

explain why the code is the way it is

  • Loading branch information...
nikomatsakis committed Jun 24, 2019
1 parent 56ae0bf commit d2772e89899071bfb830d949ab53022b758cdf06
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/librustc/infer/lexical_region_resolve/mod.rs
@@ -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) {

0 comments on commit d2772e8

Please sign in to comment.
You can’t perform that action at this time.