From: Tim King Date: Thu, 5 Sep 2024 23:22:50 +0000 (-0700) Subject: all: enable alias type parameters GOEXPERIMENT by default X-Git-Tag: go1.24rc1~840 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4a1167dfe1e1616abbe1d70dbd3b44d7ca6d2f60;p=gostls13.git 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 --- diff --git a/src/internal/buildcfg/exp.go b/src/internal/buildcfg/exp.go index 7c7cefba7b..8c8a16c571 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 33a24433cb..ae5d4ad81a 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.