Skip to content

Commit da9ccef

Browse files
committed
Fix documentation that build-failed
1 parent f6a37a1 commit da9ccef

File tree

2 files changed

+4
-2
lines changed
  • compiler/rustc_borrowck/src

2 files changed

+4
-2
lines changed

Diff for: compiler/rustc_borrowck/src/constraints/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<'tcx> OutlivesConstraintSet<'tcx> {
100100
/// eventually go away.
101101
///
102102
/// For a more precise definition, see the documentation for
103-
/// [`RegionTracker::has_incompatible_universes()`].
103+
/// [`RegionTracker`] and its methods!.
104104
///
105105
/// This edge case used to be handled during constraint propagation
106106
/// by iterating over the strongly connected components in the constraint

Diff for: compiler/rustc_borrowck/src/region_infer/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
22132213
}
22142214

22152215
/// Returns the representative `RegionVid` for a given SCC.
2216-
/// See `RegionTracker` for how a region variable ID is chosen.
2216+
/// See [`RegionTracker`] for how a region variable ID is chosen.
22172217
///
22182218
/// It is a hacky way to manage checking regions for equality,
22192219
/// since we can 'canonicalize' each region to the representative
@@ -2229,6 +2229,8 @@ impl<'tcx> RegionInferenceContext<'tcx> {
22292229
r == self.universal_regions.fr_static
22302230
}
22312231

2232+
/// If the representative of an SCC is a placeholder, return
2233+
/// its originating `PlaceholderRegion`.
22322234
pub(crate) fn placeholder_representative(
22332235
&self,
22342236
scc: ConstraintSccIndex,

0 commit comments

Comments
 (0)