Skip to content

Commit 2dc86a6

Browse files
Alexander Regueirocrlf0710
Alexander Regueiro
authored andcommitted
Added feature gate.
1 parent 87dc824 commit 2dc86a6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

compiler/rustc_feature/src/active.rs

+4
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,10 @@ declare_features! (
683683
/// Allows the `?` operator in const contexts.
684684
(active, const_try, "1.56.0", Some(74935), None),
685685

686+
/// Allows upcasting trait objects via supertraits.
687+
/// Trait upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
688+
(active, trait_upcasting, "1.56.0", Some(65991), None),
689+
686690
// -------------------------------------------------------------------------
687691
// feature-group-end: actual feature gates
688692
// -------------------------------------------------------------------------

compiler/rustc_span/src/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,7 @@ symbols! {
12701270
trace_macros,
12711271
track_caller,
12721272
trait_alias,
1273+
trait_upcasting,
12731274
transmute,
12741275
transparent,
12751276
transparent_enums,

0 commit comments

Comments
 (0)