In go1.23, don't need use GOEXPERIMENT=rangefunc enable range-over-func.
Change-Id: I88b799c4b38c8fbeed8d9f912a0c3c6c45c80e9d
GitHub-Last-Rev:
64fd4524f1d2f66049fdce1f68912742c98fb8d9
GitHub-Pull-Request: golang/go#68325
Reviewed-on: https://go-review.googlesource.com/c/go/+/596517
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
})
}
- // GOEXPERIMENT=rangefunc tests
- if !t.compileOnly {
- for _, pkg := range []string{"iter", "slices", "maps"} {
- t.registerTest("GOEXPERIMENT=rangefunc",
- &goTest{
- variant: pkg,
- short: t.short,
- env: []string{"GOEXPERIMENT=rangefunc"},
- pkg: pkg,
- })
- }
- }
-
// GODEBUG=gcstoptheworld=2 tests. We only run these in long-test
// mode (with GO_TEST_SHORT=0) because this is just testing a
// non-critical debug setting.