]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/types2: add unsafe.Add and unsafe.Slice
authorMatthew Dempsky <mdempsky@google.com>
Thu, 22 Apr 2021 22:38:33 +0000 (15:38 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 23 Apr 2021 00:41:01 +0000 (00:41 +0000)
commit14056d0d004489592ee0173e685ff86f241cfb4f
tree701ba481a20a7fe60d4c19a59c39e6d08dad3759
parent050b408dcc9d06316d87743fdc41b99dda4e12d5
cmd/compile/internal/types2: add unsafe.Add and unsafe.Slice

This is a port of CL 312212, CL 312591 (except check_test.go), and
CL 312790 to types2.

Updates #19367.
Updates #40481.

Change-Id: I58ba0b0dad157baba3f82c909d5eb1268b931be4
Reviewed-on: https://go-review.googlesource.com/c/go/+/312511
Trust: Matthew Dempsky <mdempsky@google.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types2/builtins.go
src/cmd/compile/internal/types2/builtins_test.go
src/cmd/compile/internal/types2/check.go
src/cmd/compile/internal/types2/check_test.go
src/cmd/compile/internal/types2/index.go
src/cmd/compile/internal/types2/testdata/expr3.src
src/cmd/compile/internal/types2/universe.go
test/makechan.go
test/makemap.go