Enum rustc_mir::interpret::ErrorHandled [−][src]
pub enum ErrorHandled {
Reported(ErrorReported),
Linted,
TooGeneric,
}Variants
Reported(ErrorReported)Already reported an error for this evaluation, and the compilation is
guaranteed to fail. Warnings/lints must not produce Reported.
Already emitted a lint for this evaluation.
Don’t emit an error, the evaluation failed because the MIR was generic and the substs didn’t fully monomorphize it.
Auto Trait Implementations
impl RefUnwindSafe for ErrorHandledimpl Send for ErrorHandledimpl Sync for ErrorHandledimpl Unpin for ErrorHandledimpl UnwindSafe for ErrorHandledBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> TLayout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 1 byte