aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc')
-rw-r--r--src/dotty/tools/dotc/config/Printers.scala2
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala5
-rw-r--r--src/dotty/tools/dotc/typer/Implicits.scala2
3 files changed, 6 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/config/Printers.scala b/src/dotty/tools/dotc/config/Printers.scala
index 183ab35b9..84157f3a9 100644
--- a/src/dotty/tools/dotc/config/Printers.scala
+++ b/src/dotty/tools/dotc/config/Printers.scala
@@ -21,6 +21,6 @@ object Printers {
val unapp: Printer = noPrinter
val completions = noPrinter
val gadts = noPrinter
- val incremental = new Printer
+ val incremental = noPrinter
} \ No newline at end of file
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 6cbcd982f..19d80db18 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -459,7 +459,10 @@ object Denotations {
current
}
- protected def bringForward()(implicit ctx: Context): SingleDenotation = this match {
+ /** Move validity period of this denotation to a new run. Throw a StaleSymbol error
+ * if denotation is no longer valid.
+ */
+ private def bringForward()(implicit ctx: Context): SingleDenotation = this match {
case denot: SymDenotation if ctx.stillValid(denot) =>
if (denot.exists) assert(ctx.runId > validFor.runId)
var d: SingleDenotation = denot
diff --git a/src/dotty/tools/dotc/typer/Implicits.scala b/src/dotty/tools/dotc/typer/Implicits.scala
index a5cbef571..5e5077cc4 100644
--- a/src/dotty/tools/dotc/typer/Implicits.scala
+++ b/src/dotty/tools/dotc/typer/Implicits.scala
@@ -343,7 +343,7 @@ trait ImplicitRunInfo { self: RunInfo =>
}
/** A map that counts the number of times an implicit ref was picked */
- val useCount: mutable.Map[TermRef, Int] = new mutable.HashMap[TermRef, Int] { // !!!
+ val useCount = new mutable.HashMap[TermRef, Int] {
override def default(key: TermRef) = 0
}
}