summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-09-09 12:58:43 -0700
committerPaul Phillips <paulp@improving.org>2013-09-09 12:58:43 -0700
commitb93f4bfce69e2780f440650b6047ce509ff7eaae (patch)
tree5d4bd6f173a5cbb453b3023d0af30d0e5e903286
parentf342445f68654c1606871b5d7372621558731f65 (diff)
parent0d7fd0828b7ab47a5eca011177aa468a30b6085f (diff)
downloadscala-b93f4bfce69e2780f440650b6047ce509ff7eaae.tar.gz
scala-b93f4bfce69e2780f440650b6047ce509ff7eaae.tar.bz2
scala-b93f4bfce69e2780f440650b6047ce509ff7eaae.zip
Merge pull request #2925 from retronym/topic/opt-implicit-log
Avoid needless Type stringification when logging is disabled.
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Implicits.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
index 3a6b25f1cd..fbe8cd77fb 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
@@ -316,7 +316,7 @@ trait Implicits {
*/
class ImplicitSearch(tree: Tree, pt: Type, isView: Boolean, context0: Context, pos0: Position = NoPosition) extends Typer(context0) with ImplicitsContextErrors {
val searchId = implicitSearchId()
- private def typingLog(what: String, msg: String) =
+ private def typingLog(what: String, msg: => String) =
typingStack.printTyping(tree, f"[search #$searchId] $what $msg")
import infer._