]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: add more tests for unsafe.Slice/SliceData/String/StringData
authorRobert Griesemer <gri@golang.org>
Wed, 24 Aug 2022 23:59:22 +0000 (16:59 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 25 Aug 2022 04:00:07 +0000 (04:00 +0000)
commit8c8429fe4113b399355c11203e60e6b37bc823ba
treec87690fbeeef63bb7ac0d3be3e7e01c3f58a341a
parentba5deb408f50f31a872f114c5ef7b52090e4b753
go/types, types2: add more tests for unsafe.Slice/SliceData/String/StringData

Also:
- fine-tune the implementation for some of the new builtin functions
- make sure the go/types code is an exact as possible copy of the
  types2 code
- fix the description and examples for errorcodes.go

Follow-up on CL 423754.

For #53003.

Change-Id: I5c70b74e90c724cf6c842cedc6f8ace26fde372b
Reviewed-on: https://go-review.googlesource.com/c/go/+/425454
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/builtins.go
src/cmd/compile/internal/types2/builtins_test.go
src/cmd/compile/internal/types2/testdata/check/builtins0.go
src/go/types/builtins.go
src/go/types/builtins_test.go
src/go/types/errorcodes.go
src/go/types/testdata/check/builtins0.go