Skip to content

Commit e82087a

Browse files
committed
Revert "Implement -print as -Xprint:(last phase)"
This reverts commit 8a39160.
1 parent 8a39160 commit e82087a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dotty/tools/dotc/Run.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ class Run(comp: Compiler)(implicit ctx: Context) {
6262
units = phase.runOn(units)
6363
def foreachUnit(op: Context => Unit)(implicit ctx: Context): Unit =
6464
for (unit <- units) op(ctx.fresh.setPhase(phase.next).setCompilationUnit(unit))
65-
if (ctx.settings.Xprint.value.containsPhase(phase) ||
66-
(ctx.settings.print.value && phase == ctx.allPhases.last))
65+
if (ctx.settings.Xprint.value.containsPhase(phase))
6766
foreachUnit(printTree)
6867
ctx.informTime(s"$phase ", start)
6968
}

0 commit comments

Comments
 (0)