diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-07-12 10:35:18 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-07-14 09:29:12 -0700 |
| commit | 23fbe936bfa28fc2c16ec5e321cbe293ef044c0a (patch) | |
| tree | 02a33c2ec74e2091b46cdd418a894a8caaa0f0af /src | |
| parent | 66e2857253ff9bc8ce299398ad5bb346d64e3fc3 (diff) | |
| download | rust-23fbe936bfa28fc2c16ec5e321cbe293ef044c0a.tar.gz rust-23fbe936bfa28fc2c16ec5e321cbe293ef044c0a.zip | |
Allow non-uppercase-statics by default
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/middle/lint.rs | 2 | ||||
| -rw-r--r-- | src/librustc/rustc.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/syntax.rs | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/src/librustc/middle/lint.rs b/src/librustc/middle/lint.rs index 83eb2db2fe7..b679da714a1 100644 --- a/src/librustc/middle/lint.rs +++ b/src/librustc/middle/lint.rs @@ -209,7 +209,7 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[ LintSpec { lint: non_uppercase_statics, desc: "static constants should have uppercase identifiers", - default: warn + default: allow }), ("managed_heap_memory", diff --git a/src/librustc/rustc.rs b/src/librustc/rustc.rs index 1e5e9ece288..787d8d5685a 100644 --- a/src/librustc/rustc.rs +++ b/src/librustc/rustc.rs @@ -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; diff --git a/src/libsyntax/syntax.rs b/src/libsyntax/syntax.rs index 7cb211a402b..7a1e9923ab7 100644 --- a/src/libsyntax/syntax.rs +++ b/src/libsyntax/syntax.rs @@ -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; |
