Skip to content

Commit

Permalink
all: enable alias type parameters GOEXPERIMENT by default
Browse files Browse the repository at this point in the history
For #68778

Change-Id: I4b39f84665262251ca014d3f5fe74b2fd434d51e
Reviewed-on: https://go-review.googlesource.com/c/go/+/613236
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Commit-Queue: Tim King <taking@google.com>
Reviewed-by: David Chase <drchase@google.com>
  • Loading branch information
timothy-king authored and Go LUCI committed Sep 25, 2024
1 parent 6cb1074 commit 4a1167d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/internal/buildcfg/exp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/internal/goexperiment/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4a1167d

Please sign in to comment.