]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
go/types, types2: remove setDefType and most def plumbing
authorMark Freeman <mark@golang.org>
Mon, 24 Nov 2025 19:34:39 +0000 (14:34 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 27 Nov 2025 00:17:55 +0000 (16:17 -0800)
commitff2fd6327ecb343d96074dff3ccee359b5f1d629
tree065c937c065551af1e79adbae5b929d9c9e1c319
parent3531ac23d4aac6bdd914f14f65ee5fdc5e6e98fa
go/types, types2: remove setDefType and most def plumbing

CL 722161 replaced the setDefType mechanism with boundaries on composite
literals, removing the need to pass the def argument in all but 1 case.

The exception is interface types, which use def to populate the receiver
type for better error messages.

Change-Id: Ic78c91238588015153f0d22790be5872a01c5f63
Reviewed-on: https://go-review.googlesource.com/c/go/+/723920
Auto-Submit: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
14 files changed:
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/decl.go
src/cmd/compile/internal/types2/expr.go
src/cmd/compile/internal/types2/lookup.go
src/cmd/compile/internal/types2/named.go
src/cmd/compile/internal/types2/resolver.go
src/cmd/compile/internal/types2/typexpr.go
src/go/types/call.go
src/go/types/decl.go
src/go/types/expr.go
src/go/types/lookup.go
src/go/types/named.go
src/go/types/resolver.go
src/go/types/typexpr.go