We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 909d0e8 commit c6e4284Copy full SHA for c6e4284
compiler/rustc_infer/src/infer/region_constraints/mod.rs
@@ -623,10 +623,14 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
623
}
624
625
626
+ /// Resolves the passed RegionVid to the root RegionVid in the unification table
627
pub fn opportunistic_resolve_var(&mut self, rid: ty::RegionVid) -> ty::RegionVid {
628
self.unification_table().find(rid).vid
629
630
631
+ /// If the Region is a `ReVar`, then resolves it either to the root value in
632
+ /// the unification table, if it exists, or to the root `ReVar` in the table.
633
+ /// If the Region is not a `ReVar`, just returns the Region itself.
634
pub fn opportunistic_resolve_region(
635
&mut self,
636
tcx: TyCtxt<'tcx>,
0 commit comments