]> Cypherpunks.ru repositories - gostls13.git/commit
all: rename GOEXPERIMENT=range to rangefunc
authorCherry Mui <cherryyz@google.com>
Tue, 7 Nov 2023 17:01:09 +0000 (12:01 -0500)
committerCherry Mui <cherryyz@google.com>
Wed, 8 Nov 2023 15:32:14 +0000 (15:32 +0000)
commit45320c23f21cb89234486b50b8644e879a16ca65
treeaa14626b848d1ec77586def66a958931f84cd541
parent3f700ce4d2f9674e9091f5a33fa8860f9106d5c8
all: rename GOEXPERIMENT=range to rangefunc

Range over integer is enabled now without the GOEXPERIMENT. The
GOEXPERIMENT is only for range over func. Rename it to rangefunc.

For #61405.

Change-Id: I9405fb8e2e30827875716786823856090a1a0cad
Reviewed-on: https://go-review.googlesource.com/c/go/+/539277
Reviewed-by: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
13 files changed:
src/cmd/compile/internal/types2/check_test.go
src/cmd/compile/internal/types2/stmt.go
src/go/types/check_test.go
src/go/types/stmt.go
src/internal/goexperiment/exp_range_off.go [deleted file]
src/internal/goexperiment/exp_range_on.go [deleted file]
src/internal/goexperiment/exp_rangefunc_off.go [new file with mode: 0644]
src/internal/goexperiment/exp_rangefunc_on.go [new file with mode: 0644]
src/internal/goexperiment/flags.go
src/internal/types/testdata/spec/range.go
test/range2.go
test/range4.go
test/rangegen.go