Expand description
Miscellaneous type-system utilities that are too small to deserve their own modules.
Re-exportsยง
use std::fmt;๐use std::iter;๐use rustc_abi::Float;๐use rustc_abi::Integer;๐use rustc_abi::IntegerType;๐use rustc_abi::Size;๐use rustc_apfloat::Float as _;๐use rustc_attr_ir::NotableTraitColor;๐use rustc_attr_ir::find_attr;๐use rustc_data_structures::fx::FxHashMap;๐use rustc_data_structures::fx::FxHashSet;๐use rustc_data_structures::stable_hash::StableHash;๐use rustc_data_structures::stable_hash::StableHasher;๐use rustc_errors::ErrorGuaranteed;๐use rustc_hashes::Hash128;๐use rustc_hir as hir;๐use rustc_hir::def::CtorOf;๐use rustc_hir::def::DefKind;๐use rustc_hir::def::Res;๐use rustc_hir::def_id::CrateNum;๐use rustc_hir::def_id::DefId;๐use rustc_hir::def_id::LocalDefId;๐use rustc_index::bit_set::GrowableBitSet;๐use rustc_macros::StableHash;๐use rustc_macros::TyDecodable;๐use rustc_macros::TyEncodable;๐use rustc_macros::extension;๐use rustc_span::bug;๐use rustc_span::span_bug;๐use rustc_span::sym;๐use rustc_structures::Limit;๐use rustc_type_ir::PredicateProxy;๐use rustc_type_ir::solve::SizedTraitKind;๐use smallvec::SmallVec;๐use smallvec::smallvec;๐use tracing::debug;๐use tracing::instrument;๐use tracing::instrument;๐use super::TypingEnv;๐use crate::middle::codegen_fn_attrs::CodegenFnAttrFlags;๐use crate::mir;๐use crate::query::Providers;๐use crate::traits::ObligationCause;๐use crate::ty::layout::FloatExt;๐use crate::ty::layout::IntegerExt;๐use crate::ty;๐use crate::ty::Asyncness;๐use crate::ty::FallibleTypeFolder;๐use crate::ty::GenericArgKind;๐use crate::ty::GenericArgs;๐use crate::ty::Ty;๐use crate::ty::TyCtxt;๐use crate::ty::TypeFoldable;๐use crate::ty::TypeFoldable;๐use crate::ty::TypeFolder;๐use crate::ty::TypeSuperFoldable;๐use crate::ty::TypeVisitableExt;๐use crate::ty::Unnormalized;๐
Structsยง
Enumsยง
- Check
Regions - Used as an input to
TyCtxt::uses_unique_generic_params. - NotUnique
Param
Traitsยง
Functionsยง
- doc_
notable_ trait - Determines whether an item is annotated with
doc(notable_trait). - fold_
list - Does the equivalent of
- intrinsic_
raw - Determines whether an item is an intrinsic (which may be via Abi or via the
rustc_intrinsicattribute). - is_
doc_ ๐hidden - Determines whether an item is directly annotated with
doc(hidden). - needs_
drop_ components - Returns a list of types such that the given type needs drop if and only if
any of the returned types need drop. Returns
Err(AlwaysRequiresDrop)if this type always needs drop. - needs_
drop_ components_ with_ async - Returns a list of types such that the given type needs drop if and only if
any of the returned types need drop. Returns
Err(AlwaysRequiresDrop)if this type always needs drop. - provide
- reveal_
opaque_ types_ in_ bounds - Reveals all opaque types in the given value, replacing them with their underlying types.
- try_
fold_ list - Does the equivalent of