Module check_pointers
rustc_
mir_
transform
1.91.0-nightly
(7ad23f43a 2025-09-09)
Module check_
pointers
Module Items
Structs
Enums
Functions
In crate rustc_
mir_
transform
rustc_mir_transform
Module
check_
pointers
Copy item path
Source
Structs
ยง
Pointer
Check
๐
Details of a pointer check, the condition on which we decide whether to fail the assert and an
AssertKind
that defines the behavior on failure.
Pointer
Finder
๐
Enums
ยง
Borrowed
Field
Projection
Mode
๐
When checking for borrows of field projections (
&(*ptr).a
), we might want to check for the field type (type of
.a
in the example). This enum defines the variations (pass the pointer
Ty
or the field
Ty
).
Functions
ยง
check_
pointers
๐
Utility for adding a check for read/write on every sized, raw pointer.
split_
block
๐