Skip to content

Commit da4c0cc

Browse files
committed
.
1 parent 9143570 commit da4c0cc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

compiler/src/dotty/tools/dotc/interactive/Completion.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -715,17 +715,13 @@ object Completion:
715715
* @param qual The argument to which the implicit conversion should be applied.
716716
* @return The set of types after `qual` implicit conversion.
717717
*/
718-
private def implicitConversionTargets(qual: tpd.Tree)(using Context): Set[SearchSuccess] = try {
718+
private def implicitConversionTargets(qual: tpd.Tree)(using Context): Set[SearchSuccess] = {
719719
val typer = ctx.typer
720720
val conversions = new typer.ImplicitSearch(defn.AnyType, qual, pos.span, Set.empty).allImplicits
721721

722722
interactiv.println(i"implicit conversion targets considered: ${conversions.toList}%, %")
723723
conversions
724-
} catch case NonFatal(ex) =>
725-
logger.warning(
726-
s"Exception when searching for implicit conversions:\n ${ex.getMessage()}\n${ex.getStackTrace().mkString("\n")}"
727-
)
728-
Set.empty
724+
}
729725

730726
/** Filter for names that should appear when looking for completions. */
731727
private object completionsFilter extends NameFilter:

0 commit comments

Comments
 (0)