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:
parent
8174618a05
commit
a076fef2b6
12 changed files with 129 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[allow(missing_doc)];
|
||||
#[allow(non_uppercase_statics)];
|
||||
#[allow(non_uppercase_pattern_statics)];
|
||||
|
||||
use default::Default;
|
||||
use libc::c_int;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue