]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: update types2.Info.FileVersions API to match go/types
authorRobert Griesemer <gri@golang.org>
Thu, 9 Nov 2023 22:37:56 +0000 (14:37 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 10 Nov 2023 02:22:15 +0000 (02:22 +0000)
commit1fc45e9a2b7f457451106d5bf7a40d86257d639e
treebe21fc993e9b8ca86d3940109992a34102415c0c
parenteda42f7c60adab26ed1a340414c726c4bf46b1f7
cmd/compile: update types2.Info.FileVersions API to match go/types

This CL changes the FileVersions map to map to version strings
rather than Version structs, for use with the new go/versions
package.

Adjust the cmd/dist bootstrap package list to include go/version.

Adjust the compiler's noder to work with the new API.

For #62605.
For #63974.

Change-Id: I191a7015ba3fb61c646e9f9d3c3dbafc9653ccb5
Reviewed-on: https://go-review.googlesource.com/c/go/+/541296
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/noder/irgen.go
src/cmd/compile/internal/noder/writer.go
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/api_test.go
src/cmd/compile/internal/types2/check.go
src/cmd/dist/buildtool.go
src/go/types/check.go