pub struct Checkpoint<'tcx> {
pub caller: DefId,
pub callee: Option<DefId>,
pub block: BasicBlock,
pub span: Span,
pub args: Vec<Operand<'tcx>>,
pub kind: CheckpointKind,
pub is_ref: bool,
}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§span: Span§args: Vec<Operand<'tcx>>§kind: CheckpointKind§is_ref: boolImplementations§
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>
Source§fn clone(&self) -> Checkpoint<'tcx>
fn clone(&self) -> Checkpoint<'tcx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'tcx> Freeze for Checkpoint<'tcx>
impl<'tcx> !RefUnwindSafe for Checkpoint<'tcx>
impl<'tcx> Send for Checkpoint<'tcx>
impl<'tcx> Sync for Checkpoint<'tcx>
impl<'tcx> Unpin for Checkpoint<'tcx>
impl<'tcx> !UnwindSafe 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
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