]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: fix unified IR support for //go:nointerface
authorMatthew Dempsky <mdempsky@google.com>
Fri, 2 Jul 2021 23:59:01 +0000 (16:59 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 26 Jul 2021 18:43:12 +0000 (18:43 +0000)
commitbfcb7c4c8adadd6191c3fdacf2b59136b0da5c1c
tree24731ce99b2df34efd2c3b64e2710347f35818d3
parentb27c7e30dc5d222766057e62c16cb765b636d244
[dev.typeparams] cmd/compile: fix unified IR support for //go:nointerface

This CL changes fixedbugs/issue30862.go into a "runindir" test so that
it can use '-goexperiment fieldtrack' and test that //go:nointerface
works with cmd/compile. In particular, this revealed that -G=3 and
unified IR did not handle it correctly.

This CL also fixes unified IR's support for //go:nointerface and adds
a test that checks that //go:nointerface, promoted methods, and
generics all interact as expected.

Updates #47045.

Change-Id: Ib8acff8ae18bf124520d00c98e8915699cba2abd
Reviewed-on: https://go-review.googlesource.com/c/go/+/332611
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/noder/reader.go
test/fixedbugs/issue30862.dir/a/a.go [moved from test/fixedbugs/issue30862.dir/a.go with 100% similarity]
test/fixedbugs/issue30862.dir/b/b.go [moved from test/fixedbugs/issue30862.dir/b.go with 95% similarity]
test/fixedbugs/issue30862.dir/main.go
test/fixedbugs/issue30862.go
test/run.go
test/typeparam/mdempsky/15.go [new file with mode: 0644]