Module rustc::middle::typeck::inferExperimental [-]  [+] [src]

See doc.rs for documentation

Reexports

pub use middle::ty::IntVarValue;
pub use self::resolve::resolve_and_force_all_but_regions;
pub use self::resolve::{force_all, not_regions};
pub use self::resolve::{force_ivar};
pub use self::resolve::{force_tvar, force_rvar};
pub use self::resolve::{resolve_ivar, resolve_all};
pub use self::resolve::{resolve_nested_tvar};
pub use self::resolve::{resolve_rvar};

Modules

coercion

Type Coercion

combine
doc

Type inference engine

equate
error_reporting

Error Reporting Code for the inference engine

glb
lattice

Lattice Variables

lub
region_inference

See doc.rs

resolve
sub
test

Standalone Tests for the Inference Module

type_variable
unify

Structs

CombinedSnapshot
InferCtxt
TypeSkolemizer
TypeTrace

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

Enums

RegionVariableOrigin

Reasons to create a region inference variable

SubregionOrigin

The origin of a r1 <= r2 constraint.

TypeOrigin

Why did we require that the two types be related?

ValuePairs

See error_reporting.rs for more details

fixup_err

Functions

can_mk_eqty
can_mk_subty
common_supertype

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
fold_regions_in_sig
mk_coercety
mk_eqty
mk_sub_trait_refs
mk_subr
mk_subty
new_infer_ctxt
resolve_region
resolve_type
uok
verify_param_bound

Type Definitions

Bound
CoerceResult
cres
fres
ures