Skip to content

Commit acc8ef6

Browse files
nicolasstuckiWojciechMazur
authored andcommitted
Improve -Xprint-suspension message
[Cherry-picked cc69895]
1 parent 4631efc commit acc8ef6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: compiler/src/dotty/tools/dotc/Run.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
141141
|"""
142142
val enableXprintSuspensionHint =
143143
if ctx.settings.XprintSuspension.value then ""
144-
else "\n\nCompiling with -Xprint-suspension gives more information."
144+
else "\n\nCompile with -Xprint-suspension for information."
145145
report.error(em"""Cyclic macro dependencies $where
146146
|Compilation stopped since no further progress can be made.
147147
|

Diff for: tests/neg-macros/annot-suspend-cycle.check

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Compilation stopped since no further progress can be made.
99

1010
To fix this, place macros in one set of files and their callers in another.
1111

12-
Compiling with -Xprint-suspension gives more information.
12+
Compile with -Xprint-suspension for information.

Diff for: tests/neg-macros/macros-in-same-project-4.check

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Compilation stopped since no further progress can be made.
33

44
To fix this, place macros in one set of files and their callers in another.
55

6-
Compiling with -Xprint-suspension gives more information.
6+
Compile with -Xprint-suspension for information.

0 commit comments

Comments
 (0)