Re-exportsΒ§
pub use coercion::can_coerce;pub(crate) use fn_ctxt::FnCtxt;πpub(crate) use typeck_root_ctxt::TypeckRootCtxt;πpub(crate) use crate::check::check_fn;πpub(crate) use crate::coercion::CoerceMany;πpub(crate) use crate::diverges::Diverges;πpub(crate) use crate::expectation::Expectation;πpub(crate) use crate::fn_ctxt::LoweredTy;πpub(crate) use crate::gather_locals::GatherLocalsVisitor;πpub(crate) use rustc_data_structures::unord::UnordSet;πpub(crate) use Applicability;πpub(crate) use Diag;πpub(crate) use ErrorGuaranteed;πpub(crate) use struct_span_code_err;πpub(crate) use rustc_hir as hir;πpub(crate) use DefKind;πpub(crate) use Res;πpub(crate) use HirId;πpub(crate) use HirIdMap;πpub(crate) use Node;πpub(crate) use rustc_hir_analysis::check::check_abi;πpub(crate) use rustc_hir_analysis::hir_ty_lowering::HirTyLowerer;πpub(crate) use ObligationCauseCode;πpub(crate) use ObligationInspector;πpub(crate) use TraitEngine;πpub(crate) use WellFormedLoc;πpub(crate) use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags;πpub(crate) use rustc_middle::query::Providers;πpub(crate) use ty;πpub(crate) use FnSigKind;πpub(crate) use Ty;πpub(crate) use TyCtxt;πpub(crate) use Unnormalized;πpub(crate) use rustc_session::config;πpub(crate) use rustc_span::def_id::LocalDefId;πpub(crate) use Span;πpub(crate) use bug;πpub(crate) use span_bug;πpub(crate) use debug;πpub(crate) use instrument;πpub(crate) use instrument;πpub(crate) use rustc_errors::codes::*;π
ModulesΒ§
- _match π
- autoderef π
- Some helper functions for
AutoDeref. - callee π
- cast
- Code for type-checking cast expressions.
- check π
- closure π
- Code for type-checking closure expressions.
- coercion π
- Type Coercion
- demand π
- diagnostics π
- Errors emitted by
rustc_hir_typeck. - diverges π
- expectation π
- expr π
- Type checking expressions.
- expr_
use_ visitor - 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 π
- gather_
locals π - inline_
asm π - intrinsicck π
- loops π
- method π
- Method lookup: the secret sauce of Rust. See the rustc dev guide for more information.
- naked_
functions π - Checks validity of naked functions.
- op π
- Code related to processing overloaded binary and unary operators.
- opaque_
types π - pat π
- place_
op π - typeck_
root_ πctxt - upvar π
- Inferring borrow kinds for upvars
- writeback π
- During type inference, partially inferred terms are
represented using inference variables (ty::Infer). These donβt appear in
the final
ty::TypeckResultssince all of the types should have been inferred once typeck is done.
MacrosΒ§
StructsΒ§
- Breakable
Ctxt - Coroutine
Types π - When
check_fnis invoked on a coroutine (i.e., a body that includes yield), it returns back some information about the yield points. - Enclosing
Breakables
EnumsΒ§
- Needs
- PlaceOp
- Tuple
Arguments πFlag - Controls whether all arguments are tupled. This is used for the call operator only.
FunctionsΒ§
- extend_
err_ πwith_ const_ context - fatally_
break_ πrust - infer_
type_ πif_ missing - inspect_
typeck - 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. - provide
- Adds query implementations to the Providers vtable, see
rustc_middle::query - typeck_
root π - typeck_
with_ πinspect - used_
trait_ πimports