Skip to content

Commit

Permalink
Tone error down to a dev warning
Browse files Browse the repository at this point in the history
  • Loading branch information
retronym committed May 29, 2018
1 parent dfaefa0 commit c5cc71f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/scala/tools/nsc/CompilationUnits.scala
Expand Up @@ -23,8 +23,7 @@ trait CompilationUnits { global: Global =>
final def warningFreshNameCreator: FreshNameCreator = new FreshNameCreator {
override def newName(prefix: String): String = {
if (global.phase == currentRun.typerPhase) {
Thread.dumpStack()
reporter.error(lastSeenContext.owner.pos, "Typer phase should not use the compilation unit scoped fresh name creator")
devWarningDumpStack("Typer phase should not use the compilation unit scoped fresh name creator", 32)
}
super.newName(prefix)
}
Expand Down

0 comments on commit c5cc71f

Please sign in to comment.