Fix many warnings.
auto merge of #6632 : steveklabnik/rust/remove_more_warnings, r=thestinger

With this, the build is almost 100% warning free.

One more can be fixed after the next snapshot, and there's one other that I filed an issue about already.