Expand description
Miscellaneous type-system utilities that are too small to deserve their own modules.
Re-exportsยง
use rustc_ast::Mutability;๐use rustc_attr_ir::find_attr;๐use rustc_attr_ir::lang_items::LangItem;๐use rustc_hir as hir;๐use rustc_infer::infer::RegionResolutionError;๐use rustc_infer::infer::TyCtxtInferExt;๐use rustc_infer::traits::TraitErrors;๐use rustc_middle::ty;๐use rustc_middle::ty::AdtDef;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::TyCtxt;๐use rustc_middle::ty::TypeVisitableExt;๐use rustc_middle::ty::TypingMode;๐use rustc_span::Span;๐use rustc_span::bug;๐use rustc_span::sym;๐use thin_vec::ThinVec;๐use crate::regions::InferCtxtRegionExt;๐use crate::traits;๐use crate::traits::FulfillmentError;๐use crate::traits::Obligation;๐use crate::traits::ObligationCause;๐
Enumsยง
Functionsยง
- all_
fields_ implement_ trait - Check that all fields of a given
adtimplementlang_itemtrait. - type_
allowed_ to_ implement_ const_ param_ ty - Checks that the fields of the type (an ADT) all implement
(Unsized?)ConstParamTy. - type_
allowed_ to_ implement_ copy - Checks that the fields of the type (an ADT) all implement copy.