There was an error while loading. Please reload this page.
1 parent 9b7df05 commit 84075baCopy full SHA for 84075ba
1 file changed
compiler/rustc_infer/src/infer/region_constraints/mod.rs
@@ -677,11 +677,10 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
677
tcx: TyCtxt<'tcx>,
678
vid: ty::RegionVid,
679
) -> ty::Region<'tcx> {
680
- let mut ut = self.unification_table_mut();
681
- let root_vid = ut.find(vid).vid;
682
- match ut.probe_value(root_vid) {
+ let (root_vid, value) = self.unification_table_mut().inlined_probe_key_value(vid);
+ match value {
683
RegionVariableValue::Known { value } => value,
684
- RegionVariableValue::Unknown { .. } => ty::Region::new_var(tcx, root_vid),
+ RegionVariableValue::Unknown { .. } => ty::Region::new_var(tcx, root_vid.vid),
685
}
686
687
0 commit comments