Skip to content

Commit dc2d31b

Browse files
EugeneFlesselleprolativ
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 ea96161 commit dc2d31b

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
@@ -4958,11 +4958,7 @@ object Types extends TypeUtils {
49584958
private var reductionContext: util.MutableMap[Type, Type] = _
49594959

49604960
override def tryNormalize(using Context): Type =
4961-
try
4962-
reduced.normalized
4963-
catch
4964-
case ex: Throwable =>
4965-
handleRecursive("normalizing", s"${scrutinee.show} match ..." , ex)
4961+
reduced.normalized
49664962

49674963
def reduced(using Context): Type = atPhaseNoLater(elimOpaquePhase) {
49684964

0 commit comments

Comments
 (0)