-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Suggest cfg(false) instead of cfg(FALSE)
#149792
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
base: main
Are you sure you want to change the base?
Conversation
|
Some changes occurred in check-cfg diagnostics cc @Urgau |
|
LGTM. r=me once CI passes. @bors delegate+ |
|
✌️ @clubby789, you can now approve this pull request! If @joshtriplett told you to " |
This comment has been minimized.
This comment has been minimized.
| //@ compile-flags: --check-cfg=cfg() | ||
| //@ run-rustfix | ||
|
|
||
| #[cfg(FALSE)] |
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.
This will not work on cases like "False" right?
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.
|
hm, have you seen @scrabsha's work on uppercase/lowercase suggestions in the parser? I think it'd be cool if we could suggest against all mis-capitalizations here and maybe do that in a general enough way that all attribute parsers can benefit from it instead of a cfg-specific lint. At least, could you take a quick look if we can re-use the parsing infra for it? I like it when the error messages are consistent :) |
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.
if that doesn't help let me know and I'll approve this version. The change is a good one.
|
Reminder, once the PR becomes ready for a review, use |
|
@bors delegate- |
Split from #149791
cc @Urgau