]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: mark methods of instantiated interface types as used
authorDan Scales <danscales@google.com>
Mon, 26 Jul 2021 01:27:15 +0000 (18:27 -0700)
committerDan Scales <danscales@google.com>
Wed, 28 Jul 2021 03:04:12 +0000 (03:04 +0000)
commite00a6ec084605b773cdb87971de5b5536c0cc13e
tree2899d6b3578ee2ee51eb25e689196d4f2325e789
parentc751e2e6ba30fc319c93b9cfe207dc7d1b48c3fb
[dev.typeparams] cmd/compile: mark methods of instantiated interface types as used

Fix the cons.go missing method error. Mark all the methods of
instantiated interface types as used. We could try to record all the
exact methods used for generic interface types, but for now, just mark
all the methods as used so that their methods are not dead-code
eliminated.

Change-Id: I35685eda82476244371379b97691a1b8506ef0f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/337349
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/noder/stencil.go
test/run.go