]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: dump position stack for non-bailout panics
authorMark Freeman <mark@golang.org>
Wed, 28 May 2025 15:10:53 +0000 (11:10 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 28 May 2025 19:37:33 +0000 (12:37 -0700)
commit18ad74dd36a9bbdc6a95a9de398b3cd8917898ae
treeaa07e39c573e23554bcfa6f27194c610a754bb8d
parent70109eb32625487d9c774d602a4fa2422e218f1b
go/types, types2: dump position stack for non-bailout panics

We make sure to dump to stderr since that's where the panic information
ends up. Long traces get truncated with a "..." in the middle. We pick
an arbitrary limit of 10 positions, but this could be changed.

For #51603

Change-Id: I02326a93181e94e1c48afc05684240540c2c90ba
Reviewed-on: https://go-review.googlesource.com/c/go/+/676815
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Mark Freeman <mark@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/types2/check.go
src/go/types/check.go