Struct rustc_middle::mir::interpret::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> !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
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
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: &[QueryInfo], _guar: ErrorGuaranteed ) -> T
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