Skip to main content

Module def_ids

Module def_ids 

Source
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 DefId or 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, and std APIs 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 callee is the ptr_offset_from or ptr_offset_from_unsigned intrinsic.
is_manually_drop_drop ๐Ÿ”’
Whether callee explicitly drops the value stored in ManuallyDrop<T>.
is_ptr_write ๐Ÿ”’
Whether callee is a diagnostic-item pointer write API.
is_std_api ๐Ÿ”’
strips_to_maybe_uninit ๐Ÿ”’
Whether stripping references, raw pointers, slices, and arrays from ty reaches the standard MaybeUninit<T> type.