]> Cypherpunks repositories - gostls13.git/commitdiff
go/types, types2: remove duplicate resolve call
authorRobert Griesemer <gri@golang.org>
Tue, 21 Sep 2021 00:08:11 +0000 (17:08 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 21 Sep 2021 00:26:53 +0000 (00:26 +0000)
Change-Id: I8afe8bf6304b6a3645bbd8d4d19f152862c58725
Reviewed-on: https://go-review.googlesource.com/c/go/+/351119
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/cmd/compile/internal/types2/subst.go
src/go/types/subst.go

index 87c1d7872bfe488527f4fadae123b839ef5e8ef9..fe73ef688c801e0d1595f5fdfa11919b76bad51f 100644 (file)
@@ -224,7 +224,6 @@ func (subst *subster) typ(typ Type) Type {
                        return named
                }
 
-               t.orig.resolve(subst.env)
                // Create a new instance and populate the environment to avoid endless
                // recursion. The position used here is irrelevant because validation only
                // occurs on t (we don't call validType on named), but we use subst.pos to
index 16aafd622e97c40428eb2cef12b98c0b316c306b..999099572c7539cf181c0c291673550a172ec2f1 100644 (file)
@@ -210,7 +210,6 @@ func (subst *subster) typ(typ Type) Type {
                        return named
                }
 
-               t.orig.resolve(subst.env)
                // Create a new instance and populate the environment to avoid endless
                // recursion. The position used here is irrelevant because validation only
                // occurs on t (we don't call validType on named), but we use subst.pos to