]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: cleanup panic calls
authorRobert Griesemer <gri@golang.org>
Wed, 4 Aug 2021 19:57:23 +0000 (12:57 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 5 Aug 2021 19:37:01 +0000 (19:37 +0000)
commitf78d538858a2d9aae975b2e2c144d23bcc22c22e
tree1db864f65d92302851e6f8a359e2caeec94f7bf2
parentc5b6c36ddd0ecdee401c4e78da1addf64bdc6376
[dev.typeparams] cmd/compile/internal/types2: cleanup panic calls

End-users are not expected to deal with the details of panics,
so providing extra information such as an "internal error" prefix
or the name of the function invoking the panic are not helpful.

Remove unnecessary panic verbiage if it is readily available from
a stack trace (such as the function where it happens, and the fact
that is is an "internal error").

Change-Id: I5f86bae6d2cca7c04ce692d17257da7ddee206d7
Reviewed-on: https://go-review.googlesource.com/c/go/+/339969
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/decl.go
src/cmd/compile/internal/types2/errors.go
src/cmd/compile/internal/types2/lookup.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/signature.go
src/cmd/compile/internal/types2/stmt.go
src/cmd/compile/internal/types2/typeparam.go
src/cmd/compile/internal/types2/typeset.go
src/cmd/compile/internal/types2/typestring.go
src/cmd/compile/internal/types2/union.go
src/cmd/compile/internal/types2/universe.go