]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
go/types, types2: remove InvalidTypeCycle from literals.go
authorMark Freeman <mark@golang.org>
Tue, 25 Nov 2025 18:56:18 +0000 (13:56 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 27 Nov 2025 00:20:21 +0000 (16:20 -0800)
commitc048a9a11f21e879a76e328b7a92f3a47f298b37
tree6abb28a8af2691bf1e54a746dfd7568224f7aaa4
parentff2fd6327ecb343d96074dff3ccee359b5f1d629
go/types, types2: remove InvalidTypeCycle from literals.go

Both CL 722161 and CL 724140 implement a more general solution to
detecting cycles involving values of a type on the object path.

The logic in literals.go was intended to be a stop-gap solution and
is no longer necessary.

Change-Id: I328c0febf35444f07fc1894278dc76ab140710bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/724380
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Mark Freeman <markfreeman@google.com>
src/cmd/compile/internal/types2/literals.go
src/go/types/literals.go