[cfe] Update compiling without sound null safety message
In response to https://github.com/dart-lang/sdk/issues/44234#issuecomment-763455719
Change-Id: I88ab66199217e817edead394ccc74a3f3b49ba15
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180143
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
diff --git a/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart b/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart
index 612de52..6dbb243 100644
--- a/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart
+++ b/pkg/_fe_analyzer_shared/lib/src/messages/codes_generated.dart
@@ -998,14 +998,14 @@
message: r"""Compiling with sound null safety""");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const Code<Null> codeCompilingWithUnsoundNullSafety =
- messageCompilingWithUnsoundNullSafety;
+const Code<Null> codeCompilingWithoutSoundNullSafety =
+ messageCompilingWithoutSoundNullSafety;
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
-const MessageCode messageCompilingWithUnsoundNullSafety = const MessageCode(
- "CompilingWithUnsoundNullSafety",
+const MessageCode messageCompilingWithoutSoundNullSafety = const MessageCode(
+ "CompilingWithoutSoundNullSafety",
severity: Severity.info,
- message: r"""Compiling with unsound null safety""");
+ message: r"""Compiling without sound null safety""");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
diff --git a/pkg/dartdev/test/commands/compile_test.dart b/pkg/dartdev/test/commands/compile_test.dart
index 0921ddd..44a3ab9 100644
--- a/pkg/dartdev/test/commands/compile_test.dart
+++ b/pkg/dartdev/test/commands/compile_test.dart
@@ -17,7 +17,7 @@
const String soundNullSafetyMessage = 'Info: Compiling with sound null safety';
const String unsoundNullSafetyMessage =
- 'Info: Compiling with unsound null safety';
+ 'Info: Compiling without sound null safety';
void defineCompileTests() {
// *** NOTE ***: These tests *must* be run with the `--use-sdk` option
diff --git a/pkg/front_end/lib/src/base/processed_options.dart b/pkg/front_end/lib/src/base/processed_options.dart
index 84f9e63..e768713 100644
--- a/pkg/front_end/lib/src/base/processed_options.dart
+++ b/pkg/front_end/lib/src/base/processed_options.dart
@@ -48,7 +48,7 @@
messageCantInferPackagesFromManyInputs,
messageCantInferPackagesFromPackageUri,
messageCompilingWithSoundNullSafety,
- messageCompilingWithUnsoundNullSafety,
+ messageCompilingWithoutSoundNullSafety,
messageInternalProblemProvidedBothCompileSdkAndSdkSummary,
messageMissingInput,
noLength,
@@ -277,8 +277,8 @@
if (_raw.invocationModes.contains(InvocationMode.compile)) {
switch (nnbdMode) {
case NnbdMode.Weak:
- reportWithoutLocation(messageCompilingWithUnsoundNullSafety,
- messageCompilingWithUnsoundNullSafety.severity);
+ reportWithoutLocation(messageCompilingWithoutSoundNullSafety,
+ messageCompilingWithoutSoundNullSafety.severity);
break;
case NnbdMode.Strong:
reportWithoutLocation(messageCompilingWithSoundNullSafety,
diff --git a/pkg/front_end/messages.status b/pkg/front_end/messages.status
index 794f307..245cd2d 100644
--- a/pkg/front_end/messages.status
+++ b/pkg/front_end/messages.status
@@ -70,7 +70,7 @@
ClassInNullAwareReceiver/analyzerCode: Fail
ColonInPlaceOfIn/example: Fail
CompilingWithSoundNullSafety/analyzerCode: Fail
-CompilingWithUnsoundNullSafety/analyzerCode: Fail
+CompilingWithoutSoundNullSafety/analyzerCode: Fail
ConflictingModifiers/part_wrapped_script1: Fail
ConflictingModifiers/script1: Fail
ConflictsWithConstructor/example: Fail
diff --git a/pkg/front_end/messages.yaml b/pkg/front_end/messages.yaml
index 5c8b909..c06e19b 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -4940,8 +4940,8 @@
script: |
main() {}
-CompilingWithUnsoundNullSafety:
- template: "Compiling with unsound null safety"
+CompilingWithoutSoundNullSafety:
+ template: "Compiling without sound null safety"
configuration: nnbd-weak,compile
severity: INFO
script: |