We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RegionConstraintCollector::vars_since_snapshot
1 parent 92b2021 commit 2a08860Copy full SHA for 2a08860
src/librustc/infer/region_constraints/mod.rs
@@ -841,12 +841,7 @@ impl<'tcx> RegionConstraintCollector<'tcx> {
841
}
842
843
pub fn vars_since_snapshot(&self, mark: &RegionSnapshot) -> Vec<RegionVid> {
844
- self.undo_log[mark.length..]
845
- .iter()
846
- .filter_map(|&elt| match elt {
847
- AddVar(vid) => Some(vid),
848
- _ => None,
849
- }).collect()
+ self.unification_table.vars_since_snapshot(&mark.region_snapshot).collect()
850
851
852
/// See [`RegionInference::region_constraints_added_in_snapshot`].
0 commit comments