Enum miri::StackPopCleanup
source · pub enum StackPopCleanup {
Goto {
ret: Option<BasicBlock>,
unwind: UnwindAction,
},
Root {
cleanup: bool,
},
}
Variants§
Goto
Jump to the next block in the caller, or cause UB if None (that’s a function
that may never return). Also store layout of return place so
we can validate it at that layout.
ret
stores the block we jump to on a normal return, while unwind
stores the block used for cleanup during unwinding.
Root
The root frame of the stack: nowhere else to jump to.
cleanup
says whether locals are deallocated. Static computation
wants them leaked to intern what they need (and just throw away
the entire ecx
when it is done).
Auto Trait Implementations§
impl RefUnwindSafe for StackPopCleanup
impl Send for StackPopCleanup
impl Sync for StackPopCleanup
impl Unpin for StackPopCleanup
impl UnwindSafe for StackPopCleanup
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes
Size for each variant:
Goto
: 12 bytesRoot
: 5 bytes