From 5565462a866af6d882d1f367ae5611260ad07b79 Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Sat, 6 Jul 2024 23:03:27 +0000 Subject: [PATCH] cmd/dist: remove iter,slices,maps test on GOEXPERIMENT=rangefunc 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 Reviewed-by: Ian Lance Taylor Reviewed-by: Than McIntosh LUCI-TryBot-Result: Go LUCI --- src/cmd/dist/test.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index d7cbadf7b17..0ffcabe4164 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -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.