pub(super) fn report<'tcx>(
ecx: &InterpCx<'tcx, CompileTimeMachine<'tcx>>,
error: InterpErrorKind<'tcx>,
mk: impl FnOnce(&mut Diag<'_>, Span, Vec<FrameNote>),
) -> ErrorHandledExpand description
Create a diagnostic for a const eval error.
This will use the mk function for adding more information to the error.
You can use it to add a stacktrace of current execution according to
get_span_and_frames or just give context on where the const eval error happened.