]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: don't print instance markers for type hashes
authorRobert Griesemer <gri@golang.org>
Sun, 29 Aug 2021 00:11:51 +0000 (17:11 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 30 Aug 2021 20:22:43 +0000 (20:22 +0000)
commit8250141c9a506dee883b53473867b27e68ac10a4
tree9a51bd2f0dc9e6d7e76bce0c1559fc32dde2355a
parent5f0d821adda38b728592b9ee919c94013eb2ab5f
cmd/compile/internal/types2: don't print instance markers for type hashes

Since we know whether we are printing a type string used as
instance hash, don't print instance markers, so that we don't
need to remove them afterwards either.

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