pub enum RelevantItem<'tcx> {
Statement {
block: BasicBlock,
statement_index: usize,
},
Terminator {
block: BasicBlock,
},
ContractFact {
property: Property<'tcx>,
},
Forget,
CalleeEntry {
callee: DefId,
args: Vec<Local>,
},
CalleeExit {
dest: Local,
},
}Expand description
One relevant item kept from the backward slice.
Variants§
Statement
A MIR statement retained from a basic block.
Terminator
A MIR terminator retained from a basic block.
Fields
§
block: BasicBlockContractFact
A contract fact injected by the engine before the forward visit. Never produced by the backward visitor itself.
Forget
A conservative loss of precision for relevant state (an unsupported call whose effects are not modeled).
CalleeEntry
Enter a callee’s MIR body. Subsequent Statement/Terminator items
are interpreted in the callee’s context until CalleeExit.
args holds the caller’s Local indices for each callee parameter
(arg 0 → callee local_1, arg 1 → callee local_2, …).
CalleeExit
Return from a callee’s MIR body. Writes local_0 (callee return)
to the caller’s dest local. Restores the caller’s function context.
Fields
§
dest: LocalTrait Implementations§
Source§impl<'tcx> Clone for RelevantItem<'tcx>
impl<'tcx> Clone for RelevantItem<'tcx>
Source§fn clone(&self) -> RelevantItem<'tcx>
fn clone(&self) -> RelevantItem<'tcx>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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> !RefUnwindSafe for RelevantItem<'tcx>
impl<'tcx> !UnwindSafe for RelevantItem<'tcx>
impl<'tcx> DynSend for RelevantItem<'tcx>
impl<'tcx> DynSync for RelevantItem<'tcx>
impl<'tcx> Freeze for RelevantItem<'tcx>
impl<'tcx> Send for RelevantItem<'tcx>
impl<'tcx> Sync for RelevantItem<'tcx>
impl<'tcx> Unpin for RelevantItem<'tcx>
impl<'tcx> UnsafeUnpin for RelevantItem<'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