diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-09-15 00:51:46 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-11-03 03:32:28 +0300 |
| commit | 50ecee241008a17a3d296f0a0d2a4ff9080a5c57 (patch) | |
| tree | 2a411a8cbf5f68566545f10c40261672b63c07f4 /src/libsyntax | |
| parent | 0ca9967af75f7a279dcf4921f119b2602b41dd71 (diff) | |
| download | rust-50ecee241008a17a3d296f0a0d2a4ff9080a5c57.tar.gz rust-50ecee241008a17a3d296f0a0d2a4ff9080a5c57.zip | |
Add feature gate for Self and associated types in struct expressions and patterns
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 129e4a82338..69dfe8e8620 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -309,6 +309,9 @@ declare_features! ( // Allows field shorthands (`x` meaning `x: x`) in struct literal expressions. (active, field_init_shorthand, "1.14.0", Some(37340)), + + // Allows using `Self` and associated types in struct expressions and patterns. + (active, more_struct_aliases, "1.14.0", Some(37544)), ); declare_features! ( |
