rust-lang/rust — pull request #17215 by P1start (2014-09-12 23:50:30+00:00)
Title: A few fixes to lints and error messages

This updates the `unused` lint group to include more lints, updates the `non_snake_case` lint to give better suggestions, adds a note explaining why a lifetime cannot be elided, and tweaks various error messages. This also updates the `non_uppercase_statics` lint to be warn-by-default to match the other naming lints. For statics, this lint is particularly useful, because a non-uppercase static can easily collide with a pattern binding, resulting in very confusing errors.

Closes #15506.
Closes #15630.
Closes #15914.
Closes #15657.

This also partially implements #15838.