Skip to content

Commit e39b79e

Browse files
authored
Merge pull request #10701 from dotty-staging/fix-10692
Fix #10692: Update rewrite help message
2 parents 0dc824c + 90ca4f0 commit e39b79e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ object Parsers {
378378

379379
def rewriteNotice(additionalOption: String = "") = {
380380
val optionStr = if (additionalOption.isEmpty) "" else " " ++ additionalOption
381-
i"\nThis construct can be rewritten automatically under$optionStr -rewrite."
381+
i"\nThis construct can be rewritten automatically under$optionStr -rewrite -source 3.0-migration."
382382
}
383383

384384
def syntaxVersionError(option: String, span: Span) =

tests/neg-custom-args/fatal-warnings/i9266.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
3 |def test = { implicit x: Int => x + x } // error
33
| ^
44
| This syntax is no longer supported; parameter needs to be enclosed in (...)
5-
| This construct can be rewritten automatically under -rewrite.
5+
| This construct can be rewritten automatically under -rewrite -source 3.0-migration.

tests/neg-custom-args/newline-braces.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
| This opening brace will start a new statement in Scala 3.
55
| It needs to be indented to the right to keep being treated as
66
| an argument to the previous expression.
7-
| This construct can be rewritten automatically under -rewrite.
7+
| This construct can be rewritten automatically under -rewrite -source 3.0-migration.

0 commit comments

Comments
 (0)