@@ -88,6 +88,7 @@ declare_lint_pass! {
8888 RENAMED_AND_REMOVED_LINTS ,
8989 REPR_C_ENUMS_LARGER_THAN_INT ,
9090 REPR_TRANSPARENT_NON_ZST_FIELDS ,
91+ RESOLVING_TO_ITEMS_SHADOWING_SUPERTRAIT_ITEMS ,
9192 RTSAN_NONBLOCKING_ASYNC ,
9293 RUST_2021_INCOMPATIBLE_CLOSURE_CAPTURES ,
9394 RUST_2021_INCOMPATIBLE_OR_PATTERNS ,
@@ -98,11 +99,10 @@ declare_lint_pass! {
9899 RUST_2024_PRELUDE_COLLISIONS ,
99100 SELF_CONSTRUCTOR_FROM_OUTER_ITEM ,
100101 SEMICOLON_IN_EXPRESSIONS_FROM_MACROS ,
102+ SHADOWING_SUPERTRAIT_ITEMS ,
101103 SINGLE_USE_LIFETIMES ,
102104 SOFT_UNSTABLE ,
103105 STABLE_FEATURES ,
104- SUPERTRAIT_ITEM_SHADOWING_DEFINITION ,
105- SUPERTRAIT_ITEM_SHADOWING_USAGE ,
106106 TAIL_EXPR_DROP_ORDER ,
107107 TEST_UNSTABLE_LINT ,
108108 TEXT_DIRECTION_CODEPOINT_IN_COMMENT ,
@@ -4922,15 +4922,16 @@ declare_lint! {
49224922}
49234923
49244924declare_lint ! {
4925- /// The `supertrait_item_shadowing_usage ` lint detects when the
4925+ /// The `resolving_to_items_shadowing_supertrait_items ` lint detects when the
49264926 /// usage of an item that is provided by both a subtrait and supertrait
49274927 /// is shadowed, preferring the subtrait.
49284928 ///
49294929 /// ### Example
49304930 ///
4931- /// ```rust,compile_fail
4931+ #[ cfg_attr( bootstrap, doc = "```ignore" ) ]
4932+ #[ cfg_attr( not( bootstrap) , doc = "```rust,compile_fail" ) ]
49324933 /// #![feature(supertrait_item_shadowing)]
4933- /// #![deny(supertrait_item_shadowing_usage )]
4934+ /// #![deny(resolving_to_items_shadowing_supertrait_items )]
49344935 ///
49354936 /// trait Upstream {
49364937 /// fn hello(&self) {}
@@ -4944,7 +4945,8 @@ declare_lint! {
49444945 ///
49454946 /// struct MyType;
49464947 /// MyType.hello();
4947- /// ```
4948+ #[ cfg_attr( bootstrap, doc = "```" ) ]
4949+ #[ cfg_attr( not( bootstrap) , doc = "```" ) ]
49484950 ///
49494951 /// {{produces}}
49504952 ///
@@ -4955,7 +4957,7 @@ declare_lint! {
49554957 /// selection. In order to mitigate side-effects of this happening
49564958 /// silently, this lint detects these cases when users want to deny them
49574959 /// or fix the call sites.
4958- pub SUPERTRAIT_ITEM_SHADOWING_USAGE ,
4960+ pub RESOLVING_TO_ITEMS_SHADOWING_SUPERTRAIT_ITEMS ,
49594961 // FIXME(supertrait_item_shadowing): It is not decided if this should
49604962 // warn by default at the call site.
49614963 Allow ,
@@ -4964,15 +4966,16 @@ declare_lint! {
49644966}
49654967
49664968declare_lint ! {
4967- /// The `supertrait_item_shadowing_definition ` lint detects when the
4969+ /// The `shadowing_supertrait_items ` lint detects when the
49684970 /// definition of an item that is provided by both a subtrait and
49694971 /// supertrait is shadowed, preferring the subtrait.
49704972 ///
49714973 /// ### Example
49724974 ///
4973- /// ```rust,compile_fail
4975+ #[ cfg_attr( bootstrap, doc = "```ignore" ) ]
4976+ #[ cfg_attr( not( bootstrap) , doc = "```rust,compile_fail" ) ]
49744977 /// #![feature(supertrait_item_shadowing)]
4975- /// #![deny(supertrait_item_shadowing_definition )]
4978+ /// #![deny(shadowing_supertrait_items )]
49764979 ///
49774980 /// trait Upstream {
49784981 /// fn hello(&self) {}
@@ -4983,7 +4986,8 @@ declare_lint! {
49834986 /// fn hello(&self) {}
49844987 /// }
49854988 /// impl<T> Downstream for T {}
4986- /// ```
4989+ #[ cfg_attr( bootstrap, doc = "```" ) ]
4990+ #[ cfg_attr( not( bootstrap) , doc = "```" ) ]
49874991 ///
49884992 /// {{produces}}
49894993 ///
@@ -4994,7 +4998,7 @@ declare_lint! {
49944998 /// selection. In order to mitigate side-effects of this happening
49954999 /// silently, this lint detects these cases when users want to deny them
49965000 /// or fix their trait definitions.
4997- pub SUPERTRAIT_ITEM_SHADOWING_DEFINITION ,
5001+ pub SHADOWING_SUPERTRAIT_ITEMS ,
49985002 // FIXME(supertrait_item_shadowing): It is not decided if this should
49995003 // warn by default at the usage site.
50005004 Allow ,
0 commit comments