We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c6d059 + ef91aa7 commit 52a6878Copy full SHA for 52a6878
compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala
@@ -147,9 +147,9 @@ trait ImportSuggestions:
147
* `name` that are applicable to `T`.
148
*/
149
private def importSuggestions(pt: Type)(using Context): (List[TermRef], List[TermRef]) =
150
- val timer = new Timer()
151
val allotted = ctx.run.nn.importSuggestionBudget
152
if allotted <= 1 then return (Nil, Nil)
+ val timer = new Timer()
153
implicits.println(i"looking for import suggestions, timeout = ${allotted}ms")
154
val start = System.currentTimeMillis()
155
val deadLine = start + allotted
0 commit comments