pub(crate) trait FromCycleError<'tcx>: Sized {
// Required method
fn from_cycle_error(
tcx: TyCtxt<'tcx>,
cycle_error: CycleError,
guar: ErrorGuaranteed,
) -> Self;
}Required Methods§
Sourcefn from_cycle_error(
tcx: TyCtxt<'tcx>,
cycle_error: CycleError,
guar: ErrorGuaranteed,
) -> Self
fn from_cycle_error( tcx: TyCtxt<'tcx>, cycle_error: CycleError, guar: ErrorGuaranteed, ) -> Self
Try to produce a Self value that represents an error form (e.g. TyKind::Error).
Note: the default impl calls raise_fatal, ending compilation immediately! Only a few
types override this with a non-fatal impl.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.