Struct rustc_middle::mir::interpret::error::InterpErrorInfo
source · pub struct InterpErrorInfo<'tcx>(Box<InterpErrorInfoInner<'tcx>>);
Expand description
Packages the kind of error we got from the const code interpreter
up with a Rust-level backtrace of where the error occurred.
These should always be constructed by calling .into()
on
an InterpError
. In rustc_mir::interpret
, we have throw_err_*
macros for this.
Tuple Fields§
§0: Box<InterpErrorInfoInner<'tcx>>
Implementations§
source§impl<'tcx> InterpErrorInfo<'tcx>
impl<'tcx> InterpErrorInfo<'tcx>
pub fn into_parts(self) -> (InterpError<'tcx>, InterpErrorBacktrace)
pub fn into_kind(self) -> InterpError<'tcx>
pub fn kind(&self) -> &InterpError<'tcx>
Trait Implementations§
source§impl<'tcx> Debug for InterpErrorInfo<'tcx>
impl<'tcx> Debug for InterpErrorInfo<'tcx>
source§impl From<ErrorGuaranteed> for InterpErrorInfo<'_>
impl From<ErrorGuaranteed> for InterpErrorInfo<'_>
source§fn from(err: ErrorGuaranteed) -> Self
fn from(err: ErrorGuaranteed) -> Self
Converts to this type from the input type.
source§impl From<ErrorHandled> for InterpErrorInfo<'_>
impl From<ErrorHandled> for InterpErrorInfo<'_>
source§fn from(err: ErrorHandled) -> Self
fn from(err: ErrorHandled) -> Self
Converts to this type from the input type.
source§impl<'tcx> From<InterpError<'tcx>> for InterpErrorInfo<'tcx>
impl<'tcx> From<InterpError<'tcx>> for InterpErrorInfo<'tcx>
source§fn from(kind: InterpError<'tcx>) -> Self
fn from(kind: InterpError<'tcx>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'tcx> !DynSend for InterpErrorInfo<'tcx>
impl<'tcx> !DynSync for InterpErrorInfo<'tcx>
impl<'tcx> Freeze for InterpErrorInfo<'tcx>
impl<'tcx> !RefUnwindSafe for InterpErrorInfo<'tcx>
impl<'tcx> !Send for InterpErrorInfo<'tcx>
impl<'tcx> !Sync for InterpErrorInfo<'tcx>
impl<'tcx> Unpin for InterpErrorInfo<'tcx>
impl<'tcx> !UnwindSafe for InterpErrorInfo<'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
source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Filterable for T
impl<T> Filterable for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<P> IntoQueryParam<P> for P
impl<P> IntoQueryParam<P> for P
fn into_query_param(self) -> P
source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<'tcx, T> ToPredicate<'tcx, T> for T
impl<'tcx, T> ToPredicate<'tcx, T> for T
fn to_predicate(self, _tcx: TyCtxt<'tcx>) -> T
source§impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
default fn from_cycle_error( tcx: Tcx, cycle_error: &CycleError, _guar: ErrorGuaranteed ) -> T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
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: 8 bytes