Skip to content

Commit 0b6900e

Browse files
EugeneFlesselleWojciechMazur
authored andcommitted
Drop handleRecursive from MatchType#tryNormalize
There is already a `handleRecursive` in `reduced` Having the two makes error messages undeterministic, see #20269 [Cherry-picked 309b1cf]
1 parent 40dbcc2 commit 0b6900e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5159,11 +5159,7 @@ object Types extends TypeUtils {
51595159
private var reductionContext: util.MutableMap[Type, Type] | Null = null
51605160

51615161
override def tryNormalize(using Context): Type =
5162-
try
5163-
reduced.normalized
5164-
catch
5165-
case ex: Throwable =>
5166-
handleRecursive("normalizing", s"${scrutinee.show} match ..." , ex)
5162+
reduced.normalized
51675163

51685164
private def thisMatchType = this
51695165

0 commit comments

Comments
 (0)