Crate rustc_hir_typeck
source ·Modules§
- _match 🔒
- Some helper functions for
AutoDeref - callee 🔒
- Code for type-checking cast expressions.
- check 🔒
- closure 🔒Code for type-checking closure expressions.
- coercion 🔒Type Coercion
- demand 🔒
- diverges 🔒
- errors 🔒Errors emitted by
rustc_hir_typeck. - expr 🔒Type checking expressions.
- A different sort of visitor for walking fn bodies. Unlike the normal visitor, which just walks the entire body in one shot, the
ExprUseVisitordetermines how expressions are being used. - fallback 🔒
- fn_ctxt 🔒
- Categorization
- method 🔒Method lookup: the secret sauce of Rust. See the rustc dev guide for more information.
- op 🔒Code related to processing overloaded binary and unary operators.
- pat 🔒
- place_op 🔒
- upvar 🔒Inferring borrow kinds for upvars
Macros§
Structs§
- When
check_fnis invoked on a coroutine (i.e., a body that includes yield), it returns back some information about the yield points. - The
FnCtxtstores type-checking context needed to type-check bodies of functions, closures, andconsts, including performing type inference withInferCtxt. - Closures defined within the function. For example:
Enums§
- Controls whether the arguments are tupled. This is used for the call operator.
Statics§
- Raw content of Fluent resource for this crate, generated by
fluent_messagesmacro, imported byrustc_driverto include all crates’ resources in one bundle.
Functions§
- Used only to get
TypeckResultsfor type inference during error recovery. Currently only used for type inference ofstatics andconsts to avoid type cycle errors. - Same as
typeckbutinspectis invoked on evaluation of each root obligation. Inspecting obligations only works with the new trait solver. This function is only to be used by external tools, it should not be called from within rustc. Note, this is not a query, and thus is not cached. - If this
DefIdis a “primary tables entry”, returnsSome((body_id, body_ty, fn_sig)). Otherwise, returnsNone. - typeck 🔒