]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: remove iter,slices,maps test on GOEXPERIMENT=rangefunc
authorqiulaidongfeng <2645477756@qq.com>
Sat, 6 Jul 2024 23:03:27 +0000 (23:03 +0000)
committerGopher Robot <gobot@golang.org>
Sun, 7 Jul 2024 19:43:31 +0000 (19:43 +0000)
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>

src/cmd/dist/test.go

index d7cbadf7b17aef6a15e6564e2287c618166462d5..0ffcabe4164af6ec05bbe701f5b49d16d6e77a8c 100644 (file)
@@ -711,19 +711,6 @@ func (t *tester) registerTests() {
                        })
        }
 
-       // 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.