Skip to content

Commit

Permalink
Fix documentation that build-failed
Browse files Browse the repository at this point in the history
  • Loading branch information
amandasystems committed Sep 27, 2024
1 parent 2d424cb commit 4633c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_borrowck/src/constraints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl<'tcx> OutlivesConstraintSet<'tcx> {
/// eventually go away.
///
/// For a more precise definition, see the documentation for
/// [`RegionTracker::has_incompatible_universes()`].
/// [`RegionTracker`] and its methods!.
///
/// This edge case used to be handled during constraint propagation
/// by iterating over the strongly connected components in the constraint
Expand Down
5 changes: 3 additions & 2 deletions compiler/rustc_borrowck/src/region_infer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ use crate::member_constraints::{MemberConstraintSet, NllMemberConstraintIndex};
use crate::nll::PoloniusOutput;
use crate::region_infer::reverse_sccs::ReverseSccGraph;
use crate::region_infer::values::{LivenessValues, RegionElement, RegionValues, ToElementIndex};
use crate::type_check::free_region_relations::UniversalRegionRelations;
use crate::type_check::Locations;
use crate::type_check::free_region_relations::UniversalRegionRelations;
use crate::universal_regions::UniversalRegions;
Expand Down Expand Up @@ -2215,7 +2214,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
}

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

/// If the representative of an SCC is a placeholder, return
/// its originating `PlaceholderRegion`.
pub(crate) fn placeholder_representative(
&self,
scc: ConstraintSccIndex,
Expand Down

0 comments on commit 4633c56

Please sign in to comment.