Expand description
Alias hazard checks for unsafe view-producing APIs.
Alias is more stateful than numeric SPs such as Align: calls like
from_raw_parts_mut create a view whose lifetime constrains later uses of
the original raw pointer. This module handles the first, deliberately small
slice-view model:
- a local view only checks later uses in the same function;
- an escaped view from
self.fieldchecks whether the same struct still exposes or writes through that raw field via safe methods or public fields.
Structsยง
- Self
Field ๐Origin
Enumsยง
- Alias
Producer ๐ - Hazard
Kind ๐ - RawAccess
Kind ๐
Functionsยง
- adt_
from_ ๐receiver_ ty - alias_
from_ ๐rvalue - alias_
producer ๐ - blocks_
reachable_ ๐after_ call - call_
destination ๐ - check
- Check the path-sensitive / escaped hazard part of
Alias. - collect_
place_ ๐aliases - destination_
flows_ ๐to_ return - escaped_
self_ ๐field_ violation - expand_
hazard_ ๐alias_ locals - expand_
origin_ ๐aliases - failed ๐
- hazard_
used_ ๐after_ block - hazard_
used_ ๐after_ statement - impls_
for_ ๐struct - is_
ownership_ ๐return_ api - is_
ownership_ ๐transfer_ api - is_
raw_ ๐pointer_ ty - is_
vec_ ๐invalidating_ method - is_
vec_ ๐ownership_ transfer_ api - local_
hazard_ ๐violation - local_
traces_ ๐to_ self_ field - method_
exposes_ ๐self_ field - method_
writes_ ๐self_ field - operand_
place ๐ - ownership_
transfer_ ๐violation - place_
is_ ๐raw_ access_ to_ any_ origin - place_
is_ ๐raw_ access_ to_ origin - place_
raw_ ๐accesses_ self_ field - public_
raw_ ๐field - raw_
access_ ๐conflicts - resolve_
forward_ ๐place - resolve_
mir_ ๐place - resolve_
mir_ ๐place_ dummy - rvalue_
mentions_ ๐any_ local - rvalue_
mentions_ ๐local - rvalue_
mentions_ ๐origin - rvalue_
reads_ ๐any_ origin - rvalue_
source_ ๐place - self_
field_ ๐key - self_
field_ ๐origin - statement_
uses_ ๐any_ local - terminator_
invalidates_ ๐vec_ owner - terminator_
returns_ ๐ownership - terminator_
uses_ ๐any_ local - terminator_
uses_ ๐origin - terminator_
writes_ ๐origin - vec_
owners_ ๐for_ origins