From 2f87b9c942366ddf38f49d34671252663fca7889 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 20 Sep 2021 17:08:11 -0700 Subject: [PATCH] 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 --- src/cmd/compile/internal/types2/subst.go | 1 - src/go/types/subst.go | 1 - 2 files changed, 2 deletions(-) diff --git a/src/cmd/compile/internal/types2/subst.go b/src/cmd/compile/internal/types2/subst.go index 87c1d7872bf..fe73ef688c8 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 16aafd622e9..999099572c7 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