Skip to main content

Module region_constraints

Module region_constraints 

Source
Expand description

See README.md.

Re-exportsΒ§

use std::ops::Range; πŸ”’
use std::cmp; πŸ”’
use std::fmt; πŸ”’
use std::iter; πŸ”’
use std::mem; πŸ”’
use rustc_data_structures::fx::FxHashMap; πŸ”’
use rustc_data_structures::undo_log::UndoLogs; πŸ”’
use rustc_data_structures::unify as ut; πŸ”’
use rustc_index::IndexVec; πŸ”’
use rustc_macros::TypeFoldable; πŸ”’
use rustc_macros::TypeVisitable; πŸ”’
use rustc_middle::ty; πŸ”’
use rustc_middle::ty::ReBound; πŸ”’
use rustc_middle::ty::ReStatic; πŸ”’
use rustc_middle::ty::ReVar; πŸ”’
use rustc_middle::ty::Region; πŸ”’
use rustc_middle::ty::RegionVid; πŸ”’
use rustc_middle::ty::Ty; πŸ”’
use rustc_middle::ty::TyCtxt; πŸ”’
use rustc_span::Span; πŸ”’
use rustc_span::bug; πŸ”’
use rustc_span::span_bug; πŸ”’
use rustc_type_ir::TypeVisitableExt; πŸ”’
use tracing::debug; πŸ”’
use tracing::instrument; πŸ”’
use tracing::instrument; πŸ”’
use super::RegionVariableOrigin; πŸ”’
use super::Rollback; πŸ”’
use super::SubregionOrigin; πŸ”’
use crate::infer::snapshot::undo_log::InferCtxtUndoLogs; πŸ”’
use crate::infer::snapshot::undo_log::Snapshot; πŸ”’
use crate::infer::unify_key::RegionVariableValue; πŸ”’
use crate::infer::unify_key::RegionVidKey; πŸ”’
use self::CombineMapType::*; πŸ”’
use self::UndoLog::*; πŸ”’

ModulesΒ§

leak_check πŸ”’

StructsΒ§

Constraint
Represents a constraint that influences the inference process.
RegionConstraintCollector
RegionConstraintData
The full set of region constraints gathered up by the collector. Describes constraints between the region variables and other regions, as well as other conditions that must be verified, or assumptions that can be made.
RegionConstraintStorage
RegionSnapshot πŸ”’
RegionVariableInfo
SolverRegionConstraintData
TwoRegions πŸ”’
Verify
VerifyIfEq
This is a β€œconditional bound” that checks the result of inference and supplies a bound if it ended up being relevant. It’s used in situations like this:

EnumsΒ§

CombineMapType πŸ”’
ConstraintKind
Represents a constraint that influences the inference process.
GenericKind
UndoLog πŸ”’
VerifyBound
Describes the things that some GenericKind value G is known to outlive. Each variant of VerifyBound can be thought of as a function:

Type AliasesΒ§

CombineMap πŸ”’
SolverRegionConstraint
VarInfos