-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Rename supertrait item shadowing lints #149532
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
This comment has been minimized.
This comment has been minimized.
| /// silently, this lint detects these cases when users want to deny them | ||
| /// or fix the call sites. | ||
| pub SUPERTRAIT_ITEM_SHADOWING_USAGE, | ||
| pub RESOLVING_TO_ITEMS_SHADOWING_SUPERTRAIT_ITEMS, |
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.
Ah the #![deny(supertrait_item_shadowing_usage)] in the doc example above should also be changed to #![deny(resolving_to_items_shadowing_supertrait_items)]
| /// silently, this lint detects these cases when users want to deny them | ||
| /// or fix their trait definitions. | ||
| pub SUPERTRAIT_ITEM_SHADOWING_DEFINITION, | ||
| pub SHADOWING_SUPERTRAIT_ITEMS, |
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.
Same issue here for the #![deny(supertrait_item_shadowing_definition)] above.
|
r? lqd, r=me when CI is green |
6e3af4c to
e833f24
Compare
This follows the lang team decision here and renames:
supertrait_item_shadowing_definitiontoshadowing_supertrait_itemssupertrait_item_shadowing_usagetoresolving_to_items_shadowing_supertrait_itemsThe lint levels are left unchanged as allow-by-default until stabilization.