fn inner_resolve_instance<'tcx>(
    tcx: TyCtxt<'tcx>,
    key: ParamEnvAnd<'tcx, (WithOptConstParam<DefId>, SubstsRef<'tcx>)>
) -> Result<Option<Instance<'tcx>>, ErrorGuaranteed>