Skip to content

Commit

Permalink
Improve -Xprint-suspension message
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Feb 14, 2024
1 parent 8776677 commit cc69895
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/Run.scala
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
|"""
val enableXprintSuspensionHint =
if ctx.settings.XprintSuspension.value then ""
else "\n\nCompiling with -Xprint-suspension gives more information."
else "\n\nCompile with -Xprint-suspension for information."
report.error(em"""Cyclic macro dependencies $where
|Compilation stopped since no further progress can be made.
|
Expand Down
2 changes: 1 addition & 1 deletion tests/neg-macros/annot-suspend-cycle.check
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Compilation stopped since no further progress can be made.

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

Compiling with -Xprint-suspension gives more information.
Compile with -Xprint-suspension for information.
2 changes: 1 addition & 1 deletion tests/neg-macros/macros-in-same-project-4.check
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Compilation stopped since no further progress can be made.

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

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

0 comments on commit cc69895

Please sign in to comment.