Expand description
Known API and type identities.
ยงAgent Rules
Keep this module limited to identity submodules and shared identity helpers. Do not depend on other RAPx modules.
Re-exportsยง
use rustc_hir::def_id::DefId;๐use rustc_middle::ty::Ty;๐use rustc_middle::ty::TyCtxt;๐use rustc_middle::ty::TyKind;๐
Modulesยง
- diagnostic_
api ๐ - Standard-library API identities registered as rustc diagnostic items.
- intrinsic_
api ๐ - Identity of compiler intrinsics by
DefIdor lowered MIR variant. - lang_
api ๐ - Compiler lang-item identities used across RAPx.
- nomir_
api ๐ - Known standard-library APIs without MIR.
- other_
api ๐ - Identify
core,alloc, andstdAPIs without depending on MIR availability. Callers use these identities to avoid costly MIR expansion where a summary exists, and to preserve facts needed by verification and slicing. - type_
ids ๐ - Resolved
DefIds of standard-library types used by verification.
Functionsยง
- is_
intrinsic_ ๐ptr_ offset_ from - Whether
calleeis theptr_offset_fromorptr_offset_from_unsignedintrinsic. - is_
manually_ ๐drop_ drop - Whether
calleeexplicitly drops the value stored inManuallyDrop<T>. - is_
ptr_ ๐write - Whether
calleeis a diagnostic-item pointer write API. - is_
std_ ๐api - strips_
to_ ๐maybe_ uninit - Whether stripping references, raw pointers, slices, and arrays from
tyreaches the standardMaybeUninit<T>type.