pub struct Checkpoint<'tcx> {
pub caller: DefId,
pub callee: Option<DefId>,
pub block: BasicBlock,
pub args: Vec<Operand<'tcx>>,
pub kind: CheckpointKind,
pub destination: Option<Local>,
pub is_mut_ref: bool,
pub statement_index: usize,
}Expand description
A verification checkpoint in one MIR body.
Unifies unsafe calls, raw-pointer dereferences, and mutable static accesses under a single type so they all flow through the same path extraction and SMT verification pipeline.
Fields§
§caller: DefId§callee: Option<DefId>§block: BasicBlock§args: Vec<Operand<'tcx>>§kind: CheckpointKind§destination: Option<Local>§is_mut_ref: boolFor RawPtrDeref checkpoints: whether the deref produces a mutable
reference (&mut *ptr) rather than a shared one (&*ptr).
statement_index: usizeFor RawPtrDeref checkpoints: statement index within block, used for
reverse liveness at the deref point.
Implementations§
Source§impl<'tcx> Checkpoint<'tcx>
impl<'tcx> Checkpoint<'tcx>
Sourcepub fn location(&self) -> CheckpointLocation
pub fn location(&self) -> CheckpointLocation
Return the MIR location that identifies this checkpoint inside the verifier.
Sourcepub fn callee_name(&self, tcx: TyCtxt<'tcx>) -> String
pub fn callee_name(&self, tcx: TyCtxt<'tcx>) -> String
Return a human-readable label for diagnostics.
Trait Implementations§
Source§impl<'tcx> Clone for Checkpoint<'tcx>
impl<'tcx> Clone for Checkpoint<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for Checkpoint<'tcx>
impl<'tcx> !UnwindSafe for Checkpoint<'tcx>
impl<'tcx> DynSend for Checkpoint<'tcx>
impl<'tcx> DynSync for Checkpoint<'tcx>
impl<'tcx> Freeze for Checkpoint<'tcx>
impl<'tcx> Send for Checkpoint<'tcx>
impl<'tcx> Sync for Checkpoint<'tcx>
impl<'tcx> Unpin for Checkpoint<'tcx>
impl<'tcx> UnsafeUnpin for Checkpoint<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more