@@ -34,22 +34,13 @@ enum EnumFeature {
3434 VALUE15 = 15 ;
3535}
3636
37- enum UnstableEnumFeature {
38- TEST_UNSTABLE_ENUM_FEATURE_UNKNOWN = 0 ;
39- UNSTABLE1 = 1 ;
40- UNSTABLE2 = 2 ;
41- UNSTABLE3 = 3 [feature_support = { edition_introduced : EDITION_UNSTABLE }];
42- UNSTABLE4 = 4 ;
43- }
44-
4537enum ValueLifetimeFeature {
4638 TEST_VALUE_LIFETIME_UNKNOWN = 0 ;
4739 VALUE_LIFETIME_INHERITED = 1 ;
4840 VALUE_LIFETIME_SUPPORT = 2 [feature_support = {
4941 edition_introduced : EDITION_99997_TEST_ONLY
5042 edition_deprecated : EDITION_99998_TEST_ONLY
5143 deprecation_warning : "Custom feature deprecation warning"
52- edition_removed : EDITION_99999_TEST_ONLY
5344 }];
5445 VALUE_LIFETIME_EMPTY_SUPPORT = 3 [feature_support = {}];
5546 VALUE_LIFETIME_FUTURE = 4
@@ -60,8 +51,6 @@ enum ValueLifetimeFeature {
6051 }];
6152 VALUE_LIFETIME_REMOVED = 6 [feature_support = {
6253 edition_deprecated : EDITION_2023
63- edition_removed : EDITION_99997_TEST_ONLY
64- removal_error : "Custom feature removal error"
6554 }];
6655}
6756
@@ -187,8 +176,6 @@ message TestCustomFeatures {
187176 edition_introduced : EDITION_2023
188177 edition_deprecated : EDITION_2023
189178 deprecation_warning : "Custom feature deprecation warning"
190- edition_removed : EDITION_2024
191- removal_error : "Custom feature removal error"
192179 },
193180 edition_defaults = { edition : EDITION_LEGACY, value : "VALUE1" },
194181 edition_defaults = { edition : EDITION_2023, value : "VALUE2" },
@@ -201,7 +188,6 @@ message TestCustomFeatures {
201188 targets = TARGET_TYPE_FIELD ,
202189 feature_support = {
203190 edition_introduced : EDITION_2023
204- edition_removed : EDITION_2023
205191 },
206192 edition_defaults = { edition : EDITION_LEGACY, value : "VALUE1" }
207193 ];
@@ -221,8 +207,6 @@ message TestCustomFeatures {
221207 targets = TARGET_TYPE_FIELD ,
222208 feature_support = {
223209 edition_introduced : EDITION_PROTO3
224- edition_removed : EDITION_2023
225- removal_error : "Custom feature removal error"
226210 },
227211 edition_defaults = { edition : EDITION_LEGACY, value : "VALUE1" },
228212 edition_defaults = { edition : EDITION_2023, value : "VALUE2" }
@@ -235,8 +219,6 @@ message TestCustomFeatures {
235219 edition_introduced : EDITION_2023
236220 edition_deprecated : EDITION_99998_TEST_ONLY
237221 deprecation_warning : "Custom feature deprecation warning"
238- edition_removed : EDITION_99999_TEST_ONLY
239- removal_error : "Custom feature removal error"
240222 },
241223 edition_defaults = {
242224 edition : EDITION_LEGACY,
@@ -253,32 +235,4 @@ message TestCustomFeatures {
253235 value : "VALUE_LIFETIME_FUTURE"
254236 }
255237 ];
256-
257- UnstableEnumFeature new_unstable_feature = 22 [
258- retention = RETENTION_RUNTIME ,
259- targets = TARGET_TYPE_FILE ,
260- targets = TARGET_TYPE_FIELD ,
261- feature_support = { edition_introduced : EDITION_UNSTABLE },
262- edition_defaults = { edition : EDITION_LEGACY, value : "UNSTABLE1" },
263- edition_defaults = { edition : EDITION_UNSTABLE, value : "UNSTABLE2" }
264- ];
265-
266- UnstableEnumFeature unstable_existing_feature = 23 [
267- retention = RETENTION_RUNTIME ,
268- targets = TARGET_TYPE_ENUM ,
269- feature_support.edition_introduced = EDITION_2023 ,
270- edition_defaults = { edition : EDITION_LEGACY, value : "UNSTABLE1" },
271- edition_defaults = { edition : EDITION_2023, value : "UNSTABLE2" },
272- edition_defaults = { edition : EDITION_UNSTABLE, value : "UNSTABLE3" }
273- ];
274- UnstableEnumFeature removed_unstable_feature = 24 [
275- retention = RETENTION_RUNTIME ,
276- targets = TARGET_TYPE_METHOD ,
277- feature_support = {
278- edition_introduced : EDITION_2023,
279- edition_removed : EDITION_UNSTABLE,
280- removal_error : "Custom feature removal error"
281- },
282- edition_defaults = { edition : EDITION_LEGACY, value : "UNSTABLE1" }
283- ];
284238}
0 commit comments