pub(crate) struct Diagnostics {
pub(crate) active_mir: Option<ActiveMirLocation>,
unsupported_mir: bool,
unattributed_unsupported: bool,
unsupported_details: FxHashSet<String>,
unsupported_effects: FxHashSet<String>,
missing_mir: FxHashSet<String>,
opaque_control_flow: FxHashSet<String>,
incomplete_inline_branch: bool,
}Expand description
Diagnostic evidence collected while replaying one path.
Fields§
§active_mir: Option<ActiveMirLocation>Current MIR item used to locate new diagnostics and memory events.
unsupported_mir: bool§unattributed_unsupported: bool§unsupported_details: FxHashSet<String>§unsupported_effects: FxHashSet<String>§missing_mir: FxHashSet<String>§opaque_control_flow: FxHashSet<String>§incomplete_inline_branch: boolImplementations§
Source§impl Diagnostics
impl Diagnostics
pub(crate) fn location_label(&self, tcx: TyCtxt<'_>) -> Option<String>
pub(crate) fn is_unsupported(&self) -> bool
pub(crate) fn mark_unsupported(&mut self)
pub(crate) fn mark_unsupported_if(&mut self, condition: bool)
pub(crate) fn has_incomplete_inline_branch(&self) -> bool
pub(crate) fn unsupported_details(&self) -> &FxHashSet<String>
pub(crate) fn unsupported_effects(&self) -> &FxHashSet<String>
pub(crate) fn missing_mir(&self) -> &FxHashSet<String>
pub(crate) fn opaque_control_flow(&self) -> &FxHashSet<String>
pub(crate) fn record_unsupported( &mut self, location: Option<&str>, operation: &str, )
pub(crate) fn record_unsupported_effect( &mut self, location: Option<&str>, effect: &str, )
pub(crate) fn record_missing_mir( &mut self, location: Option<&str>, callee: &str, )
pub(crate) fn record_opaque_control_flow( &mut self, location: Option<&str>, operation: &str, )
pub(crate) fn recover_copy_memory_target(&mut self, before: &Self)
pub(crate) fn only_missing_mir_since(&self, before: &Self) -> bool
pub(crate) fn recover_missing_mir(&mut self, before: &Self)
pub(crate) fn needs_statement_fallback(&self, was_unsupported: bool) -> bool
pub(crate) fn needs_terminator_fallback( &self, was_unsupported: bool, previous_missing_mir: usize, ) -> bool
pub(crate) fn missing_mir_count(&self) -> usize
pub(crate) fn merge_inline_fallback(&mut self, explored: &Self)
Trait Implementations§
Source§impl Clone for Diagnostics
impl Clone for Diagnostics
Auto Trait Implementations§
impl DynSend for Diagnostics
impl DynSync for Diagnostics
impl Forget for Diagnostics
impl Freeze for Diagnostics
impl Move for Diagnostics
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl UnsafeUnpin for Diagnostics
impl UnwindSafe for Diagnostics
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