[−][src]Module rustc_infer::infer
Re-exports
pub use self::LateBoundRegionConversionTime::*; |
pub use self::RegionVariableOrigin::*; |
pub use self::SubregionOrigin::*; |
pub use self::ValuePairs::*; |
Modules
| at | A nice interface for working with the infcx. The basic idea is to
do |
| canonical | Canonicalization is the key to constructing a query in the
middle of type inference. Ordinarily, it is not possible to store
types from type inference in query keys, because they contain
references to inference variables whose lifetimes are too short
and so forth. Canonicalizing a value T1 using |
| combine | |
| equate | |
| error_reporting | Error Reporting Code for the inference engine |
| free_regions | This module handles the relationships between "free regions", i.e., lifetime parameters.
Ordinarily, free regions are unrelated to one another, but they can be related via implied
or explicit bounds. In that case, we track the bounds using the |
| freshen | Freshening is the process of replacing unknown variables with fresh types. The idea is that the type, after freshening, contains no inference variables but instead contains either a value for each variable or fresh "arbitrary" types wherever a variable would have been. |
| fudge | |
| glb | |
| higher_ranked | Helper routines for higher-ranked things. See the |
| lattice | Lattice Variables |
| lexical_region_resolve | Lexical region resolution. |
| lub | |
| nll_relate | This code is kind of an alternate way of doing subtyping,
supertyping, and type equating, distinct from the |
| outlives | Various code related to computing outlives relations. |
| region_constraints | See |
| resolve | |
| sub | |
| type_variable | |
| undo_log | |
| unify_key |
Structs
| CombinedSnapshot | |
| InferCtxt | |
| InferCtxtBuilder | Helper type of a temporary returned by |
| InferCtxtInner | This type contains all the things within |
| InferOk | |
| RegionObligation | See the |
| ShallowResolver | |
| TypeFreshener | |
| TypeTrace | The trace designates the path through inference that we took to encounter an error or subtyping constraint. |
Enums
| FixupError | |
| IntVarValue | |
| LateBoundRegionConversionTime | Times when we replace late-bound regions with variables: |
| NLLRegionVariableOrigin | |
| RegionVariableOrigin | Reasons to create a region inference variable |
| RegionckMode | How we should handle region solving. |
| SubregionOrigin | The origin of a |
| TyOrConstInferVar | Helper for |
| ValuePairs | See the |
Traits
| TyCtxtInferExt |
Type Definitions
| Bound | |
| FixupResult | |
| InferResult | |
| UnificationTable | |
| UnitResult |