rollup merge of #23097: alexcrichton/issue-23076
rollup merge of #23097: alexcrichton/issue-23076

The `rsplitn` call was called with 2 instead of 1 so the iterator would yield 3
items in some cases, not the 2 that it should have.

Closes #23076

GBGamer/rust,jashank/rust,l0kod/rust,vhbit/rust,AerialX/rust-rt-minimal,rprichard/rust,dwillmer/rust,rprichard/rust,ejjeong/rust,philyoon/rust,seanrivera/rust,jashank/rust,l0kod/rust,ebfull/rust,carols10cents/rust,l0kod/rust,reem/rust,robertg/rust,zubron/rust,pelmers/rust,reem/rust,gifnksm/rust,zaeleus/rust,pelmers/rust,miniupnp/rust,ejjeong/rust,jroesch/rust,mvdnes/rust,nwin/rust,krzysz00/rust,mvdnes/rust,aidancully/rust,graydon/rust,carols10cents/rust,mahkoh/rust,robertg/rust,AerialX/rust-rt-minimal,cllns/rust,l0kod/rust,andars/rust,reem/rust,aidancully/rust,aneeshusa/rust,GBGamer/rust,graydon/rust,gifnksm/rust,aneeshusa/rust,nwin/rust,robertg/rust,mdinger/rust,AerialX/rust,jashank/rust,GBGamer/rust,TheNeikos/rust,vhbit/rust,aidancully/rust,omasanori/rust,sae-bom/rust,omasanori/rust,andars/rust,victorvde/rust,robertg/rust,jashank/rust,AerialX/rust,victorvde/rust,gifnksm/rust,XMPPwocky/rust,jashank/rust,gifnksm/rust,ejjeong/rust,KokaKiwi/rust,gifnksm/rust,victorvde/rust,aneeshusa/rust,cllns/rust,mdinger/rust,krzysz00/rust,miniupnp/rust,carols10cents/rust,zubron/rust,ebfull/rust,ruud-v-a/rust,avdi/rust,l0kod/rust,KokaKiwi/rust,avdi/rust,graydon/rust,avdi/rust,nwin/rust,aidancully/rust,XMPPwocky/rust,philyoon/rust,philyoon/rust,aneeshusa/rust,miniupnp/rust,miniupnp/rust,l0kod/rust,vhbit/rust,zaeleus/rust,rohitjoshi/rust,KokaKiwi/rust,nwin/rust,jroesch/rust,dwillmer/rust,zachwick/rust,TheNeikos/rust,pelmers/rust,jashank/rust,omasanori/rust,carols10cents/rust,zachwick/rust,pshc/rust,rohitjoshi/rust,AerialX/rust,jroesch/rust,andars/rust,avdi/rust,rprichard/rust,mahkoh/rust,mihneadb/rust,XMPPwocky/rust,aidancully/rust,zaeleus/rust,nwin/rust,seanrivera/rust,AerialX/rust-rt-minimal,graydon/rust,miniupnp/rust,graydon/rust,vhbit/rust,AerialX/rust-rt-minimal,aneeshusa/rust,GBGamer/rust,aidancully/rust,ebfull/rust,seanrivera/rust,andars/rust,zubron/rust,carols10cents/rust,victorvde/rust,cllns/rust,mvdnes/rust,ruud-v-a/rust,carols10cents/rust,mdinger/rust,ejjeong/rust,kwantam/rust,mdinger/rust,krzysz00/rust,mahkoh/rust,robertg/rust,mvdnes/rust,GBGamer/rust,reem/rust,jroesch/rust,rprichard/rust,jroesch/rust,mihneadb/rust,rohitjoshi/rust,philyoon/rust,jroesch/rust,dwillmer/rust,ruud-v-a/rust,zubron/rust,nwin/rust,zachwick/rust,sae-bom/rust,rohitjoshi/rust,rprichard/rust,TheNeikos/rust,jashank/rust,pelmers/rust,mahkoh/rust,jroesch/rust,omasanori/rust,zachwick/rust,kwantam/rust,zubron/rust,vhbit/rust,graydon/rust,dwillmer/rust,AerialX/rust-rt-minimal,dwillmer/rust,mahkoh/rust,kwantam/rust,robertg/rust,ebfull/rust,dwillmer/rust,victorvde/rust,cllns/rust,vhbit/rust,seanrivera/rust,reem/rust,vhbit/rust,TheNeikos/rust,andars/rust,andars/rust,aepsil0n/rust,sae-bom/rust,mvdnes/rust,miniupnp/rust,ruud-v-a/rust,mihneadb/rust,seanrivera/rust,zaeleus/rust,pshc/rust,pelmers/rust,sae-bom/rust,miniupnp/rust,omasanori/rust,seanrivera/rust,pshc/rust,krzysz00/rust,avdi/rust,GBGamer/rust,mdinger/rust,rohitjoshi/rust,zubron/rust,cllns/rust,AerialX/rust,jroesch/rust,AerialX/rust-rt-minimal,ruud-v-a/rust,TheNeikos/rust,reem/rust,philyoon/rust,pshc/rust,zaeleus/rust,KokaKiwi/rust,nwin/rust,sae-bom/rust,pshc/rust,zaeleus/rust,mihneadb/rust,AerialX/rust,KokaKiwi/rust,pelmers/rust,kwantam/rust,avdi/rust,aneeshusa/rust,kwantam/rust,kwantam/rust,zubron/rust,ebfull/rust,GBGamer/rust,ebfull/rust,aepsil0n/rust,XMPPwocky/rust,mahkoh/rust,miniupnp/rust,omasanori/rust,l0kod/rust,aepsil0n/rust,l0kod/rust,aepsil0n/rust,philyoon/rust,aepsil0n/rust,rohitjoshi/rust,pshc/rust,pshc/rust,cllns/rust,GBGamer/rust,jashank/rust,XMPPwocky/rust,nwin/rust,aepsil0n/rust,mihneadb/rust,zubron/rust,krzysz00/rust,zachwick/rust,sae-bom/rust,ruud-v-a/rust,gifnksm/rust,ejjeong/rust,mdinger/rust,zachwick/rust,dwillmer/rust,rprichard/rust,vhbit/rust,KokaKiwi/rust,TheNeikos/rust,pshc/rust,XMPPwocky/rust,mihneadb/rust,mvdnes/rust,krzysz00/rust,dwillmer/rust,AerialX/rust,ejjeong/rust,victorvde/rust