@@ -288,9 +288,6 @@ declare_features! (
288
288
// Allows attributes on lifetime/type formal parameters in generics (RFC 1327)
289
289
( active, generic_param_attrs, "1.11.0" , Some ( 34761 ) ) ,
290
290
291
- // Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
292
- ( active, field_init_shorthand, "1.14.0" , Some ( 37340 ) ) ,
293
-
294
291
// The #![windows_subsystem] attribute
295
292
( active, windows_subsystem, "1.14.0" , Some ( 37499 ) ) ,
296
293
@@ -385,6 +382,8 @@ declare_features! (
385
382
( accepted, more_struct_aliases, "1.16.0" , Some ( 37544 ) ) ,
386
383
// elide `'static` lifetimes in `static`s and `const`s
387
384
( accepted, static_in_const, "1.17.0" , Some ( 35897 ) ) ,
385
+ // Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
386
+ ( accepted, field_init_shorthand, "1.17.0" , Some ( 37340 ) ) ,
388
387
) ;
389
388
// (changing above list without updating src/doc/reference.md makes @cmr sad)
390
389
@@ -1233,10 +1232,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
1233
1232
}
1234
1233
ast:: ExprKind :: Struct ( _, ref fields, _) => {
1235
1234
for field in fields {
1236
- if field. is_shorthand {
1237
- gate_feature_post ! ( & self , field_init_shorthand, field. span,
1238
- "struct field shorthands are unstable" ) ;
1239
- }
1240
1235
if starts_with_digit ( & field. ident . node . name . as_str ( ) ) {
1241
1236
gate_feature_post ! ( & self , relaxed_adts,
1242
1237
field. span,
0 commit comments