Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uppercase statics lint #7523

Merged
merged 2 commits into from
Jul 3, 2013
Merged

Uppercase statics lint #7523

merged 2 commits into from
Jul 3, 2013

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