Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cbd44d7

Browse files
authoredFeb 7, 2025
Rollup merge of #134367 - WaffleLapkin:trait_upcasting_as_a_treat, r=compiler-errors
Stabilize `feature(trait_upcasting)` This feature was "done" for a while now, I think it's finally time to stabilize it! Stabilization report: #134367 (comment). cc reference PR: rust-lang/reference#1622. Closes #65991 (tracking issue), closes #89460 (the lint is no longer future incompat). r? compiler-errors
2 parents 64e06c0 + 4915995 commit cbd44d7

File tree

94 files changed

+140
-479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+140
-479
lines changed
 

‎compiler/rustc_feature/src/accepted.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ declare_features! (
400400
/// Allows `#[track_caller]` to be used which provides
401401
/// accurate caller location reporting during panic (RFC 2091).
402402
(accepted, track_caller, "1.46.0", Some(47809)),
403+
/// Allows dyn upcasting trait objects via supertraits.
404+
/// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
405+
(accepted, trait_upcasting, "CURRENT_RUSTC_VERSION", Some(65991)),
403406
/// Allows #[repr(transparent)] on univariant enums (RFC 2645).
404407
(accepted, transparent_enums, "1.42.0", Some(60405)),
405408
/// Allows indexing tuples.

‎compiler/rustc_feature/src/unstable.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,6 @@ declare_features! (
634634
(unstable, thread_local, "1.0.0", Some(29594)),
635635
/// Allows defining `trait X = A + B;` alias items.
636636
(unstable, trait_alias, "1.24.0", Some(41517)),
637-
/// Allows dyn upcasting trait objects via supertraits.
638-
/// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
639-
(unstable, trait_upcasting, "1.56.0", Some(65991)),
640637
/// Allows for transmuting between arrays with sizes that contain generic consts.
641638
(unstable, transmute_generic_consts, "1.70.0", Some(109929)),
642639
/// Allows #[repr(transparent)] on unions (RFC 2645).

0 commit comments

Comments
 (0)
Please sign in to comment.