1
0
mirror of https://github.com/golang/go synced 2024-07-08 20:29:48 +00:00

cmd/compile: change iexportVersionGeneric to 2

Don't expect/allow generics-related info in iexportVersion 1, now that
we increased the export version to 2.

Fixes #49853

Change-Id: I9bacee7f8e7cb9bb3b02a00084fad77edd220121
Reviewed-on: https://go-review.googlesource.com/c/go/+/367634
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
This commit is contained in:
Dan Scales 2021-11-29 12:04:42 -08:00
parent 3ca57c7fb8
commit f90a42b410
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ func (r *intReader) uint64() uint64 {
const (
iexportVersionGo1_11 = 0
iexportVersionPosCol = 1
iexportVersionGenerics = 1 // probably change to 2 before release
iexportVersionGenerics = 2
iexportVersionGo1_18 = 2
iexportVersionCurrent = 2

View File

@ -261,7 +261,7 @@ import (
const (
iexportVersionGo1_11 = 0
iexportVersionPosCol = 1
iexportVersionGenerics = 1 // probably change to 2 before release
iexportVersionGenerics = 2
iexportVersionGo1_18 = 2
iexportVersionCurrent = 2

View File

@ -46,7 +46,7 @@ func (r *intReader) uint64() uint64 {
const (
iexportVersionGo1_11 = 0
iexportVersionPosCol = 1
iexportVersionGenerics = 1 // probably change to 2 before release
iexportVersionGenerics = 2
iexportVersionGo1_18 = 2
iexportVersionCurrent = 2