Struct rustc::ty::CratePredicatesMap[][src]

pub struct CratePredicatesMap<'tcx> {
    pub predicates: FxHashMap<DefId, Lrc<Vec<Predicate<'tcx>>>>,
    pub empty_predicate: Lrc<Vec<Predicate<'tcx>>>,
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

The crate outlives map is computed during typeck and contains the outlives of every item in the local crate. You should not use it directly, because to do so will make your pass dependent on the HIR of every item in the local crate. Instead, use tcx.inferred_outlives_of() to get the outlives for a particular item.

Fields

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

For each struct with outlive bounds, maps to a vector of the predicate of its outlive bounds. If an item has no outlives bounds, it will have no entry.

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

An empty vector, useful for cloning.

Trait Implementations

impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for CratePredicatesMap<'tcx>
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Auto Trait Implementations

impl<'tcx> !Send for CratePredicatesMap<'tcx>

impl<'tcx> !Sync for CratePredicatesMap<'tcx>