Skip to content

Commit 45f1adc

Browse files
committed
Fix documentation that build-failed
1 parent 58d6e9e commit 45f1adc

File tree

2 files changed

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

2 files changed

+4
-3
lines changed

compiler/rustc_borrowck/src/constraints/mod.rs

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

compiler/rustc_borrowck/src/region_infer/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use crate::member_constraints::{MemberConstraintSet, NllMemberConstraintIndex};
3434
use crate::nll::PoloniusOutput;
3535
use crate::region_infer::reverse_sccs::ReverseSccGraph;
3636
use crate::region_infer::values::{LivenessValues, RegionElement, RegionValues, ToElementIndex};
37-
use crate::type_check::free_region_relations::UniversalRegionRelations;
3837
use crate::type_check::Locations;
3938
use crate::type_check::free_region_relations::UniversalRegionRelations;
4039
use crate::universal_regions::UniversalRegions;
@@ -2217,7 +2216,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
22172216
}
22182217

22192218
/// Returns the representative `RegionVid` for a given SCC.
2220-
/// See `RegionTracker` for how a region variable ID is chosen.
2219+
/// See [`RegionTracker`] for how a region variable ID is chosen.
22212220
///
22222221
/// It is a hacky way to manage checking regions for equality,
22232222
/// since we can 'canonicalize' each region to the representative
@@ -2233,6 +2232,8 @@ impl<'tcx> RegionInferenceContext<'tcx> {
22332232
r == self.universal_regions.fr_static
22342233
}
22352234

2235+
/// If the representative of an SCC is a placeholder, return
2236+
/// its originating `PlaceholderRegion`.
22362237
pub(crate) fn placeholder_representative(
22372238
&self,
22382239
scc: ConstraintSccIndex,

0 commit comments

Comments
 (0)