|
1 | 1 | package dotty.tools.dotc
|
2 | 2 | package sbt
|
3 | 3 |
|
| 4 | +import ExtractDependencies.internalError |
4 | 5 | import ast.{Positioned, Trees, tpd, untpd}
|
5 | 6 | import core._
|
6 | 7 | import core.Decorators._
|
@@ -30,7 +31,7 @@ import scala.collection.mutable
|
30 | 31 | *
|
31 | 32 | * See the documentation of `ExtractAPICollector`, `ExtractDependencies`,
|
32 | 33 | * `ExtractDependenciesCollector` and
|
33 |
| - * http://www.scala-sbt.org/0.13/docs/Understanding-Recompilation.html for more |
| 34 | + * http://www.scala-sbt.org/1.x/docs/Understanding-Recompilation.html for more |
34 | 35 | * information on incremental recompilation.
|
35 | 36 | *
|
36 | 37 | * The following flags affect this phase:
|
@@ -515,7 +516,7 @@ private class ExtractAPICollector(using Context) extends ThunkHolder {
|
515 | 516 | case tp: TypeVar =>
|
516 | 517 | apiType(tp.underlying)
|
517 | 518 | case _ => {
|
518 |
| - report.warning(i"sbt-api: Unhandled type ${tp.getClass} : $tp") |
| 519 | + internalError(i"Unhandled type $tp of class ${tp.getClass}") |
519 | 520 | Constants.emptyType
|
520 | 521 | }
|
521 | 522 | }
|
@@ -660,9 +661,10 @@ private class ExtractAPICollector(using Context) extends ThunkHolder {
|
660 | 661 | // The hashCode of the name itself is not stable across compiler instances
|
661 | 662 | h = MurmurHash3.mix(h, n.toString.hashCode)
|
662 | 663 | case elem =>
|
663 |
| - report.warning( |
664 |
| - i"""Internal error: Don't know how to produce a stable hash for `$elem` of unknown class ${elem.getClass} |
665 |
| - |Incremental compilation might not work correctly.""", tree.sourcePos) |
| 664 | + internalError( |
| 665 | + i"Don't know how to produce a stable hash for `$elem` of unknown class ${elem.getClass}", |
| 666 | + tree.sourcePos) |
| 667 | + |
666 | 668 | h = MurmurHash3.mix(h, elem.toString.hashCode)
|
667 | 669 | h
|
668 | 670 | end iteratorHash
|
|
0 commit comments