Add new lint: non_uppercase_pattern_statics, for #7526.

This tries to warn about code like:
    ```rust
    match (0,0) {
        (0, aha) => { ... },
        ...
    }
    ```
where `aha` is actually a static constant, not a binding.
This commit is contained in:
Felix S. Klock II 2013-09-30 17:44:58 +02:00
parent 8174618a05
commit a076fef2b6
12 changed files with 129 additions and 0 deletions

View file

@ -11,6 +11,7 @@
//! Operations and constants for `f32`
#[allow(missing_doc)];
#[allow(non_uppercase_statics)];
#[allow(non_uppercase_pattern_statics)];
use default::Default;
use libc::c_int;

View file

@ -12,6 +12,7 @@
#[allow(missing_doc)];
#[allow(non_uppercase_statics)];
#[allow(non_uppercase_pattern_statics)];
use default::Default;
use libc::c_int;