aboutsummaryrefslogtreecommitdiff
path: root/src/internal/pkgbits
diff options
context:
space:
mode:
authorMark Freeman <mark@golang.org>2026-03-31 15:42:58 -0400
committerGopher Robot <gobot@golang.org>2026-04-01 10:24:02 -0700
commitfd961d3eb3124c7bbe0bdde78d30cd07b055a20e (patch)
treeed3f9465ddbfcc11813d6c94e05a8845341374fa /src/internal/pkgbits
parent8c61ad873acc7f620c04e584d5f250931804b4ea (diff)
downloadgo-fd961d3eb3124c7bbe0bdde78d30cd07b055a20e.tar.xz
internal/pkgbits: bump version for generic methods
We still need to guard changes to the bitstream which don't depend on witnessing a generic method. Change-Id: Idfc189ebb02f86dbd91e47f5e4c7663479441370 Reviewed-on: https://go-review.googlesource.com/c/go/+/761583 Auto-Submit: Mark Freeman <markfreeman@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/internal/pkgbits')
-rw-r--r--src/internal/pkgbits/version.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/internal/pkgbits/version.go b/src/internal/pkgbits/version.go
index beebb22efb..6c424ee0c0 100644
--- a/src/internal/pkgbits/version.go
+++ b/src/internal/pkgbits/version.go
@@ -34,6 +34,9 @@ const (
// - a negative struct field index indicates an embedded field
V3
+ // V4: encodes generic methods as standalone function objects
+ V4
+
numVersions = iota
)
@@ -70,6 +73,9 @@ const (
// Composite literals use a more compact format for element lists.
CompactCompLiterals
+ // Generic methods may appear as standalone function objects.
+ GenericMethods
+
numFields = iota
)
@@ -78,6 +84,7 @@ var introduced = [numFields]Version{
Flags: V1,
AliasTypeParamNames: V2,
CompactCompLiterals: V3,
+ GenericMethods: V4,
}
// removed is the version a field was removed in or 0 for fields