pub fn to_closure_sig( tcx: TyCtxt<'_>, closure_id: LocalDefId, tys: &[Ty], args: &GenericArgs, poly_sig: &PolyFnSig, no_panic: bool, ) -> PolyFnSig