diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-01-18 00:15:21 -0800 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-01-18 00:15:21 -0800 |
commit | 9bc68766aa17b3509de1bac0e330ea80b6955cdf (patch) | |
tree | 4a81122b7ad08a433a1e2e7dd44e15fd653e2998 /src/compiler | |
parent | 7c0fd124a636bb0dcca236d5aaf7e799c40d6104 (diff) | |
parent | c258ccc9b52c9bfcd47342d3dcf6b58faac8535b (diff) | |
download | scala-9bc68766aa17b3509de1bac0e330ea80b6955cdf.tar.gz scala-9bc68766aa17b3509de1bac0e330ea80b6955cdf.tar.bz2 scala-9bc68766aa17b3509de1bac0e330ea80b6955cdf.zip |
Merge pull request #3381 from retronym/topic/debug-friendliness
Fix compilation under -Ydebug
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala index cccae0c3a0..24bce0636d 100644 --- a/src/compiler/scala/tools/nsc/ast/Trees.scala +++ b/src/compiler/scala/tools/nsc/ast/Trees.scala @@ -194,7 +194,9 @@ trait Trees extends scala.reflect.internal.Trees { self: Global => * (bq:) This transformer has mutable state and should be discarded after use */ private class ResetAttrs(localOnly: Boolean, leaveAlone: Tree => Boolean = null, keepLabels: Boolean = false) { - val debug = settings.debug.value + // this used to be based on -Ydebug, but the need for logging in this code is so situational + // that I've reverted to a hard-coded constant here. + val debug = false val trace = scala.tools.nsc.util.trace when debug val locals = util.HashSet[Symbol](8) |