Clean up rustc warnings.

These are basically all straightforward changes and should not impact behavior of the language.