pub(crate) enum RelevantItem<'tcx> {
Statement {
def_id: DefId,
block: BasicBlock,
global_block: Option<usize>,
stmt_index: usize,
},
Terminator {
def_id: DefId,
block: BasicBlock,
global_block: Option<usize>,
switch_succ: Option<BasicBlock>,
},
CalleeEntry {
callee: DefId,
body: Option<&'tcx Body<'tcx>>,
args: Vec<CallArg>,
},
CalleeExit {
dest: usize,
},
}Expand description
One relevant item kept from the backward slice.
Variants§
Statement
A MIR statement retained from a basic block. def_id identifies the
function owning block (differs from the caller for inlined callees).
Terminator
A MIR terminator retained from a basic block. For a SwitchInt, block
is the switch block and switch_succ is the successor taken along this
path (so the VM need not re-resolve it from the path); for any other
terminator — or when the path ends at the checkpoint — switch_succ is
None.
CalleeEntry
Enter an inlined callee: bind each argument to its parameter position.
CalleeExit
Return from an inlined callee: write the callee’s _0 to the caller’s
destination local.
Implementations§
Source§impl RelevantItem<'_>
impl RelevantItem<'_>
pub(crate) fn set_global_block(&mut self, global_block: usize)
Trait Implementations§
Source§impl<'tcx> Clone for RelevantItem<'tcx>
impl<'tcx> Clone for RelevantItem<'tcx>
Auto 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> Forget for RelevantItem<'tcx>
impl<'tcx> Freeze for RelevantItem<'tcx>
impl<'tcx> Move 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