Skip to main content

Module borrow_tracker

Module borrow_tracker 

Source

Re-exportsΒ§

use std::cell::RefCell; πŸ”’
use std::num::NonZero; πŸ”’
use std::fmt; πŸ”’
use std::mem; πŸ”’
use rustc_abi::Size; πŸ”’
use rustc_data_structures::fx::FxHashMap; πŸ”’
use rustc_data_structures::fx::FxHashSet; πŸ”’
use rustc_middle::ty::Ty; πŸ”’
use smallvec::SmallVec; πŸ”’
use crate::*; πŸ”’

ModulesΒ§

stacked_borrows
Implements β€œStacked Borrows”. See https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information.
tree_borrows

StructsΒ§

BorTag
Tracking pointer provenance
FrameState
Per-call-stack-frame data for borrow tracking
GlobalStateInner
Extra global state, available to the memory access hooks.
TreeBorrowsParams
Parameters that Tree Borrows can take.

EnumsΒ§

AccessKind
Indicates which kind of access is being performed.
AllocState
Extra per-allocation data for borrow tracking
BorrowTrackerMethod
Which borrow tracking method to use
ProtectorKind
The flavor of the protector.

TraitsΒ§

EvalContextExt

Type AliasesΒ§

GlobalState
We need interior mutable access to the global state.