[−][src]Struct rustc_infer::infer::region_constraints::leak_check::LeakCheck
Fields
tcx: TyCtxt<'tcx>universe_at_start_of_snapshot: UniverseIndexoverly_polymorphic: boolmini_graph: &'me MiniGraph<'tcx>rcc: &'me RegionConstraintCollector<'me, 'tcx>scc_placeholders: IndexVec<LeakCheckScc, Option<PlaceholderRegion>>scc_universes: IndexVec<LeakCheckScc, SccUniverse<'tcx>>Implementations
impl<'me, 'tcx> LeakCheck<'me, 'tcx>[src]
pub(in infer::region_constraints::leak_check) fn new(
tcx: TyCtxt<'tcx>,
universe_at_start_of_snapshot: UniverseIndex,
max_universe: UniverseIndex,
overly_polymorphic: bool,
mini_graph: &'me MiniGraph<'tcx>,
rcc: &'me RegionConstraintCollector<'me, 'tcx>
) -> Self[src]
tcx: TyCtxt<'tcx>,
universe_at_start_of_snapshot: UniverseIndex,
max_universe: UniverseIndex,
overly_polymorphic: bool,
mini_graph: &'me MiniGraph<'tcx>,
rcc: &'me RegionConstraintCollector<'me, 'tcx>
) -> Self
pub(in infer::region_constraints::leak_check) fn assign_placeholder_values(
&mut self
) -> RelateResult<'tcx, ()>[src]
&mut self
) -> RelateResult<'tcx, ()>
Compute what placeholders (if any) each SCC must be equal to. Also compute the minimum universe of all the regions in each SCC.
pub(in infer::region_constraints::leak_check) fn assign_scc_value(
&mut self,
scc: LeakCheckScc,
placeholder: PlaceholderRegion
) -> RelateResult<'tcx, ()>[src]
&mut self,
scc: LeakCheckScc,
placeholder: PlaceholderRegion
) -> RelateResult<'tcx, ()>
pub(in infer::region_constraints::leak_check) fn propagate_scc_value(
&mut self
) -> RelateResult<'tcx, ()>[src]
&mut self
) -> RelateResult<'tcx, ()>
For each SCC S, iterate over each successor S1 where S: S1:
- Compute
Iterate over each SCC
Sand ensure that, for eachS1whereS1: S,universe(S) <= universe(S1). This executes afterassign_placeholder_values, souniverse(S)is already the minimum universe of any of its direct constituents.
pub(in infer::region_constraints::leak_check) fn placeholder_error(
&self,
placeholder1: PlaceholderRegion,
placeholder2: PlaceholderRegion
) -> TypeError<'tcx>[src]
&self,
placeholder1: PlaceholderRegion,
placeholder2: PlaceholderRegion
) -> TypeError<'tcx>
pub(in infer::region_constraints::leak_check) fn error(
&self,
placeholder: PlaceholderRegion,
other_region: Region<'tcx>
) -> TypeError<'tcx>[src]
&self,
placeholder: PlaceholderRegion,
other_region: Region<'tcx>
) -> TypeError<'tcx>
Auto Trait Implementations
impl<'me, 'tcx> !RefUnwindSafe for LeakCheck<'me, 'tcx>
impl<'me, 'tcx> !Send for LeakCheck<'me, 'tcx>
impl<'me, 'tcx> !Sync for LeakCheck<'me, 'tcx>
impl<'me, 'tcx> Unpin for LeakCheck<'me, 'tcx> where
'tcx: 'me,
'tcx: 'me,
impl<'me, 'tcx> !UnwindSafe for LeakCheck<'me, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.