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

Revisit "must camel case identifiers" lint warning on by default #3618

Closed
erickt opened this issue Sep 28, 2012 · 4 comments
Closed

Revisit "must camel case identifiers" lint warning on by default #3618

erickt opened this issue Sep 28, 2012 · 4 comments
Milestone

Comments

@erickt
Copy link
Contributor

erickt commented Sep 28, 2012

I like camel casing types that came from #3060, but sometimes I feel the warning is a little too strict. I'm porting erickt/rust-crypto to 0.4, and it has complicated enum variants like AES_256_ECB, which don't read nicely as Aes256Ecb. I ran into the same thing updating rust-elasticsearch, where I converted DFS_QUERY_THEN_FETCH to DfsQueryThenFetch, which made me sad.

I heard @graydon has some reservations with this lint checker on by default, so I figure maybe we should talk this through if it's not a settled issue. What does the community think about turning this into an opt-in lint? Or if that ship has already sailed, what about allowing types, traits, and variants to have _ in them?

@brson
Copy link
Contributor

brson commented Sep 29, 2012

Putting this on 0.4 to make sure we discuss it before releasing a potentially annoying feature to the wild.

@bblum
Copy link
Contributor

bblum commented Sep 29, 2012

There is #[allow(non_camel_case_types)]. If the problem types are truly the 'uncommon' case, then we should have to use that for them.

@brson
Copy link
Contributor

brson commented Oct 2, 2012

This warning is disabled by default again. Can revisit later.

@brson brson closed this as completed Oct 2, 2012
@ghost
Copy link

ghost commented Jun 4, 2019

Not sure if there's a 'modern' issue tracking this, but, they seem to be enabled by default in 1.35.0.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 27, 2024
Android: Added support for prctl handling thread names

Addresses the first part of rust-lang#3618.
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

No branches or pull requests

3 participants