]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types: use Type.LinkString in TypeHash
authorMatthew Dempsky <mdempsky@google.com>
Fri, 18 Mar 2022 02:50:47 +0000 (19:50 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 16 May 2022 23:55:03 +0000 (23:55 +0000)
commita900a176bf946ac220336c7c5dad107745fc9c41
tree7c941e2ceaf381ecea39b823409600470d50846b
parentd81dd1290665aea2de8d4d5284be26ea0bfe4cd2
cmd/compile/internal/types: use Type.LinkString in TypeHash

Now that Type.LinkString always returns a fully unique string ID, we
can use it in TypeHash to avoid collisions between instantiations of
the same generic type.

Updates #51734.

Change-Id: I38cb396c88259be7afa44bd4333124ca98666c3f
Reviewed-on: https://go-review.googlesource.com/c/go/+/393716
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/types/fmt.go