-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Add FCW for derive helper attributes that will conflict with built-in attributes #151152
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 compiler/rustc_attr_parsing |
|
r? @chenyukang rustbot has assigned @chenyukang. Use |
This comment has been minimized.
This comment has been minimized.
54147eb to
c9b7a07
Compare
c9b7a07 to
4dda363
Compare
This comment has been minimized.
This comment has been minimized.
|
@bors r=chenyukang |
|
New deprecation lints go through language team process, and the lint name also doesn't follow naming conventions. |
|
@bors r- |
|
Commit 4dda363 has been unapproved. |
|
@rustbot label +I-lang-nominated I am nominating this for lang-team attention. What name should this lint have? The current name doesn't follow the naming conventions My main idea is |
This comment has been minimized.
This comment has been minimized.
|
The FCW lint seems reasonable. @rfcbot merge lang |
|
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
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 concern name We need to spend a few minutes reviewing the name. |
|
@rfcbot reviewed |
|
How about this name? |
|
Reminder, once the PR becomes ready for a review, use |
4dda363 to
3e42d72
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready |
3e42d72 to
a822dd5
Compare
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.
Looks reasonable to me.
|
Thanks. @rfcbot resolve name |
|
@rfcbot reviewed |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Adds a future-compatibility-warning deny-by-default lint that helps catch invalid derive helper attribute names early.
This issues the lint, saying that
ignorehelper will clash with the built-inignoreattribute.If you actually tried to use that
ignorehelper attribute, you won't be able to due to the ambiguity:Produces: