diff options
| author | P1start <rewi-github@whanau.org> | 2014-07-19 00:45:17 +1200 |
|---|---|---|
| committer | P1start <rewi-github@whanau.org> | 2014-08-30 09:10:05 +1200 |
| commit | de7abd88244a9fe7033cb71e22af0601d1b811b9 (patch) | |
| tree | 0f57eaeba2ecc2d72a618872a7e06885d5e611db /src/test/bench | |
| parent | bd159d3867473ee43959706519066531d76af7ba (diff) | |
| download | rust-de7abd88244a9fe7033cb71e22af0601d1b811b9.tar.gz rust-de7abd88244a9fe7033cb71e22af0601d1b811b9.zip | |
Unify non-snake-case lints and non-uppercase statics lints
This unifies the `non_snake_case_functions` and `uppercase_variables` lints into one lint, `non_snake_case`. It also now checks for non-snake-case modules. This also extends the non-camel-case types lint to check type parameters, and merges the `non_uppercase_pattern_statics` lint into the `non_uppercase_statics` lint. Because the `uppercase_variables` lint is now part of the `non_snake_case` lint, all non-snake-case variables that start with lowercase characters (such as `fooBar`) will now trigger the `non_snake_case` lint. New code should be updated to use the new `non_snake_case` lint instead of the previous `non_snake_case_functions` and `uppercase_variables` lints. All use of the `non_uppercase_pattern_statics` should be replaced with the `non_uppercase_statics` lint. Any code that previously contained non-snake-case module or variable names should be updated to use snake case names or disable the `non_snake_case` lint. Any code with non-camel-case type parameters should be changed to use camel case or disable the `non_camel_case_types` lint. [breaking-change]
Diffstat (limited to 'src/test/bench')
| -rw-r--r-- | src/test/bench/shootout-spectralnorm.rs | 2 | ||||
| -rw-r--r-- | src/test/bench/sudoku.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/bench/shootout-spectralnorm.rs b/src/test/bench/shootout-spectralnorm.rs index 2cbbfdb23fe..49c12334844 100644 --- a/src/test/bench/shootout-spectralnorm.rs +++ b/src/test/bench/shootout-spectralnorm.rs @@ -11,7 +11,7 @@ // no-pretty-expanded FIXME #15189 #![feature(phase)] -#![allow(non_snake_case_functions)] +#![allow(non_snake_case)] #[phase(plugin)] extern crate green; use std::from_str::FromStr; diff --git a/src/test/bench/sudoku.rs b/src/test/bench/sudoku.rs index 7129d4993b7..728f6bd043a 100644 --- a/src/test/bench/sudoku.rs +++ b/src/test/bench/sudoku.rs @@ -10,7 +10,7 @@ // ignore-pretty very bad with line comments -#![allow(non_snake_case_functions)] +#![allow(non_snake_case)] use std::io; use std::io::stdio::StdReader; |
