Skip to content
Permalink
Browse files

Simplify `RegionConstraintCollector::vars_since_snapshot`

  • Loading branch information...
varkor committed Mar 20, 2019
1 parent 92b2021 commit 2a08860ae6ec94eccbe7b2b73fbe9d0c175196d4
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/librustc/infer/region_constraints/mod.rs
@@ -841,12 +841,7 @@ impl<'tcx> RegionConstraintCollector<'tcx> {
}

pub fn vars_since_snapshot(&self, mark: &RegionSnapshot) -> Vec<RegionVid> {
self.undo_log[mark.length..]
.iter()
.filter_map(|&elt| match elt {
AddVar(vid) => Some(vid),
_ => None,
}).collect()
self.unification_table.vars_since_snapshot(&mark.region_snapshot).collect()
}

/// See [`RegionInference::region_constraints_added_in_snapshot`].

0 comments on commit 2a08860

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