Skip to content

Commit

Permalink
Drop handleRecursive from MatchType#tryNormalize
Browse files Browse the repository at this point in the history
There is already a `handleRecursive` in `reduced`
Having the two makes error messages undeterministic, see #20269

[Cherry-picked 309b1cf]
  • Loading branch information
EugeneFlesselle authored and WojciechMazur committed Aug 27, 2024
1 parent 40dbcc2 commit 0b6900e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions compiler/src/dotty/tools/dotc/core/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5159,11 +5159,7 @@ object Types extends TypeUtils {
private var reductionContext: util.MutableMap[Type, Type] | Null = null

override def tryNormalize(using Context): Type =
try
reduced.normalized
catch
case ex: Throwable =>
handleRecursive("normalizing", s"${scrutinee.show} match ..." , ex)
reduced.normalized

private def thisMatchType = this

Expand Down

0 comments on commit 0b6900e

Please sign in to comment.