Expand description
Call effect builders for intrinsics, FFI APIs, and other calls.
Re-exportsΒ§
use std::collections::HashMap;πuse std::sync::OnceLock;πuse rustc_hir::def_id::DefId;πuse rustc_middle::mir::Operand;πuse rustc_middle::ty::Ty;πuse rustc_middle::ty::TyCtxt;πuse rustc_middle::ty::TyKind;πuse serde::Deserialize;πuse serde::Deserialize;πuse super::BoundedArithmeticOp;πuse super::CallEffect;πuse super::CallEffectSummary;πuse super::OverflowOp;πuse super::SimdArithOp;πuse super::SimdCmpOp;πuse crate::def_ids::type_ids;πuse crate::analysis::dataflow::pointer_copy;πuse crate::def_ids::intrinsic_api;πuse crate::def_ids::lang_api;πuse crate::def_ids::lang_api::LangItem;πuse crate::def_ids::nomir_api;πuse crate::def_ids::other_api;πuse crate::util::mir_utils;πuse crate::util::mir_utils::type_layout;πuse crate::util::name::public_def_path;π
MacrosΒ§
- ED π
DefId-based matcher row (fn(TyCtxt, Option<DefId>) -> bool).
StructsΒ§
- EffCtx π
- Effect
Model π - Entry π
StaticsΒ§
- REGISTRY π
FunctionsΒ§
- eff_
alias_ πarg0 - eff_
align_ πof_ val - eff_
align_ πoffset - eff_
arith_ πoffset - eff_
atomic_ πrmw - eff_
cmp_ πmin - eff_
compare_ πbytes - eff_
copy_ πmemory - eff_
exact_ πdiv - eff_
fill_ πbytes - eff_
float_ πto_ int_ unchecked - eff_
layout_ πconst - eff_
leading_ πzeros - eff_
load_ πmemory - eff_
no_ πeffect - eff_
nullable_ πallocation - eff_
nullable_ πzeroed_ allocation - eff_
opaque_ πreturn - eff_
ptr_ πmask - eff_
ptr_ πoffset_ from - eff_
raw_ πeq - eff_
return_ πadd - eff_
return_ πarg_ value - eff_
return_ πmax - eff_
return_ πmul - eff_
return_ πnonzero_ iff - eff_
saturating_ πadd - eff_
saturating_ πsub - eff_
select_ πunpredictable - eff_
simd_ πadd - eff_
simd_ πbitmask - eff_
simd_ πeq - eff_
simd_ πextract - eff_
simd_ πgather - eff_
simd_ πge - eff_
simd_ πgt - eff_
simd_ πinsert - eff_
simd_ πle - eff_
simd_ πlt - eff_
simd_ πmasked_ load - eff_
simd_ πmasked_ store - eff_
simd_ πmul - eff_
simd_ πne - eff_
simd_ πopaque - eff_
simd_ πsaturating_ add - eff_
simd_ πsaturating_ sub - eff_
simd_ πscatter - eff_
simd_ πsplat - eff_
simd_ πsub - eff_
size_ πof_ val - eff_
store_ πmemory - eff_
swap_ πmemory - eff_
trailing_ πzeros - eff_
vec_ πfrom_ slice - eff_
volatile_ πcopy_ memory - eff_
with_ πoverflow - eff_
wrapping_ πadd - eff_
wrapping_ πsub - effect_
builder π - effect_
summary π - Transparent-wrapper deref (
ManuallyDrop/MaybeDangling) when the registry has no match: the return aliases the receiverβs inner value. - ffi_
effects π - has_
registered_ πeffect - intrinsic_
effects π - is_
unmodeled_ πintrinsic - layout_
call_ πty - layout_
constant_ πeffect - load_
effect_ πmodels - lookup_
builder π - lookup_
effect π - model_
builder π - transparent_
deref_ πpeel - validate_
model_ πeffects - vec_
elem_ πty - Element type of a
Vec<T>, iftyis aVec.
Type AliasesΒ§
- Effect
Builder π