Expand description
Detecting lang items.
Language items are items that represent concepts intrinsic to the language itself. Examples are:
- Traits that specify βkindsβ; e.g.,
Sync,Send. - Traits that represent operators; e.g.,
Add,Sub,Index. - Functions called by the compiler itself.
Re-exportsΒ§
use rustc_attr_ir::lang_items::LangItem;πuse rustc_hir::def_id::DefId;πuse rustc_span::Span;πuse rustc_target::spec::PanicStrategy;πuse crate::ty;πuse crate::ty::TyCtxt;π
FunctionsΒ§
- required
- Returns
trueif the specifiedlang_itemmust be present for this compilation.