diff options
| author | P1start <rewi-github@whanau.org> | 2014-09-13 13:55:37 +1200 |
|---|---|---|
| committer | P1start <rewi-github@whanau.org> | 2014-10-03 20:39:56 +1300 |
| commit | 94bcd3539c761b4ecf423800bce21057c4e961fa (patch) | |
| tree | 51c0030bfc0a527ce57da49f0987f726ea0ed912 /src/libsyntax/parse | |
| parent | aa034cd3bac3155e0f6c74c399314b5ee32f88fc (diff) | |
| download | rust-94bcd3539c761b4ecf423800bce21057c4e961fa.tar.gz rust-94bcd3539c761b4ecf423800bce21057c4e961fa.zip | |
Set the `non_uppercase_statics` lint to warn by default
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index a486ac40a97..a8c827439cc 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -383,12 +383,15 @@ macro_rules! declare_special_idents_and_keywords {( pub mod special_idents { use ast::{Ident, Name}; - $( pub static $si_static: Ident = Ident { name: Name($si_name), ctxt: 0 }; )* + $( + #[allow(non_uppercase_statics)] + pub static $si_static: Ident = Ident { name: Name($si_name), ctxt: 0 }; + )* } pub mod special_names { use ast::Name; - $( pub static $si_static: Name = Name($si_name); )* + $( #[allow(non_uppercase_statics)] pub static $si_static: Name = Name($si_name); )* } /** |
