]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove unneeded type alias code in unified IR
authorMatthew Dempsky <mdempsky@google.com>
Mon, 7 Mar 2022 03:52:08 +0000 (19:52 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 7 Mar 2022 06:23:26 +0000 (06:23 +0000)
commit82a65299050cb1146583c72350f841684256bb3c
tree3fc10e710d0429681e2a73c2b5a0de30cb8b3a3e
parent7c292ddf1f883698b3a0bab7004368cff62a04a5
cmd/compile: remove unneeded type alias code in unified IR

Before #46477, the Go generics proposal allowed `type T = U` where `U`
was an uninstantiated generic type. However, we decided not to allow
that, and go/types and types2 have already been updated to disallow
it. This CL just removes the analogous code from unified IR.

Change-Id: I0fe6d1754c96790b498c1d5185b948333646d7de
Reviewed-on: https://go-review.googlesource.com/c/go/+/390315
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/noder/writer.go