go/src/cmd
Matthew Dempsky 962d5c997a cmd/compile,go/types: restrict use of unsafe.{Add,Slice} to go1.17 or newer
This CL updates cmd/compile (including types2) and go/types to report
errors about using unsafe.Add and unsafe.Slice when language
compatibility is set to Go 1.16 or older.

Fixes #46525.

Change-Id: I1bfe025a672d9f4b929f443064ad1effd38d0363
Reviewed-on: https://go-review.googlesource.com/c/go/+/324369
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
2021-06-04 01:31:23 +00:00
..
addr2line
api cmd/api: disallow silent API additions after api/go1.n.txt is created 2021-05-03 19:14:16 +00:00
asm cmd/internal/obj/arm64: disable AL and NV for some condition operation instructions 2021-05-14 07:53:46 +00:00
buildid
cgo cmd/link, cmd/cgo: support -flto in CFLAGS 2021-06-01 19:59:18 +00:00
compile cmd/compile,go/types: restrict use of unsafe.{Add,Slice} to go1.17 or newer 2021-06-04 01:31:23 +00:00
cover cmd/cover: use golang.org/x/tools/cover directly 2021-03-25 20:57:58 +00:00
dist cmd/link, cmd/cgo: support -flto in CFLAGS 2021-06-01 19:59:18 +00:00
doc cmd/doc: properly display interface methods 2021-03-19 03:05:26 +00:00
fix
go cmd/link: move issue 43830 tests out of TestScript 2021-06-02 00:36:24 +00:00
gofmt cmd/gofmt: always format non-directory arguments again 2021-04-30 16:17:01 +00:00
internal cmd/compile: ensure equal functions don't do unaligned loads 2021-05-24 19:06:05 +00:00
link cmd/link: use correct alignment in PE DWARF sections 2021-06-03 19:38:56 +00:00
nm cmd/dist,runtime: support cgo on openbsd/mips64 2021-04-28 12:51:42 +00:00
objdump cmd/internal/objfile: emit better error for Go object of a different version 2021-04-30 16:53:35 +00:00
pack cmd/pack: use testing.T.TempDir in tests 2021-04-07 13:24:10 +00:00
pprof cmd/vendor: upgrade pprof to latest 2021-05-08 14:59:49 +00:00
test2json
trace runtime: move next_gc and last_next_gc into gcControllerState 2021-04-14 14:03:30 +00:00
vendor cmd: go get golang.org/x/tools/analysis@49064d23 && go mod vendor 2021-05-20 20:37:02 +00:00
vet cmd/vet: bring in sigchanyzer to report unbuffered channels to signal.Notify 2021-03-08 23:13:52 +00:00
README.vendor
go.mod cmd: go get golang.org/x/tools/analysis@49064d23 && go mod vendor 2021-05-20 20:37:02 +00:00
go.sum cmd/go: add a -compat flag to 'go mod tidy' 2021-05-25 13:18:26 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.