Skip to main content Module check_pointers Copy item path Source use rustc_attr_ir::lang_items::LangItem ; ๐ use rustc_index::IndexVec ; ๐ use rustc_middle::mir::visit::MutatingUseContext ; ๐ use rustc_middle::mir::visit::NonMutatingUseContext ; ๐ use rustc_middle::mir::visit::PlaceContext ; ๐ use rustc_middle::mir::visit::Visitor ; ๐ use rustc_middle::ty ; ๐ use rustc_middle::ty::Ty ; ๐ use rustc_middle::ty::TyCtxt ; ๐ use tracing::debug ; ๐ use tracing::trace ; ๐ use rustc_middle::mir ::*; ๐ PointerCheck ๐ 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. PointerFinder ๐ BorrowedFieldProjectionMode ๐ 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 ). check_pointers ๐ Utility for adding a check for read/write on every sized, raw pointer. split_block ๐