]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: unexport the GoVersion configuration option for Go 1.17
authorRob Findley <rfindley@google.com>
Fri, 28 May 2021 15:58:05 +0000 (11:58 -0400)
committerRobert Findley <rfindley@google.com>
Sun, 30 May 2021 02:37:38 +0000 (02:37 +0000)
commit1607c2817241bd141af9331a3e6c3148e5cd5d8b
treed7098a39fb8c729c392c1c8954612a7d803524b8
parent79bda650410c8617f0ae20dc552c6d5b8f8dcfc8
go/types: unexport the GoVersion configuration option for Go 1.17

The GoVersion field was added to types.Config as part of the work on
type parameters. Specifically, it was added to be consistent with
cmd/compile/internal/types2, which requires such an option.

This configuration option is useful, but is also non-trivial and did not
go through the proposal process. Unexport it for Go 1.17; we can create
a proposal to export it for Go 1.18.

Fixes #46296

Change-Id: Id82d8a7096887dcfc404c4d6d8da9c761b316609
Reviewed-on: https://go-review.googlesource.com/c/go/+/323430
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/api.go
src/go/types/check.go
src/go/types/check_test.go
src/go/types/stdlib_test.go
src/go/types/types_test.go