From 4a1167dfe1e1616abbe1d70dbd3b44d7ca6d2f60 Mon Sep 17 00:00:00 2001 From: Tim King Date: Thu, 5 Sep 2024 16:22:50 -0700 Subject: [PATCH] all: enable alias type parameters GOEXPERIMENT by default For #68778 Change-Id: I4b39f84665262251ca014d3f5fe74b2fd434d51e Reviewed-on: https://go-review.googlesource.com/c/go/+/613236 LUCI-TryBot-Result: Go LUCI Reviewed-by: Robert Griesemer Commit-Queue: Tim King Reviewed-by: David Chase --- src/internal/buildcfg/exp.go | 1 + src/internal/goexperiment/flags.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal/buildcfg/exp.go b/src/internal/buildcfg/exp.go index 7c7cefba7b2a6..8c8a16c571094 100644 --- a/src/internal/buildcfg/exp.go +++ b/src/internal/buildcfg/exp.go @@ -71,6 +71,7 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) { RegabiWrappers: regabiSupported, RegabiArgs: regabiSupported, CoverageRedesign: true, + AliasTypeParams: true, } // Start with the statically enabled set of experiments. diff --git a/src/internal/goexperiment/flags.go b/src/internal/goexperiment/flags.go index 33a24433cbd6b..ae5d4ad81a089 100644 --- a/src/internal/goexperiment/flags.go +++ b/src/internal/goexperiment/flags.go @@ -113,7 +113,7 @@ type Flags struct { // AliasTypeParams enables type parameters for alias types. // Requires that gotypesalias=1 is set with GODEBUG. - // This flag will be removed with Go 1.24. + // This flag will be removed with Go 1.25. AliasTypeParams bool // SwissMap enables the SwissTable-based map implementation.