[−][src]Module rustc_mir::borrow_check::type_check
This pass type-checks the MIR to ensure it is not broken.
Modules
| constraint_conversion | |
| free_region_relations | |
| input_output | This module contains code to equate the input/output types appearing
in the MIR with the expected input/output types from the function
signature. This requires a bit of processing, as the expected types
are supplied to us before normalization and may contain opaque
|
| liveness | |
| relate_tys |
Structs
| BorrowCheckContext | |
| MirTypeckRegionConstraints | A collection of region constraints that must be satisfied for the program to be considered well-typed. |
| MirTypeckResults | |
| ObligationAccumulator | |
| TypeChecker | The MIR type checker. Visits the MIR and enforces all the constraints needed for it to be valid and well-typed. Along the way, it accrues region constraints -- these can later be used by NLL region checking. |
| TypeVerifier | Verifies that MIR types are sane to not crash further checks. |
Enums
| FieldAccessError | |
| Locations | The |
Traits
| NormalizeLocation |
Functions
| mirbug | |
| translate_outlives_facts | |
| type_check | Type checks the given |
| type_check_internal |