Re-exportsΒ§
use std::debug_assert_matches;πuse rustc_data_structures::fx::FxIndexSet;πuse rustc_hir::def::DefKind;πuse rustc_hir::def_id::DefId;πuse rustc_hir::def_id::LocalDefId;πuse rustc_index::bit_set::DenseBitSet;πuse rustc_infer::infer::SubregionOrigin;πuse rustc_infer::infer::TypeOutlivesConstraint;πuse rustc_middle::ty;πuse rustc_middle::ty::CallerBoundsIterator;πuse rustc_middle::ty::Flags;πuse rustc_middle::ty::ImplTraitInTraitData;πuse rustc_middle::ty::Ty;πuse rustc_middle::ty::TyCtxt;πuse rustc_middle::ty::TypeSuperVisitable;πuse rustc_middle::ty::TypeVisitable;πuse rustc_middle::ty::TypeVisitableExt;πuse rustc_middle::ty::TypeVisitor;πuse rustc_span::DUMMY_SP;πuse rustc_span::bug;πuse crate::infer::outlives::test_type_match;πuse crate::infer::region_constraints::VerifyIfEq;πuse crate::regions::region_known_to_outlive;πuse crate::regions::test_region_obligations;π
StructsΒ§
- Free
Regions Visitor - Visits free regions in the type that are relevant for liveness computation.
These regions are passed to
OP.
FunctionsΒ§
- args_
known_ πto_ outlive_ alias_ params - For each region param of this alias compute the indices of the identity args that are known to outlive it, given only the aliasβs declared where-clauses.
- args_
known_ πto_ outlive_ non_ opaque_ params - args_
known_ πto_ outlive_ opaque_ params - For each captured region of this alias, compute the captured identity args that are known to outlive it, given the definition of the opaque type in the the parent context.
- live_
args_ πfor_ alias_ from_ outlives_ bounds - For a given alias type, this returns the set of indices into the identity generic args that are relevant for liveness, that can be inferred from outlives bounds on the alias itself, and the explicit and implicit outlives clauses of the alias. Callers should use the indices with the concrete args of the alias.
- live_
args_ πfor_ outlives_ clause - For a param-env clause
for<'v..> <T as Trait>::Assoc<..>: 'boundthat applies toty(an alias withalias_def_id), returns the set of indices into the identity args that the underlying type could possibly capture, as restricted by this clause. - param_
known_ πto_ outlive - Given a known
param_envand a set of well formed types, can we prove thattyoutlivesregion.