Struct miri::stacked_borrows::diagnostics::DiagnosticCx
source · [−]pub struct DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx> {
operation: Operation,
current_span: &'span mut CurrentSpan<'ecx, 'mir, 'tcx>,
threads: &'ecx ThreadManager<'mir, 'tcx>,
history: &'history mut AllocHistory,
offset: Size,
}
Fields
operation: Operation
current_span: &'span mut CurrentSpan<'ecx, 'mir, 'tcx>
threads: &'ecx ThreadManager<'mir, 'tcx>
history: &'history mut AllocHistory
offset: Size
Implementations
sourceimpl<'span, 'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>
impl<'span, 'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>
pub fn unbuild(self) -> DiagnosticCxBuilder<'span, 'ecx, 'mir, 'tcx>
sourceimpl<'span, 'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>
impl<'span, 'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>
pub fn start_grant(&mut self, perm: Permission)
pub fn log_creation(&mut self)
pub fn log_invalidation(&mut self, tag: SbTag)
pub fn log_protector(&mut self)
pub fn get_logs_relevant_to(
&self,
tag: SbTag,
protector_tag: Option<SbTag>
) -> Option<TagHistory>
sourcepub fn grant_error(&self, perm: Permission, stack: &Stack) -> InterpError<'tcx>
pub fn grant_error(&self, perm: Permission, stack: &Stack) -> InterpError<'tcx>
Report a descriptive error when new
could not be granted from derived_from
.
sourcepub fn access_error(&self, stack: &Stack) -> InterpError<'tcx>
pub fn access_error(&self, stack: &Stack) -> InterpError<'tcx>
Report a descriptive error when access
is not permitted based on tag
.
pub fn protector_error(&self, item: &Item) -> InterpError<'tcx>
pub fn dealloc_error(&self) -> InterpError<'tcx>
pub fn check_tracked_tag_popped(&self, item: &Item, global: &GlobalStateInner)
Auto Trait Implementations
impl<'span, 'history, 'ecx, 'mir, 'tcx> !RefUnwindSafe for DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>
impl<'span, 'history, 'ecx, 'mir, 'tcx> !Send for DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>
impl<'span, 'history, 'ecx, 'mir, 'tcx> !Sync for DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>
impl<'span, 'history, 'ecx, 'mir, 'tcx> Unpin for DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>where
'ecx: 'span,
'mir: 'ecx + 'span,
'tcx: 'ecx + 'span,
impl<'span, 'history, 'ecx, 'mir, 'tcx> !UnwindSafe for DiagnosticCx<'span, 'history, 'ecx, 'mir, 'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
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: 72 bytes