Skip to content

Commit

Permalink
an amazing discovery made by Iulian
Browse files Browse the repository at this point in the history
Traces were stalling macro expansions by evaluating messages even when
-Ymacro-debug-* flags were disabled.
  • Loading branch information
xeno-by committed Mar 18, 2013
1 parent b7b4f87 commit 5db04eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/util/SimpleTracer.scala
Expand Up @@ -10,7 +10,7 @@ import java.io.PrintStream
* @param enabled: A condition that must be true for trace info to be produced. * @param enabled: A condition that must be true for trace info to be produced.
*/ */
class SimpleTracer(out: PrintStream, enabled: Boolean = true) { class SimpleTracer(out: PrintStream, enabled: Boolean = true) {
def apply[T](msg: String)(value: T): T = { def apply[T](msg: => String)(value: T): T = {
if (enabled) out.println(msg+value) if (enabled) out.println(msg+value)
value value
} }
Expand Down

2 comments on commit 5db04eb

@scala-jenkins
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Job pr-rangepos-per-commit failed for 5db04eb (results):


Took 6 s.
to rebuild, comment "PLS REBUILD/pr-rangepos-per-commit@5db04eb0ddf53f183a5b61616d037f6b558eba5c" on PR 2276

@scala-jenkins
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Job pr-checkin-per-commit failed for 5db04eb (results):


Took 42 s.
to rebuild, comment "PLS REBUILD/pr-checkin-per-commit@5db04eb0ddf53f183a5b61616d037f6b558eba5c" on PR 2276

Please sign in to comment.