Skip to content

Conversation

@Amanieu
Copy link
Member

@Amanieu Amanieu commented Dec 2, 2025

This follows the lang team decision here and renames:

  • supertrait_item_shadowing_definition to shadowing_supertrait_items
  • supertrait_item_shadowing_usage to resolving_to_items_shadowing_supertrait_items

The lint levels are left unchanged as allow-by-default until stabilization.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 2, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 2, 2025

r? @madsmtm

rustbot has assigned @madsmtm.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

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,
Copy link
Member

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,
Copy link
Member

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.

@lqd
Copy link
Member

lqd commented Dec 2, 2025

r? lqd, r=me when CI is green

@rustbot rustbot assigned lqd and unassigned madsmtm Dec 2, 2025
@Amanieu Amanieu force-pushed the supertrait-shadowing-lints branch from 6e3af4c to e833f24 Compare December 2, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants