-
Notifications
You must be signed in to change notification settings - Fork 384
Change lints hyphen to underscore #308
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
Conversation
Great, thanks 😄 Here is an example:
What do you think? :) |
How about marking the attributes as inner attributes? LIke #![deny(bad_style, ...)] By doing this way, we won't need |
Oh, that's even better, yes! |
Currently this modification fails to build due to rust-lang/rust#97440 |
ok, what do you prefer to do, then? All the proposed solutions work for me. The PR can even be merged as it is now. |
I'm currently preparing for a PR to fix the ICE. In the meanwhile, maybe we should continue to mark the code block as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me. Should we merge this? 🚀
I have changed lints to inner attributes👍 I think it's ready now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
rustc -D nonstandard-style
is a valid syntax;#[deny(nonstandard_style)]
is also valid. However,#[deny(nonstandard-style)]
will cause:Which is confusing if someone is trying to copy-paste the code into their own.