diff options
| author | Christian Poveda <christianpoveda@protonmail.com> | 2018-04-12 16:53:28 -0500 |
|---|---|---|
| committer | Christian Poveda <christianpoveda@protonmail.com> | 2018-04-27 10:04:02 -0500 |
| commit | 199ee327739b12c67adef326d68164bfbf5e29c9 (patch) | |
| tree | 22bb5685b8734d2814b15603b5974d2753439331 /src/libsyntax | |
| parent | 2a6200a5c8f19763268f531302ed7ddccf1e7204 (diff) | |
| download | rust-199ee327739b12c67adef326d68164bfbf5e29c9.tar.gz rust-199ee327739b12c67adef326d68164bfbf5e29c9.zip | |
stop requiring the feature-gate to use dyn_trait
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 120dff2dbb9..c4a0ec259b4 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -375,9 +375,6 @@ declare_features! ( // Future-proofing enums/structs with #[non_exhaustive] attribute (RFC 2008) (active, non_exhaustive, "1.22.0", Some(44109), None), - // Trait object syntax with `dyn` prefix - (active, dyn_trait, "1.22.0", Some(44662), Some(Edition::Edition2018)), - // `crate` as visibility modifier, synonymous to `pub(crate)` (active, crate_visibility_modifier, "1.23.0", Some(45388), Some(Edition::Edition2018)), @@ -592,6 +589,8 @@ declare_features! ( (accepted, cfg_target_feature, "1.27.0", Some(29717), None), // Allows #[target_feature(...)] (accepted, target_feature, "1.27.0", None, None), + // Trait object syntax with `dyn` prefix + (accepted, dyn_trait, "1.22.0", Some(44662), None), ); // 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> { gate_feature_post!(&self, never_type, ty.span, "The `!` type is experimental"); } - ast::TyKind::TraitObject(_, ast::TraitObjectSyntax::Dyn) => { - gate_feature_post!(&self, dyn_trait, ty.span, - "`dyn Trait` syntax is unstable"); - } _ => {} } visit::walk_ty(self, ty) |
