pub(crate) fn try_destructure_const<'tcx>(
    tcx: TyCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
    val: Const<'tcx>
) -> InterpResult<'tcx, DestructuredConst<'tcx>>
Expand description

This function should never fail for validated constants. However, it is also invoked from the pretty printer which might attempt to format invalid constants and in that case it might fail.