Skip to content

Commit 2f87b9c

Browse files
committed
go/types, types2: remove duplicate resolve call
Change-Id: I8afe8bf6304b6a3645bbd8d4d19f152862c58725 Reviewed-on: https://go-review.googlesource.com/c/go/+/351119 Trust: Robert Griesemer <[email protected]> Run-TryBot: Robert Griesemer <[email protected]> Reviewed-by: Robert Findley <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent d7e3e44 commit 2f87b9c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ func (subst *subster) typ(typ Type) Type {
224224
return named
225225
}
226226

227-
t.orig.resolve(subst.env)
228227
// Create a new instance and populate the environment to avoid endless
229228
// recursion. The position used here is irrelevant because validation only
230229
// occurs on t (we don't call validType on named), but we use subst.pos to

src/go/types/subst.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ func (subst *subster) typ(typ Type) Type {
210210
return named
211211
}
212212

213-
t.orig.resolve(subst.env)
214213
// Create a new instance and populate the environment to avoid endless
215214
// recursion. The position used here is irrelevant because validation only
216215
// occurs on t (we don't call validType on named), but we use subst.pos to

0 commit comments

Comments
 (0)