diff options
author | Paul Phillips <paulp@improving.org> | 2013-09-17 23:13:29 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-09-17 23:15:07 -0700 |
commit | 6d47a31798227d3b78af2ab048f57b7219d3c416 (patch) | |
tree | 668587e0cb780909c2fa25d436d630b91df379d9 | |
parent | d45a3c8cc8e9f1d95d797d548a85abd8597f5bc7 (diff) | |
download | scala-6d47a31798227d3b78af2ab048f57b7219d3c416.tar.gz scala-6d47a31798227d3b78af2ab048f57b7219d3c416.tar.bz2 scala-6d47a31798227d3b78af2ab048f57b7219d3c416.zip |
Silence pos/t3960's -Ycheck output.
Someday someone will have to straighten out where output goes.
Clearly under current conditions, Console.err is not a good place.
I rerouted through unit.warning so the output will be swallowed
like all the other warnings.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala b/src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala index 3a188c0044..e44c83aa56 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TreeCheckers.scala @@ -171,8 +171,8 @@ abstract class TreeCheckers extends Analyzer { ) - def errorFn(msg: Any): Unit = Console.err println "[check: %s] %s".format(phase.prev, msg) - def errorFn(pos: Position, msg: Any): Unit = errorFn(posstr(pos) + ": " + msg) + def errorFn(pos: Position, msg: Any): Unit = currentUnit.warning(pos, "[check: %s] %s".format(phase.prev, msg)) + def errorFn(msg: Any): Unit = errorFn(NoPosition, msg) def informFn(msg: Any) { if (settings.verbose || settings.debug) |