about summary refs log tree commit diff
path: root/src/libstd/num/float.rs
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/libstd/num/float.rs
parent6caaa34dedc45543e4d2c7600f952e042d9258df (diff)
parentc437a16c5d8c00b39dc6c5e36011def997d77224 (diff)
downloadrust-55f155521d2f604794d2ab1de2a8d439440af4a8.tar.gz
rust-55f155521d2f604794d2ab1de2a8d439440af4a8.zip
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/libstd/num/float.rs')
-rw-r--r--src/libstd/num/float.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/num/float.rs b/src/libstd/num/float.rs
index 7a6e3042e7b..d73ff16c6f7 100644
--- a/src/libstd/num/float.rs
+++ b/src/libstd/num/float.rs
@@ -21,6 +21,7 @@
 // PORT this must match in width according to architecture
 
 #[allow(missing_doc)];
+#[allow(non_uppercase_statics)];
 
 use f64;
 use libc::c_int;