Skip to content

Commit 044c28c

Browse files
karenwuzcopybara-github
authored andcommitted
Adding removal_errors to feature_support that has edition_removed. This is now a requirement new parser change (cl/838888348)
PiperOrigin-RevId: 843843776
1 parent 94fe944 commit 044c28c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/google/protobuf/unittest_custom_features.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ enum ValueLifetimeFeature {
5050
edition_deprecated: EDITION_99998_TEST_ONLY
5151
deprecation_warning: "Custom feature deprecation warning"
5252
edition_removed: EDITION_99999_TEST_ONLY
53+
removal_error: "Custom feature removal error"
5354
}];
5455
VALUE_LIFETIME_EMPTY_SUPPORT = 3 [feature_support = {}];
5556
VALUE_LIFETIME_FUTURE = 4
@@ -60,6 +61,7 @@ enum ValueLifetimeFeature {
6061
}];
6162
VALUE_LIFETIME_REMOVED = 6 [feature_support = {
6263
edition_deprecated: EDITION_2023
64+
deprecation_warning: "Custom feature deprecation warning"
6365
edition_removed: EDITION_99997_TEST_ONLY
6466
removal_error: "Custom feature removal error"
6567
}];

src/google/protobuf/unittest_features.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ enum ValueLifetimeFeature {
6363
edition_deprecated: EDITION_99998_TEST_ONLY
6464
deprecation_warning: "Custom feature deprecation warning"
6565
edition_removed: EDITION_99999_TEST_ONLY
66+
removal_error: "Custom feature removal error"
6667
}];
6768
VALUE_LIFETIME_EMPTY_SUPPORT = 3 [feature_support = {}];
6869
VALUE_LIFETIME_FUTURE = 4
@@ -73,6 +74,7 @@ enum ValueLifetimeFeature {
7374
}];
7475
VALUE_LIFETIME_REMOVED = 6 [feature_support = {
7576
edition_deprecated: EDITION_2023
77+
deprecation_warning: "Custom feature deprecation warning"
7678
edition_removed: EDITION_99997_TEST_ONLY
7779
removal_error: "Custom feature removal error"
7880
}];

0 commit comments

Comments
 (0)