]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: unexport Context.TypeHash
authorRobert Findley <rfindley@google.com>
Fri, 12 Nov 2021 00:07:28 +0000 (19:07 -0500)
committerRobert Findley <rfindley@google.com>
Fri, 12 Nov 2021 18:14:22 +0000 (18:14 +0000)
commit8b66b3d49f931715c52b4ed71bc1dc935132c30f
tree77559aabacae85295413090fa8224fad32a90198
parentede97290edd6ca9291d44f8eba503fbd8b162ed4
cmd/compile/internal/types2: unexport Context.TypeHash

Context.TypeHash is not being used outside of the type checker, so
unexport it.

The TypeHash method is meant to hash instances, not arbitrary types, and
will soon be modified to differentiate origin types by pointer identity
(even if they are *Signature types).

Change-Id: Ia8d4a7c6350ce7f278b70630585efb0009fef63a
Reviewed-on: https://go-review.googlesource.com/c/go/+/363516
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/cmd/compile/internal/types2/context.go
src/cmd/compile/internal/types2/instantiate.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/subst.go
src/cmd/compile/internal/types2/typexpr.go