pub struct DiagnosticCx<'history, 'ecx, 'tcx> {
operation: Operation,
machine: &'ecx MiriMachine<'tcx>,
history: &'history mut AllocHistory,
offset: Size,
}
Fields§
§operation: Operation
§machine: &'ecx MiriMachine<'tcx>
§history: &'history mut AllocHistory
§offset: Size
Implementations§
Source§impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx>
impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx>
pub fn unbuild(self) -> DiagnosticCxBuilder<'ecx, 'tcx>
Source§impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx>
impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx>
pub fn start_grant(&mut self, perm: Permission)
pub fn log_creation(&mut self)
pub fn log_invalidation(&mut self, tag: BorTag)
pub fn log_protector(&mut self)
pub fn get_logs_relevant_to( &self, tag: BorTag, protector_tag: Option<BorTag>, ) -> Option<TagHistory>
Sourcepub(super) fn grant_error(&self, stack: &Stack) -> InterpErrorKind<'tcx>
pub(super) fn grant_error(&self, stack: &Stack) -> InterpErrorKind<'tcx>
Report a descriptive error when new
could not be granted from derived_from
.
Sourcepub(super) fn access_error(&self, stack: &Stack) -> InterpErrorKind<'tcx>
pub(super) fn access_error(&self, stack: &Stack) -> InterpErrorKind<'tcx>
Report a descriptive error when access
is not permitted based on tag
.
pub(super) fn protector_error( &self, item: &Item, kind: ProtectorKind, ) -> InterpErrorKind<'tcx>
pub fn dealloc_error(&self, stack: &Stack) -> InterpErrorKind<'tcx>
pub fn check_tracked_tag_popped(&self, item: &Item, global: &GlobalStateInner)
Auto Trait Implementations§
impl<'history, 'ecx, 'tcx> Freeze for DiagnosticCx<'history, 'ecx, 'tcx>
impl<'history, 'ecx, 'tcx> !RefUnwindSafe for DiagnosticCx<'history, 'ecx, 'tcx>
impl<'history, 'ecx, 'tcx> !Send for DiagnosticCx<'history, 'ecx, 'tcx>
impl<'history, 'ecx, 'tcx> !Sync for DiagnosticCx<'history, 'ecx, 'tcx>
impl<'history, 'ecx, 'tcx> Unpin for DiagnosticCx<'history, 'ecx, 'tcx>
impl<'history, 'ecx, 'tcx> !UnwindSafe for DiagnosticCx<'history, 'ecx, '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
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: 64 bytes