Module rustc::middle::infer [−] [src]

Unstable

See the Book for more information.

Reexports

pub use self::LateBoundRegionConversionTime::*;
pub use self::RegionVariableOrigin::*;
pub use self::SubregionOrigin::*;
pub use self::TypeOrigin::*;
pub use self::ValuePairs::*;
pub use self::fixup_err::*;
pub use middle::ty::IntVarValue;
pub use self::region_inference::GenericKind;

Modules

bivariate [Unstable]

Applies the "bivariance relationship" to two types and/or regions. If (A,B) are bivariant then either A <: B or B <: A. It occurs when type/lifetime parameters are unconstrained. Usually this is an error, but we permit it in the specific case where a type parameter is constrained in a where-clause via an associated type.

combine [Unstable]
equate [Unstable]
error_reporting [Unstable]

Error Reporting Code for the inference engine

glb [Unstable]
lattice [Unstable]

Lattice Variables

lub [Unstable]
region_inference [Unstable]

See README.md

resolve [Unstable]
sub [Unstable]
type_variable [Unstable]
unify_key [Unstable]

Structs

CombinedSnapshot [Unstable]
InferCtxt [Unstable]
TypeFreshener [Unstable]
TypeTrace [Unstable]

The trace designates the path through inference that we took to encounter an error or subtyping constraint.

Enums

LateBoundRegionConversionTime [Unstable]

Times when we replace late-bound regions with variables:

RegionVariableOrigin [Unstable]

Reasons to create a region inference variable

SubregionOrigin [Unstable]

The origin of a r1 <= r2 constraint.

TypeOrigin [Unstable]

Why did we require that the two types be related?

ValuePairs [Unstable]

See error_reporting.rs for more details

fixup_err [Unstable]

Functions

can_mk_eqty [Unstable]
can_mk_subty [Unstable]
common_supertype [Unstable]

Computes the least upper-bound of a and b. If this is not possible, reports an error and returns ty::err.

fixup_err_to_string [Unstable]
mk_eqty [Unstable]
mk_sub_poly_trait_refs [Unstable]
mk_subr [Unstable]
mk_subty [Unstable]
new_infer_ctxt [Unstable]

Type Definitions

Bound [Unstable]
SkolemizationMap [Unstable]

A map returned by skolemize_late_bound_regions() indicating the skolemized region that each late-bound region was replaced with.

UnitResult [Unstable]
fres [Unstable]