Skip to content

Commit ab854da

Browse files
Rollup merge of #150834 - multiple_supertrait_upcastable-not-internal, r=Kivooeo
Add tracking issue for `feature(multiple_supertrait_upcastable)` Move feature(multiple_supertrait_upcastable) to the actual feature gates section (from the internal feature gates section) and give it a tracking issue. Tracking issue: #150833 Fixes #150773 This feature is for the `multiple_supertrait_upcastable` lint, which was added as `unstable` without a tracking issue, but was placed in the internal feature gates section. This PR moves its listing to the actual feature gates section and gives it a tracking issue. If the lint is intended to stay internal-only, then this can be changed to instead mark it as `internal` (and maybe close the tracking issue).
2 parents 0548617 + 5466c6b commit ab854da

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

compiler/rustc_feature/src/unstable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ declare_features! (
233233
(internal, link_cfg, "1.14.0", None),
234234
/// Allows using `?Trait` trait bounds in more contexts.
235235
(internal, more_maybe_bounds, "1.82.0", None),
236-
/// Allows the `multiple_supertrait_upcastable` lint.
237-
(unstable, multiple_supertrait_upcastable, "1.69.0", None),
238236
/// Allow negative trait bounds. This is an internal-only feature for testing the trait solver!
239237
(internal, negative_bounds, "1.71.0", None),
240238
/// Set the maximum pattern complexity allowed (not limited by default).
@@ -569,6 +567,8 @@ declare_features! (
569567
(unstable, more_qualified_paths, "1.54.0", Some(86935)),
570568
/// The `movrs` target feature on x86.
571569
(unstable, movrs_target_feature, "1.88.0", Some(137976)),
570+
/// Allows the `multiple_supertrait_upcastable` lint.
571+
(unstable, multiple_supertrait_upcastable, "1.69.0", Some(150833)),
572572
/// Allows the `#[must_not_suspend]` attribute.
573573
(unstable, must_not_suspend, "1.57.0", Some(83310)),
574574
/// Allows `mut ref` and `mut ref mut` identifier patterns.

tests/ui/feature-gates/feature-gate-multiple_supertrait_upcastable.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ LL | #![deny(multiple_supertrait_upcastable)]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: the `multiple_supertrait_upcastable` lint is unstable
8+
= note: see issue #150833 <https://github.com/rust-lang/rust/issues/150833> for more information
89
= help: add `#![feature(multiple_supertrait_upcastable)]` to the crate attributes to enable
910
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1011
= note: `#[warn(unknown_lints)]` on by default
@@ -16,6 +17,7 @@ LL | #![warn(multiple_supertrait_upcastable)]
1617
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1718
|
1819
= note: the `multiple_supertrait_upcastable` lint is unstable
20+
= note: see issue #150833 <https://github.com/rust-lang/rust/issues/150833> for more information
1921
= help: add `#![feature(multiple_supertrait_upcastable)]` to the crate attributes to enable
2022
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2123

0 commit comments

Comments
 (0)