From 4231a0bc06765d914790078c184c525b9b7a1ef4 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 29 Jul 2011 20:56:52 +0000 Subject: Quieting down mr. lifty, no review. --- src/compiler/scala/tools/nsc/transform/LiftCode.scala | 4 ++-- src/compiler/scala/tools/nsc/util/trace.scala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/transform/LiftCode.scala b/src/compiler/scala/tools/nsc/transform/LiftCode.scala index 56bcd42ae0..353fbf94ad 100644 --- a/src/compiler/scala/tools/nsc/transform/LiftCode.scala +++ b/src/compiler/scala/tools/nsc/transform/LiftCode.scala @@ -56,7 +56,7 @@ abstract class LiftCode extends Transform with TypingTransformers { case _ => transform(rhs) } val rhs1 = typer.typedPos(rhs.pos) { - util.errtrace("lifted rhs for "+tree+" in "+unit) ( + /*util.errtrace("lifted rhs for "+tree+" in "+unit)*/( Apply(Select(New(TypeTree(sym.tpe)), nme.CONSTRUCTOR), List(constructorArg))) } sym resetFlag MUTABLE @@ -64,7 +64,7 @@ abstract class LiftCode extends Transform with TypingTransformers { treeCopy.ValDef(tree, mods &~ MUTABLE, name, tpt1, rhs1) case Ident(name) if freeMutableVars(sym) => localTyper.typedPos(tree.pos) { - util.errtrace("lifting ")(Select(tree setType sym.tpe, nme.elem)) + /*util.errtrace("lifting ")*/(Select(tree setType sym.tpe, nme.elem)) } case _ => super.transform(tree) diff --git a/src/compiler/scala/tools/nsc/util/trace.scala b/src/compiler/scala/tools/nsc/util/trace.scala index 6a4d20e7f1..5207d2f13c 100644 --- a/src/compiler/scala/tools/nsc/util/trace.scala +++ b/src/compiler/scala/tools/nsc/util/trace.scala @@ -7,7 +7,7 @@ object trace extends SimpleTracer(System.out) object errtrace extends SimpleTracer(System.err) class SimpleTracer(out: PrintStream) { - def apply[T](msg: String)(value: T): T = { + def apply[T](msg: String)(value: T): T = { out.println(msg+value) value } -- cgit v1.2.3