Expand description
Compiler lang-item identities used across RAPx.
ยงAgent Rules
Keep this module limited to identifying rustc lang items and their trait
methods by DefId. Do not depend on other RAPx modules.
Re-exportsยง
use rustc_hir::def_id::DefId;๐use rustc_middle::ty::TyCtxt;๐
Enumsยง
- Lang
Item ๐ - A representation of all the valid lang items in Rust.
Functionsยง
- is_
call_ ๐mut - Whether
didis theFnMut::call_muttrait method. - is_
clone ๐ - Whether
didis a method of theClonetrait. - is_
fn_ ๐trait - Whether this is one of the three callable traits.
- is_
panic_ ๐exit - The plain
panic!entry point, which only consumes a static message. - is_
panic_ ๐family - Panic lang items used as diverging exits in MIR.
- matches ๐
- Match a compiler-provided lang item by its
DefId.