From 75894b27b14a2435800db8eed84d187aec272403 Mon Sep 17 00:00:00 2001 From: Sameer Kolhar Date: Sat, 26 Jun 2021 20:20:00 +0530 Subject: [PATCH 1/2] add feature flag for `type_changing_struct_update` --- compiler/rustc_feature/src/active.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 56a320c8d3bce..27c4b1968ad5e 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -666,6 +666,10 @@ declare_features! ( /// Allows qualified paths in struct expressions, struct patterns and tuple struct patterns. (active, more_qualified_paths, "1.54.0", Some(80080), None), + /// Allows creation of instances of a struct by moving fields that have + /// not changed from prior instances of the same struct (RFC #2528) + (active, type_changing_struct_update, "1.55.0", Some(86618), None) + // ------------------------------------------------------------------------- // feature-group-end: actual feature gates // ------------------------------------------------------------------------- From 609b5e5dbbf3ea8906a650ca59b7213d0c0ab59d Mon Sep 17 00:00:00 2001 From: Sameer Kolhar Date: Sat, 26 Jun 2021 20:32:05 +0530 Subject: [PATCH 2/2] remove trailing space in the file --- compiler/rustc_feature/src/active.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 27c4b1968ad5e..d8e35ceb977b5 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -666,7 +666,7 @@ declare_features! ( /// Allows qualified paths in struct expressions, struct patterns and tuple struct patterns. (active, more_qualified_paths, "1.54.0", Some(80080), None), - /// Allows creation of instances of a struct by moving fields that have + /// Allows creation of instances of a struct by moving fields that have /// not changed from prior instances of the same struct (RFC #2528) (active, type_changing_struct_update, "1.55.0", Some(86618), None)