about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-03 04:31:50 -0700
committerbors <bors@rust-lang.org>2013-07-03 04:31:50 -0700
commit55f155521d2f604794d2ab1de2a8d439440af4a8 (patch)
tree69ef091fd4237ad3109b7e05e99421b97a576b0f /src/etc
parent6caaa34dedc45543e4d2c7600f952e042d9258df (diff)
parentc437a16c5d8c00b39dc6c5e36011def997d77224 (diff)
auto merge of #7523 : huonw/rust/uppercase-statics-lint, r=cmr
Adds a lint for `static some_lowercase_name: uint = 1;`. Warning by default since it causes confusion, e.g. `static a: uint = 1; ... let a = 2;` => `error: only refutable patterns allowed here`.
Diffstat (limited to 'src/etc')
-rwxr-xr-xsrc/etc/unicode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/unicode.py b/src/etc/unicode.py
index 2a252f3f1f3..afcbc0a9859 100755
--- a/src/etc/unicode.py
+++ b/src/etc/unicode.py
@@ -250,6 +250,7 @@ rf.write('''// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGH
 // The following code was generated by "src/etc/unicode.py"
 
 #[allow(missing_doc)];
+#[allow(non_uppercase_statics)];
 
 ''')