The gemara in Pesachim 46b appears to contain an argument as to why it is biblically permitted to cook on yom tov for a shabbat which immediately follows it.
Rabbah implies that we need to rely on the principle of ho'il i.e. you can cook on yom tov for the purposes of shabbat, since you may actually need the food on yom tov, if guests unexpectedly turn up.
Rav Chisdah says that there is no need to use ho'il. It is completely permitted to prepare on shabbat for yom tov.
This is all on a biblical level. Rabinically, one needs an Eruv Tavshilin in order to cook on yom tov for shabbat (as discussed in Beitzah 15a).
Seemingly, according to Rabbah, even if one makes an Eruv Tavshilin, one would need to cook early enough on Friday to be able to use the food on yom tov itself, if guests were to turn up.
Is this really what Rabbah holds? Is this discussed by Rishonim?
If it is true, does anyone hold like Rabbah (or are they at least worried enough to take this position into account)? I'm looking for sources in classical or modern-day poskim that discuss how late one can cook on Friday with an Eruv Tavshilin.