Skip to content

Commit 23fbe93

Browse files
committed
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.
1 parent 66e2857 commit 23fbe93

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/librustc/middle/lint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
209209
LintSpec {
210210
lint: non_uppercase_statics,
211211
desc: "static constants should have uppercase identifiers",
212-
default: warn
212+
default: allow
213213
}),
214214

215215
("managed_heap_memory",

src/librustc/rustc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#[crate_type = "lib"];
1919

2020
#[allow(non_implicitly_copyable_typarams)];
21-
#[allow(non_camel_case_types)];
22-
#[allow(non_uppercase_statics)];
2321
#[deny(deprecated_pattern)];
2422

2523
extern mod extra;

src/libsyntax/syntax.rs

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#[license = "MIT/ASL2"];
2121
#[crate_type = "lib"];
2222

23-
#[allow(non_camel_case_types)];
24-
#[allow(non_uppercase_statics)];
2523
#[deny(deprecated_pattern)];
2624

2725
extern mod extra;

0 commit comments

Comments
 (0)