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