Struct miri::borrow_tracker::stacked_borrows::diagnostics::DiagnosticCx
source · pub struct DiagnosticCx<'history, 'ecx, 'mir, 'tcx> {
operation: Operation,
machine: &'ecx MiriMachine<'mir, 'tcx>,
history: &'history mut AllocHistory,
offset: Size,
}
Fields§
§operation: Operation
§machine: &'ecx MiriMachine<'mir, 'tcx>
§history: &'history mut AllocHistory
§offset: Size
Implementations§
source§impl<'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'history, 'ecx, 'mir, 'tcx>
impl<'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'history, 'ecx, 'mir, 'tcx>
pub fn unbuild(self) -> DiagnosticCxBuilder<'ecx, 'mir, 'tcx>
source§impl<'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'history, 'ecx, 'mir, 'tcx>
impl<'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'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: 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) -> InterpError<'tcx>
pub(super) fn grant_error(&self, stack: &Stack) -> InterpError<'tcx>
Report a descriptive error when new
could not be granted from derived_from
.
sourcepub(super) fn access_error(&self, stack: &Stack) -> InterpError<'tcx>
pub(super) fn access_error(&self, stack: &Stack) -> InterpError<'tcx>
Report a descriptive error when access
is not permitted based on tag
.
pub(super) fn protector_error(
&self,
item: &Item,
kind: ProtectorKind
) -> InterpError<'tcx>
pub fn dealloc_error(&self, stack: &Stack) -> InterpError<'tcx>
pub fn check_tracked_tag_popped(&self, item: &Item, global: &GlobalStateInner)
Auto Trait Implementations§
impl<'history, 'ecx, 'mir, 'tcx> !RefUnwindSafe for DiagnosticCx<'history, 'ecx, 'mir, 'tcx>
impl<'history, 'ecx, 'mir, 'tcx> !Send for DiagnosticCx<'history, 'ecx, 'mir, 'tcx>
impl<'history, 'ecx, 'mir, 'tcx> !Sync for DiagnosticCx<'history, 'ecx, 'mir, 'tcx>
impl<'history, 'ecx, 'mir, 'tcx> Unpin for DiagnosticCx<'history, 'ecx, 'mir, 'tcx>where
'mir: 'ecx,
'tcx: 'ecx,
impl<'history, 'ecx, 'mir, 'tcx> !UnwindSafe for DiagnosticCx<'history, 'ecx, 'mir, 'tcx>
Blanket Implementations§
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