From: Robert Griesemer Date: Tue, 21 Sep 2021 00:08:11 +0000 (-0700) Subject: go/types, types2: remove duplicate resolve call X-Git-Tag: go1.18beta1~1279 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2f87b9c942366ddf38f49d34671252663fca7889;p=gostls13.git go/types, types2: remove duplicate resolve call Change-Id: I8afe8bf6304b6a3645bbd8d4d19f152862c58725 Reviewed-on: https://go-review.googlesource.com/c/go/+/351119 Trust: Robert Griesemer Run-TryBot: Robert Griesemer Reviewed-by: Robert Findley TryBot-Result: Go Bot --- diff --git a/src/cmd/compile/internal/types2/subst.go b/src/cmd/compile/internal/types2/subst.go index 87c1d7872b..fe73ef688c 100644 --- a/src/cmd/compile/internal/types2/subst.go +++ b/src/cmd/compile/internal/types2/subst.go @@ -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 diff --git a/src/go/types/subst.go b/src/go/types/subst.go index 16aafd622e..999099572c 100644 --- a/src/go/types/subst.go +++ b/src/go/types/subst.go @@ -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