]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: export/import materialized aliases
authorAlan Donovan <adonovan@google.com>
Wed, 27 Mar 2024 13:44:01 +0000 (09:44 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 5 Apr 2024 16:29:58 +0000 (16:29 +0000)
commitb24ec88bb93438bfabca34a2acb739a629c23806
treee3a23d1e1436a2217e1a6682791614a7a8f63e8b
parent2e064cf14441460290fd25d9d61f02a9d0bae671
cmd/compile: export/import materialized aliases

This CL changes the compiler's type import/export logic
to create and preserve materialized Alias types
when GODEBUG=gotypesaliases=1.

In conjunction with CL 574717, it allows the x/tools
tests to pass with GODEBUG=gotypesaliases=1.

Updates #65294
Updates #64581
Fixes #66550

Change-Id: I70b9279f4e0ae7a1f95ad153c4e6909a878915a4
Reviewed-on: https://go-review.googlesource.com/c/go/+/574737
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/importer/ureader.go
src/cmd/compile/internal/noder/writer.go
src/cmd/compile/internal/types2/alias.go
src/cmd/compile/internal/types2/api.go
src/go/internal/gcimporter/ureader.go
src/go/types/alias.go
src/go/types/eval_test.go
src/go/types/named_test.go
test/typeparam/struct.go