Re-exportsยง
use std::assert_matches;๐use std::fmt;๐use rustc_attr_ir::lang_items::LangItem;๐use rustc_data_structures::fx::FxHashMap;๐use rustc_errors::ErrorGuaranteed;๐use rustc_hir as hir;๐use rustc_hir::def::CtorKind;๐use rustc_hir::def::DefKind;๐use rustc_hir::def::Namespace;๐use rustc_hir::def_id::CrateNum;๐use rustc_hir::def_id::DefId;๐use rustc_macros::Lift;๐use rustc_macros::StableHash;๐use rustc_macros::TyDecodable;๐use rustc_macros::TyEncodable;๐use rustc_span::def_id::LOCAL_CRATE;๐use rustc_span::DUMMY_SP;๐use rustc_span::Span;๐use rustc_span::bug;๐use rustc_span::span_bug;๐use tracing::debug;๐use tracing::instrument;๐use tracing::instrument;๐use crate::diagnostics;๐use crate::middle::codegen_fn_attrs::CodegenFnAttrFlags;๐use crate::ty::normalize_erasing_regions::NormalizationError;๐use crate::ty::print::FmtPrinter;๐use crate::ty::print::Print;๐use crate::ty;๐use crate::ty::AssocContainer;๐use crate::ty::EarlyBinder;๐use crate::ty::GenericArgs;๐use crate::ty::Ty;๐use crate::ty::TyCtxt;๐use crate::ty::TypeFoldable;๐use crate::ty::TypeFoldable;๐use crate::ty::TypeSuperVisitable;๐use crate::ty::TypeVisitable;๐use crate::ty::TypeVisitable;๐use crate::ty::TypeVisitableExt;๐use crate::ty::TypeVisitor;๐
Structsยง
- Instance
- An
InstanceKindalong with the args that are needed to substitute the instance.
Enumsยง
- Instance
Kind - Reify
Reason - Describes why a
ReifyShimwas created. This is needed to distinguish a ReifyShim created to adjust for things like#[track_caller]in a vtable from aReifyShimcreated to produce a function pointer from a vtable entry. Currently, this is only used when KCFI is enabled, as only KCFI needs to treat those twoReifyShims differently. - Shim
Kind
Functionsยง
- needs_
fn_ ๐once_ adapter_ shim - resolve_
async_ ๐drop_ poll - type_
length ๐