]> Cypherpunks repositories - gostls13.git/commit
all: enable range-over-func in Go 1.23
authorRuss Cox <rsc@golang.org>
Tue, 23 Jan 2024 17:02:50 +0000 (12:02 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 26 Jan 2024 04:31:42 +0000 (04:31 +0000)
commitd278d5bbdddd0e976c272d1dd3ecc41eeb37daf9
tree290dbd1ba7ae9c5a20dc30e6775555306f6c2628
parent3dcdc09c85bb07be0bbef6d6acc9e0e2534205be
all: enable range-over-func in Go 1.23

GOEXPERIMENT=rangefunc still enables it for all Go modules.
Otherwise only enable in Go 1.23 source files.
More work remains but it will be done in follow-up issues.

Fixes #61405.

Change-Id: Icad64942deb152ee65444e4d7be289814a8a0b6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/557835
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/stmt.go
src/cmd/compile/internal/types2/version.go
src/go/types/stmt.go
src/go/types/version.go
src/internal/types/testdata/spec/range.go