Skip to content

Commit ed3406e

Browse files
liufengyunsmarter
andcommitted
Fix #10692: Update rewrite help message
Co-authored-by: Guillaume Martres <[email protected]>
1 parent c9bf740 commit ed3406e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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) =

0 commit comments

Comments
 (0)