@@ -375,9 +375,6 @@ declare_features! (
375
375
// Future-proofing enums/structs with #[non_exhaustive] attribute (RFC 2008)
376
376
( active, non_exhaustive, "1.22.0" , Some ( 44109 ) , None ) ,
377
377
378
- // Trait object syntax with `dyn` prefix
379
- ( active, dyn_trait, "1.22.0" , Some ( 44662 ) , Some ( Edition :: Edition2018 ) ) ,
380
-
381
378
// `crate` as visibility modifier, synonymous to `pub(crate)`
382
379
( active, crate_visibility_modifier, "1.23.0" , Some ( 45388 ) , Some ( Edition :: Edition2018 ) ) ,
383
380
@@ -592,6 +589,8 @@ declare_features! (
592
589
( accepted, cfg_target_feature, "1.27.0" , Some ( 29717 ) , None ) ,
593
590
// Allows #[target_feature(...)]
594
591
( accepted, target_feature, "1.27.0" , None , None ) ,
592
+ // Trait object syntax with `dyn` prefix
593
+ ( accepted, dyn_trait, "1.22.0" , Some ( 44662 ) , None ) ,
595
594
) ;
596
595
597
596
// If you change this, please modify src/doc/unstable-book as well. You must
@@ -1657,10 +1656,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1657
1656
gate_feature_post ! ( & self , never_type, ty. span,
1658
1657
"The `!` type is experimental" ) ;
1659
1658
}
1660
- ast:: TyKind :: TraitObject ( _, ast:: TraitObjectSyntax :: Dyn ) => {
1661
- gate_feature_post ! ( & self , dyn_trait, ty. span,
1662
- "`dyn Trait` syntax is unstable" ) ;
1663
- }
1664
1659
_ => { }
1665
1660
}
1666
1661
visit:: walk_ty ( self , ty)
0 commit comments