]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: re-enable panic if unification stack-overflows
authorRobert Griesemer <gri@golang.org>
Mon, 14 Mar 2022 20:26:42 +0000 (13:26 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 21 Mar 2022 19:10:16 +0000 (19:10 +0000)
commitefbff6e43bee73787bbf45a1f038e2f3bf0c8bd9
tree26c3244a61f43b21b096e51b02ba695f3a8f1ffd
parent3ebb1720d92f194d23ff9ba838715cfcf8fc90e1
go/types, types2: re-enable panic if unification stack-overflows

With all the unification/type-inference fixes in place now, we
should not see stack overflows anymore. Re-enable the panic if
we do overflow, so we can address those issues should they arise.

Fixes #51377.

Change-Id: Ied64435ea5936811504cb30bda1126c7d85980f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/392755
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go