Re-exportsยง
use std::collections::hash_map::Entry;๐use std::hash::Hash;๐use std::hash::Hash;๐use std::iter;๐use rustc_abi::FieldIdx;๐use rustc_abi::VariantIdx;๐use rustc_data_structures::fx::FxIndexMap;๐use rustc_data_structures::fx::FxIndexSet;๐use rustc_data_structures::unord::ExtendUnord;๐use rustc_data_structures::unord::UnordItems;๐use rustc_data_structures::unord::UnordSet;๐use rustc_errors::ErrorGuaranteed;๐use rustc_hir::def::DefKind;๐use rustc_hir::def::Res;๐use rustc_hir::def_id::DefId;๐use rustc_hir::def_id::LocalDefId;๐use rustc_hir::def_id::LocalDefIdMap;๐use rustc_hir as hir;๐use rustc_hir::BindingMode;๐use rustc_hir::ByRef;๐use rustc_hir::HirId;๐use rustc_hir::ItemLocalId;๐use rustc_hir::ItemLocalMap;๐use rustc_hir::ItemLocalSet;๐use rustc_hir::Mutability;๐use rustc_hir::OwnerId;๐use rustc_index::IndexVec;๐use rustc_macros::Lift;๐use rustc_macros::StableHash;๐use rustc_macros::TyDecodable;๐use rustc_macros::TyEncodable;๐use rustc_macros::TypeFoldable;๐use rustc_macros::TypeVisitable;๐use rustc_session::Session;๐use rustc_span::Span;๐use rustc_span::bug;๐use crate::hir::place::Place as HirPlace;๐use crate::infer::canonical::Canonical;๐use crate::mir::FakeReadCause;๐use crate::thir::DerefPatBorrowMode;๐use crate::traits::ObligationCause;๐use crate::ty;๐use crate::ty::BoundVar;๐use crate::ty::CanonicalPolyFnSig;๐use crate::ty::ClosureSizeProfileData;๐use crate::ty::GenericArgKind;๐use crate::ty::GenericArgs;๐use crate::ty::Ty;๐use crate::ty::UserArgs;๐use crate::ty::tls;๐
Structsยง
- Canonical
User Type Annotation - Local
SetIn Context - Local
SetIn Context Mut - Local
Table InContext - Local
Table InContext Mut - Rust2024
Incompatible PatInfo - Information on a pattern incompatible with Rust 2024, for use by the error/migration diagnostic emitted during THIR construction.
- Typeck
Results - User
Type - User
Type Annotation Index
Enumsยง
- Splatted
Def - A resolved splatted function call.
- User
Type Kind - A user-given type annotation attached to a constant. These arise
from constants that are named via paths, like
Foo::<A>::newand so forth.
Constantsยง
Traitsยง
Functionsยง
- invalid_
hir_ ๐id_ for_ typeck_ results - validate_
hir_ ๐id_ for_ typeck_ results - Validate that the given HirId (respectively its
local_idpart) can be safely used as a key in the maps of a TypeckResults. For that to be the case, the HirId must have the sameowneras all the other IDs in this table (signified byhir_owner). Otherwise the HirId would be in a different frame of reference and using itslocal_idwould result in lookup errors, or worse, in silently wrong data being stored/returned.
Type Aliasesยง
- Canonical
User Type - Canonical user type annotation.
- Canonical
User Type Annotations - Mapping of type annotation indices to canonical user type annotations.