struct LeakCheck<'me, 'tcx> {
    tcx: TyCtxt<'tcx>,
    universe_at_start_of_snapshot: UniverseIndex,
    overly_polymorphic: bool,
    mini_graph: &'me MiniGraph<'tcx>,
    rcc: &'me RegionConstraintCollector<'me, 'tcx>,
    scc_placeholders: IndexVec<LeakCheckScc, Option<PlaceholderRegion>>,
    scc_universes: IndexVec<LeakCheckScc, SccUniverse<'tcx>>,
}

Fields

tcx: TyCtxt<'tcx>universe_at_start_of_snapshot: UniverseIndexoverly_polymorphic: bool

Only used when reporting region errors.

mini_graph: &'me MiniGraph<'tcx>rcc: &'me RegionConstraintCollector<'me, 'tcx>scc_placeholders: IndexVec<LeakCheckScc, Option<PlaceholderRegion>>scc_universes: IndexVec<LeakCheckScc, SccUniverse<'tcx>>

Implementations

Compute what placeholders (if any) each SCC must be equal to. Also compute the minimum universe of all the regions in each SCC.

For each SCC S, iterate over each successor S1 where S: S1:

  • Compute Iterate over each SCC S and ensure that, for each S1 where S1: S, universe(S) <= universe(S1). This executes after assign_placeholder_values, so universe(S) is already the minimum universe of any of its direct constituents.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 80 bytes