diff --git a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala index 9849400da403..ac1f84696545 100644 --- a/compiler/src/dotty/tools/dotc/parsing/Parsers.scala +++ b/compiler/src/dotty/tools/dotc/parsing/Parsers.scala @@ -378,7 +378,7 @@ object Parsers { def rewriteNotice(additionalOption: String = "") = { val optionStr = if (additionalOption.isEmpty) "" else " " ++ additionalOption - i"\nThis construct can be rewritten automatically under$optionStr -rewrite." + i"\nThis construct can be rewritten automatically under$optionStr -rewrite -source 3.0-migration." } def syntaxVersionError(option: String, span: Span) = diff --git a/tests/neg-custom-args/fatal-warnings/i9266.check b/tests/neg-custom-args/fatal-warnings/i9266.check index 68e27e8be10a..4062b29a94c1 100644 --- a/tests/neg-custom-args/fatal-warnings/i9266.check +++ b/tests/neg-custom-args/fatal-warnings/i9266.check @@ -2,4 +2,4 @@ 3 |def test = { implicit x: Int => x + x } // error | ^ | This syntax is no longer supported; parameter needs to be enclosed in (...) - | This construct can be rewritten automatically under -rewrite. + | This construct can be rewritten automatically under -rewrite -source 3.0-migration. diff --git a/tests/neg-custom-args/newline-braces.check b/tests/neg-custom-args/newline-braces.check index 35fe94a62dea..d9c320446114 100644 --- a/tests/neg-custom-args/newline-braces.check +++ b/tests/neg-custom-args/newline-braces.check @@ -4,4 +4,4 @@ | This opening brace will start a new statement in Scala 3. | It needs to be indented to the right to keep being treated as | an argument to the previous expression. - | This construct can be rewritten automatically under -rewrite. + | This construct can be rewritten automatically under -rewrite -source 3.0-migration.