]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: remove targs from substMap
authorRobert Findley <rfindley@google.com>
Thu, 12 Aug 2021 19:03:45 +0000 (15:03 -0400)
committerRobert Findley <rfindley@google.com>
Sat, 14 Aug 2021 15:15:06 +0000 (15:15 +0000)
commitb2253c8041511fad5fdcf7514131f972f63a01a0
tree181ef048c69f87ad68233622dec1d2790f20fd6e
parent456759b24682a41e282f73855377ac4f341da191
cmd/compile/internal/types2: remove targs from substMap

Now that we always capture targs when constructing an instance, we no
longer need to pass them via the substMap. This simplifies the code and
resolves a TODO.

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