@@ -288,9 +288,6 @@ declare_features! (
288288 // Allows attributes on lifetime/type formal parameters in generics (RFC 1327)
289289 ( active, generic_param_attrs, "1.11.0" , Some ( 34761 ) ) ,
290290
291- // Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
292- ( active, field_init_shorthand, "1.14.0" , Some ( 37340 ) ) ,
293-
294291 // The #![windows_subsystem] attribute
295292 ( active, windows_subsystem, "1.14.0" , Some ( 37499 ) ) ,
296293
@@ -385,6 +382,8 @@ declare_features! (
385382 ( accepted, more_struct_aliases, "1.16.0" , Some ( 37544 ) ) ,
386383 // elide `'static` lifetimes in `static`s and `const`s
387384 ( 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 ) ) ,
388387) ;
389388// (changing above list without updating src/doc/reference.md makes @cmr sad)
390389
@@ -1233,10 +1232,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
12331232 }
12341233 ast:: ExprKind :: Struct ( _, ref fields, _) => {
12351234 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- }
12401235 if starts_with_digit ( & field. ident . node . name . as_str ( ) ) {
12411236 gate_feature_post ! ( & self , relaxed_adts,
12421237 field. span,
0 commit comments