Skip to content

Commit 528292b

Browse files
askeksacommit-bot@chromium.org
authored andcommitted
Expire constant-update-2018 flag.
All uses of no-constant-update-2018 in the Dart SDK, Flutter and Fuchsia have been cleaned out, which means we can expire the flag. Closes #37874 Change-Id: Ie31dfbf87db52d37fdf4218afa8c6f7a894bafff Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113182 Reviewed-by: Dan Rubel <[email protected]> Commit-Queue: Aske Simon Christensen <[email protected]>
1 parent a3b579d commit 528292b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pkg/analyzer/lib/src/dart/analysis/experiments.g.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class IsEnabledByDefault {
180180
/// value in [IsEnabledByDefault]).
181181
class IsExpired {
182182
/// Expiration status of the experiment "constant-update-2018"
183-
static const bool constant_update_2018 = false;
183+
static const bool constant_update_2018 = true;
184184

185185
/// Expiration status of the experiment "control-flow-collections"
186186
static const bool control_flow_collections = false;

pkg/front_end/lib/src/api_prototype/experimental_flags.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Map<ExperimentalFlag, bool> defaultExperimentalFlags = {
4848
};
4949

5050
const Map<ExperimentalFlag, bool> expiredExperimentalFlags = {
51-
ExperimentalFlag.constantUpdate2018: false,
51+
ExperimentalFlag.constantUpdate2018: true,
5252
ExperimentalFlag.controlFlowCollections: false,
5353
ExperimentalFlag.extensionMethods: false,
5454
ExperimentalFlag.nonNullable: false,

tools/experimental_features.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
# a warning that the experiment has been retired or rejected, but the tool
7171
# should continue to run.
7272

73-
constant-update-2018:
74-
help: "Enhanced constant expressions"
75-
enabledIn: '2.4.1'
76-
7773
extension-methods:
7874
help: "Extension Methods"
7975

@@ -88,6 +84,11 @@ triple-shift:
8884
# on the command line, and will eventually be removed.
8985
#
9086

87+
constant-update-2018:
88+
help: "Enhanced constant expressions"
89+
enabledIn: '2.4.1'
90+
expired: true
91+
9192
control-flow-collections:
9293
help: "Control Flow Collections"
9394
enabledIn: '2.2.2'

0 commit comments

Comments
 (0)