Update ring_buf.rs from fallout of #18827.