-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix non_camel_case_types
for screaming single-words
#116389
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @petrochenkov (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt |
This comment has been minimized.
This comment has been minimized.
This PR changes Stable MIR cc @oli-obk, @celinval, @spastorino |
This comment has been minimized.
This comment has been minimized.
This does look like an improvement to me. |
9d04f23
to
c687d70
Compare
This PR changes Stable MIR cc @oli-obk, @celinval, @spastorino |
This comment has been minimized.
This comment has been minimized.
c687d70
to
aff01cf
Compare
This comment has been minimized.
This comment has been minimized.
aff01cf
to
7dde3ef
Compare
This comment has been minimized.
This comment has been minimized.
7dde3ef
to
779e041
Compare
These commits modify compiler targets. Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
Thanks for all the feedback!
I can definitely see that--I think I've fixed most of the violations I could find, though it feels like new ones keep popping up whenever I do 😅 . If you (or anyone else) see fit, I'd be more than willing to close this PR because of this. @rustbot review |
I'm going to nominate this for the lang team. A relaxed version of this PR could be bumping the length limit from 3 letters to 4. |
☔ The latest upstream changes (presumably #116855) made this pull request unmergeable. Please resolve the merge conflicts. |
Some prior art: C#'s rules require upper for two-letter acronyms, like (No idea if that's good or not, but it came to mind.) |
We discussed this in the lang triage meeting today. While many felt that most of the changes in the PR "felt more Rust-y", there was lots of concern about how much churn this might be pushing on people, based on all the edits needed in the PR. Can you say more about the motivation here? How essential is this? Personally, the note from #116389 (comment) about maybe moving the threshold for complaining about it seems potentially interesting as a way to have this handle the most egregious cases without being so noisy. |
I'd say the main motivation here (as mentioned in the original issue) is just to be more compliant with RFC430, though I wouldn't say it's essential, especially for 3-letter screaming words.
I agree--I think raising the limit to 4 upper-case characters would be a good compromise, though I'll leave the final call on what to do up to you all. |
We discussed this in the T-lang meeting today alongside #60570. The feeling was that simple heuristics aren't powerful enough to reliably check whether or not some string is following the camel case style since, e.g., a series of upper-case letters may be a series of single letter words or may be an initialism (rather than acronym) that it may be more appropriate to leave capitalized. As @joshtriplett explains over in #60570:
And as @scottmcm noted:
People also felt it might just be too opinionated for With this context, a proposal for FCP close will be forthcoming. |
On the basis of the above comment, @rfcbot fcp close |
Team member @tmandry has proposed to close this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
@rfcbot reviewed But as I said earlier (#116389 (comment)), I might still be interested in different tweaks at different points in the "how confident can we be" spectrum. I don't have enough data to know where that would be, but at some point I think the odds that |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to close, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
Fixes #116336