flux_middle::rty::region_matching

Function replace_regions_with_unique_vars

Source
fn replace_regions_with_unique_vars(ty: &Ty) -> Ty
Expand description

Replace all non-bound regions with a rty::ReVar assigning each a unique rty::RegionVid. This is used to have a unique identifier for each position such that we can infer a region substitution.