Skip to main content

Module typeck_results

Module typeck_results 

Source

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ยง

CanonicalUserTypeAnnotation
LocalSetInContext
LocalSetInContextMut
LocalTableInContext
LocalTableInContextMut
Rust2024IncompatiblePatInfo
Information on a pattern incompatible with Rust 2024, for use by the error/migration diagnostic emitted during THIR construction.
TypeckResults
UserType
UserTypeAnnotationIndex

Enumsยง

SplattedDef
A resolved splatted function call.
UserTypeKind
A user-given type annotation attached to a constant. These arise from constants that are named via paths, like Foo::<A>::new and so forth.

Constantsยง

START_INDEX

Traitsยง

IsIdentity

Functionsยง

invalid_hir_id_for_typeck_results ๐Ÿ”’
validate_hir_id_for_typeck_results ๐Ÿ”’
Validate that the given HirId (respectively its local_id part) can be safely used as a key in the maps of a TypeckResults. For that to be the case, the HirId must have the same owner as all the other IDs in this table (signified by hir_owner). Otherwise the HirId would be in a different frame of reference and using its local_id would result in lookup errors, or worse, in silently wrong data being stored/returned.

Type Aliasesยง

CanonicalUserType
Canonical user type annotation.
CanonicalUserTypeAnnotations
Mapping of type annotation indices to canonical user type annotations.