Add eof to MemReader and BufReader

It's easy to figure out and useful as a sanity check sometimes.
auto merge of #11437 : sfackler/rust/mem-eof, r=alexcrichton

It's easy to figure out and useful as a sanity check sometimes.