]> git.lizzy.rs Git - rust.git/commitdiff
Allow non-uppercase-statics by default
authorAlex Crichton <alex@alexcrichton.com>
Fri, 12 Jul 2013 17:35:18 +0000 (10:35 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 14 Jul 2013 16:29:12 +0000 (09:29 -0700)
I think of this as a stylistic opinion which shouldn't necessarily be enforced
by default on all users of rust, but that's just my opinion.

src/librustc/middle/lint.rs
src/librustc/rustc.rs
src/libsyntax/syntax.rs

index 83eb2db2fe77c0b2a2d503aeb0c409a3d12ad1c6..b679da714a174f4614d55f58d99eed8be2ee245d 100644 (file)
@@ -209,7 +209,7 @@ enum LintSource {
      LintSpec {
          lint: non_uppercase_statics,
          desc: "static constants should have uppercase identifiers",
-         default: warn
+         default: allow
      }),
 
     ("managed_heap_memory",
index 1e5e9ece288e856a646f94c7589025af6f4dd79e..787d8d5685a34b9357e3baf6f15dcf9d527c8b1a 100644 (file)
@@ -18,8 +18,6 @@
 #[crate_type = "lib"];
 
 #[allow(non_implicitly_copyable_typarams)];
-#[allow(non_camel_case_types)];
-#[allow(non_uppercase_statics)];
 #[deny(deprecated_pattern)];
 
 extern mod extra;
index 7cb211a402b49a27b419f342f0508fc79ace8206..7a1e9923ab72031f0ffa2feb1e81e7728c6cf73d 100644 (file)
@@ -20,8 +20,6 @@
 #[license = "MIT/ASL2"];
 #[crate_type = "lib"];
 
-#[allow(non_camel_case_types)];
-#[allow(non_uppercase_statics)];
 #[deny(deprecated_pattern)];
 
 extern mod extra;