]> Cypherpunks repositories - gostls13.git/commit
go/types: re-use type hashing logic in Context.typeHash
authorRobert Findley <rfindley@google.com>
Wed, 10 Nov 2021 03:28:18 +0000 (22:28 -0500)
committerRobert Findley <rfindley@google.com>
Fri, 12 Nov 2021 18:11:51 +0000 (18:11 +0000)
commitede97290edd6ca9291d44f8eba503fbd8b162ed4
tree4f19563ec6ba2250b26de0510d69370003420194
parent2dbf37045c24c8ab6f93083adc8be9ccdb3e3603
go/types: re-use type hashing logic in Context.typeHash

The special handling for *Named types is not necessary. The hash of an
instance is simply the hash of its type followed by its type argument
list.

Change-Id: I7aa58e73b81731c3cad3a2fd14124f63cfb685a7
Reviewed-on: https://go-review.googlesource.com/c/go/+/362800
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/context.go
src/go/types/instantiate.go