diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-30 17:44:58 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-10-01 01:44:25 +0200 |
| commit | a076fef2b647399f2fb0575830fb07320fb3b6f5 (patch) | |
| tree | 714c1b311605131ae37b75c6248c93368d2be82c /src/libstd/num | |
| parent | 8174618a05c44a9b90806aa7b848cb9b7ab62d25 (diff) | |
| download | rust-a076fef2b647399f2fb0575830fb07320fb3b6f5.tar.gz rust-a076fef2b647399f2fb0575830fb07320fb3b6f5.zip | |
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.
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/f32.rs | 1 | ||||
| -rw-r--r-- | src/libstd/num/f64.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/num/f32.rs b/src/libstd/num/f32.rs index afa1acd0897..be8aa369b4b 100644 --- a/src/libstd/num/f32.rs +++ b/src/libstd/num/f32.rs @@ -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; diff --git a/src/libstd/num/f64.rs b/src/libstd/num/f64.rs index 5dbeb6c298f..18d0037469d 100644 --- a/src/libstd/num/f64.rs +++ b/src/libstd/num/f64.rs @@ -12,6 +12,7 @@ #[allow(missing_doc)]; #[allow(non_uppercase_statics)]; +#[allow(non_uppercase_pattern_statics)]; use default::Default; use libc::c_int; |
