Make BytePos 32-bit
auto merge of #10567 : sanxiyn/rust/bytepos, r=alexcrichton