]> Cypherpunks repositories - gostls13.git/commit
go/types: clarify that contexts do not guarantee deduplication
authorRobert Findley <rfindley@google.com>
Tue, 29 Mar 2022 22:30:06 +0000 (18:30 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 30 Mar 2022 16:23:37 +0000 (16:23 +0000)
commit83327b4ae41cf1ef17fb4df4dc395cf17efc6375
treecbfd67f5a80f731903f2e8eb5b4d8665130299da
parent2d34af0fd6c6cb214c3a5a8f11ef95854667dd92
go/types: clarify that contexts do not guarantee deduplication

Documentation around the use of types.Context is unclear about whether
contexts guarantee deduplication of identical instances. Add explicit
disclaimers that this is not the case.

Fixes golang/go#51680

Change-Id: I6651587315d3cbf9e8d70a69d3e2ec5cedd00da5
Reviewed-on: https://go-review.googlesource.com/c/go/+/396536
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <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/go/types/context.go
src/go/types/instantiate.go