From 76694076a76766e84c31bb65c0914d358186360b Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Tue, 17 Oct 2023 14:40:42 +0200 Subject: [PATCH] Fix import suggestion error logging This was printing the extra debug information when testing tests/neg-deep-subtype/i1650.scala [Cherry-picked 322f87474cf2a4e8980ff9e8b5e0eff8bb10be2e] --- compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala b/compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala index a21a94aab271..f357b972800a 100644 --- a/compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala +++ b/compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala @@ -195,7 +195,7 @@ trait ImportSuggestions: && { val task = new TimerTask: def run() = - println(i"Cancelling test of $ref when making suggestions for error in ${ctx.source}") + implicits.println(i"Cancelling test of $ref when making suggestions for error in ${ctx.source}") ctx.run.nn.isCancelled = true val span = ctx.owner.srcPos.span val (expectedType, argument, kind) = pt match