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 966e930

Browse files
committedNov 21, 2023
Stabilize trait_upcasting feature
And also remove the `deref_into_dyn_supertrait` lint which is now handled by dyn upcasting coercion.
1 parent 7bd385d commit 966e930

File tree

66 files changed

+65
-348
lines changed

Some content is hidden

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

66 files changed

+65
-348
lines changed
 

‎compiler/rustc_feature/src/accepted.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ declare_features! (
338338
/// Allows `#[track_caller]` to be used which provides
339339
/// accurate caller location reporting during panic (RFC 2091).
340340
(accepted, track_caller, "1.46.0", Some(47809), None),
341+
/// Allows dyn upcasting trait objects via supertraits.
342+
/// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
343+
(accepted, trait_upcasting, "CURRENT_RUSTC_VERSION", Some(65991), None),
341344
/// Allows #[repr(transparent)] on univariant enums (RFC 2645).
342345
(accepted, transparent_enums, "1.42.0", Some(60405), None),
343346
/// Allows indexing tuples.

‎compiler/rustc_feature/src/unstable.rs

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

0 commit comments

Comments
 (0)