diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2009-09-29 16:59:02 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2009-09-29 16:59:02 +0000 |
commit | f981d15e962ba64a5fd6784978038172ab3e7735 (patch) | |
tree | 36aa1dce7eaf19aa31ed6275bd2e1ea3def9126b /src/compiler | |
parent | 1575d9b94e889661c660c6b35b915afa5833b2b9 (diff) | |
download | scala-f981d15e962ba64a5fd6784978038172ab3e7735.tar.gz scala-f981d15e962ba64a5fd6784978038172ab3e7735.tar.bz2 scala-f981d15e962ba64a5fd6784978038172ab3e7735.zip |
minor cleanup of fix for #2316 (by retronym)
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 2 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/util/Statistics.scala | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala index 90af63c267..20464f2468 100644 --- a/src/compiler/scala/tools/nsc/ast/Trees.scala +++ b/src/compiler/scala/tools/nsc/ast/Trees.scala @@ -1714,7 +1714,7 @@ trait Trees { } } - case class TreeTypeSubstituter(val from: List[Symbol], to: List[Type]) extends Traverser { + class TreeTypeSubstituter(val from: List[Symbol], to: List[Type]) extends Traverser { val typeSubst = new SubstTypeMap(from, to) override def traverse(tree: Tree) { if (tree.tpe ne null) tree.tpe = typeSubst(tree.tpe) diff --git a/src/compiler/scala/tools/nsc/util/Statistics.scala b/src/compiler/scala/tools/nsc/util/Statistics.scala index 8e4692a800..0addb7638d 100644 --- a/src/compiler/scala/tools/nsc/util/Statistics.scala +++ b/src/compiler/scala/tools/nsc/util/Statistics.scala @@ -57,7 +57,6 @@ abstract class Statistics { inform(" successful manifest: "+showRelTyper(analyzer.manifSucceed)) inform(" failed manifest: "+showRelTyper(analyzer.manifFail)) inform("implicit cache hitratio: "+"%2.1f".format(analyzer.hits.toDouble / (analyzer.hits + analyzer.misses) * 100)) - inform("implicit cache coverage: "+"%2.1f".format((analyzer.hits + analyzer.misses).toDouble / (analyzer.hits + analyzer.misses) * 100)) inform("time spent in failed : "+showRelTyper(analyzer.failedSilent)) inform(" failed op= : "+showRelTyper(analyzer.failedOpEqs)) inform(" failed apply : "+showRelTyper(analyzer.failedApplies)) |