]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: elide instantiated types in tracebacks
authorKeith Randall <khr@golang.org>
Fri, 24 Sep 2021 21:55:06 +0000 (14:55 -0700)
committerKeith Randall <khr@golang.org>
Mon, 27 Sep 2021 19:29:58 +0000 (19:29 +0000)
commita80cbc25bddfa1e6be76cf539ae9276d41b5108f
tree53a013527b3344382bdb115475e0e5527d63fbfe
parent8d09f7c5178b04bade2859d32d0710233a620d4f
runtime: elide instantiated types in tracebacks

They tend to be things like ".shape.int" which are noisy, if not
otherwise confusing.

It would be nice to somehow print the real instantiations here, but that
requires keeping track of the dictionary argument so the instantiating
types could be found. One day, maybe, but not today.

Fixes #48578

Change-Id: I0968d24e110b6d47c9468c45372a6979575a8d29
Reviewed-on: https://go-review.googlesource.com/c/go/+/352118
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/link/internal/ld/pcln.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/loader/symbolbuilder.go