Skip to content

Conversation

huonw
Copy link
Member

@huonw huonw commented Jul 1, 2013

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.

bors added a commit that referenced this pull request Jul 3, 2013
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`.
@bors bors closed this Jul 3, 2013
@bors bors merged commit c437a16 into rust-lang:master Jul 3, 2013
bors added a commit that referenced this pull request Oct 17, 2016
Lint against lowercase static mut

Closes #37145.

Lint for non mut statics was added in #7523, and it explicitly did not cover mut statics. I am not sure why.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants