aboutsummaryrefslogtreecommitdiff
path: root/src/internal/pkgbits
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/pkgbits')
-rw-r--r--src/internal/pkgbits/pkgbits_test.go3
-rw-r--r--src/internal/pkgbits/version.go6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/internal/pkgbits/pkgbits_test.go b/src/internal/pkgbits/pkgbits_test.go
index a5f93c7e8e..f4c3719446 100644
--- a/src/internal/pkgbits/pkgbits_test.go
+++ b/src/internal/pkgbits/pkgbits_test.go
@@ -45,6 +45,8 @@ func TestVersions(t *testing.T) {
{pkgbits.V1, pkgbits.HasInit},
{pkgbits.V0, pkgbits.DerivedFuncInstance},
{pkgbits.V1, pkgbits.DerivedFuncInstance},
+ {pkgbits.V0, pkgbits.DerivedInfoNeeded},
+ {pkgbits.V1, pkgbits.DerivedInfoNeeded},
{pkgbits.V2, pkgbits.AliasTypeParamNames},
} {
if !c.v.Has(c.f) {
@@ -57,6 +59,7 @@ func TestVersions(t *testing.T) {
{pkgbits.V0, pkgbits.Flags},
{pkgbits.V2, pkgbits.HasInit},
{pkgbits.V2, pkgbits.DerivedFuncInstance},
+ {pkgbits.V2, pkgbits.DerivedInfoNeeded},
{pkgbits.V0, pkgbits.AliasTypeParamNames},
{pkgbits.V1, pkgbits.AliasTypeParamNames},
} {
diff --git a/src/internal/pkgbits/version.go b/src/internal/pkgbits/version.go
index fe5901a9ef..ba664f4555 100644
--- a/src/internal/pkgbits/version.go
+++ b/src/internal/pkgbits/version.go
@@ -25,6 +25,7 @@ const (
// - remove the legacy "has init" bool from the public root
// - remove obj's "derived func instance" bool
// - add a TypeParamNames field to ObjAlias
+ // - remove derived info "needed" bool
V2
numVersions = iota
@@ -56,6 +57,10 @@ const (
// ObjAlias has a list of TypeParamNames.
AliasTypeParamNames
+ // Deprecated: DerivedInfoNeeded was a bool indicating
+ // whether a type was a derived type.
+ DerivedInfoNeeded
+
numFields = iota
)
@@ -71,6 +76,7 @@ var introduced = [numFields]Version{
var removed = [numFields]Version{
HasInit: V2,
DerivedFuncInstance: V2,
+ DerivedInfoNeeded: V2,
}
// Has reports whether field f is present in a bitstream at version v.