From ca2ed3f6e609122781fe9b25ce16b4a4dd80f56a Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Thu, 11 Dec 2014 23:41:25 +0100 Subject: Phases: The operator <= does not need a context anymore --- src/dotty/tools/dotc/core/Phases.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core') diff --git a/src/dotty/tools/dotc/core/Phases.scala b/src/dotty/tools/dotc/core/Phases.scala index 8476ae601..43178f110 100644 --- a/src/dotty/tools/dotc/core/Phases.scala +++ b/src/dotty/tools/dotc/core/Phases.scala @@ -250,7 +250,7 @@ object Phases { protected[Phases] def init(base: ContextBase, id: Int): Unit = init(base, id, id) - final def <=(that: Phase)(implicit ctx: Context) = + final def <=(that: Phase) = exists && id <= that.id final def prev: Phase = -- cgit v1.2.3 From ae655d4300ff62e8951514960da53a256e508596 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Thu, 11 Dec 2014 23:58:05 +0100 Subject: Phases: set the period correctly --- src/dotty/tools/dotc/core/Phases.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core') diff --git a/src/dotty/tools/dotc/core/Phases.scala b/src/dotty/tools/dotc/core/Phases.scala index 43178f110..ffe2ddbea 100644 --- a/src/dotty/tools/dotc/core/Phases.scala +++ b/src/dotty/tools/dotc/core/Phases.scala @@ -241,7 +241,7 @@ object Phases { if (start >= FirstPhaseId) assert(myPeriod == Periods.InvalidPeriod, s"phase $this has already been used once; cannot be reused") myBase = base - myPeriod = Period(start, end) + myPeriod = Period(NoRunId, start, end) myErasedTypes = prev.getClass == classOf[Erasure] || prev.erasedTypes myFlatClasses = prev.getClass == classOf[Flatten] || prev.flatClasses myRefChecked = prev.getClass == classOf[RefChecks] || prev.refChecked -- cgit v1.2.3