Clean lint on test build
Implement `size_hint` for Range

Closes #8606
auto merge of #10416 : cmr/rust/range_size_hint, r=huonw