add MoveItems to RingBuf, fixes  #19085

r? @huonw @csherratt
Note, I removed this because I just noticed it wasn't necessary while I was in here. In the zero-sized case the ptr is non-null, offsetting it does nothing, so dereffing it should be A-ok. (also next_back just doesn't bother)