File tree 2 files changed +4
-3
lines changed
compiler/rustc_borrowck/src
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ impl<'tcx> OutlivesConstraintSet<'tcx> {
101
101
/// eventually go away.
102
102
///
103
103
/// For a more precise definition, see the documentation for
104
- /// [`RegionTracker::has_incompatible_universes()`] .
104
+ /// [`RegionTracker`] and its methods! .
105
105
///
106
106
/// This edge case used to be handled during constraint propagation
107
107
/// by iterating over the strongly connected components in the constraint
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ use crate::member_constraints::{MemberConstraintSet, NllMemberConstraintIndex};
34
34
use crate :: nll:: PoloniusOutput ;
35
35
use crate :: region_infer:: reverse_sccs:: ReverseSccGraph ;
36
36
use crate :: region_infer:: values:: { LivenessValues , RegionElement , RegionValues , ToElementIndex } ;
37
- use crate :: type_check:: free_region_relations:: UniversalRegionRelations ;
38
37
use crate :: type_check:: Locations ;
39
38
use crate :: type_check:: free_region_relations:: UniversalRegionRelations ;
40
39
use crate :: universal_regions:: UniversalRegions ;
@@ -2215,7 +2214,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
2215
2214
}
2216
2215
2217
2216
/// Returns the representative `RegionVid` for a given SCC.
2218
- /// See `RegionTracker` for how a region variable ID is chosen.
2217
+ /// See [ `RegionTracker`] for how a region variable ID is chosen.
2219
2218
///
2220
2219
/// It is a hacky way to manage checking regions for equality,
2221
2220
/// since we can 'canonicalize' each region to the representative
@@ -2231,6 +2230,8 @@ impl<'tcx> RegionInferenceContext<'tcx> {
2231
2230
r == self . universal_regions . fr_static
2232
2231
}
2233
2232
2233
+ /// If the representative of an SCC is a placeholder, return
2234
+ /// its originating `PlaceholderRegion`.
2234
2235
pub ( crate ) fn placeholder_representative (
2235
2236
& self ,
2236
2237
scc : ConstraintSccIndex ,
You can’t perform that action at this time.
0 commit comments