]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: remove Named.SetTArgs
authorRob Findley <rfindley@google.com>
Mon, 9 Aug 2021 17:39:32 +0000 (13:39 -0400)
committerRobert Findley <rfindley@google.com>
Tue, 10 Aug 2021 21:52:02 +0000 (21:52 +0000)
commit7308d747e7914b1dbb446988c2094f96b8e5116d
treea7bd19e3867836df8907e4b5b966a20a761bbb9a
parent0f34a92df76a7946e55d437264bbf5459b30f302
[dev.typeparams] cmd/compile/internal/types2: remove Named.SetTArgs

Calling SetTArgs without substituting can leave the type in incoherent
state, so we should avoid exposing this API unless necessary. Since it
is currently not used by the importer(s), it is probably not necessary
to expose for 1.18, so remove it.

Change-Id: I06bd7b5bbfacd3c65e2e66a9d5980f20cd1c10c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/341290
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/named.go