Skip to content

Commit

Permalink
Merge pull request #2925 from retronym/topic/opt-implicit-log
Browse files Browse the repository at this point in the history
Avoid needless Type stringification when logging is disabled.
  • Loading branch information
paulp committed Sep 9, 2013
2 parents f342445 + 0d7fd08 commit b93f4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/typechecker/Implicits.scala
Expand Up @@ -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._
Expand Down

0 comments on commit b93f4bf

Please sign in to comment.