]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: use slices.ContainsFunc
authorTobias Klauser <tklauser@distanz.ch>
Wed, 11 Sep 2024 13:40:43 +0000 (15:40 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 11 Sep 2024 14:12:40 +0000 (14:12 +0000)
commit9deda35ff81acb1dcb6fc66d69fa6da6ca4f5d87
treeebc4f68f34b77586dd5ab44fd713c0f6dc4b2ff9
parentad6ee21bbf3ef5bec6f29046a9eab096f3202d5c
cmd/cgo: use slices.ContainsFunc

Now that Go 1.22.6 is the minimum bootstrap toolchain (cf. CL 606156),
the slices package (introduced in Go 1.21) can be used in packages built
using the bootstrap toolchain.

For #64751

Change-Id: Ib36f39016f57c5e110f78a85ca9c806d91356024
Reviewed-on: https://go-review.googlesource.com/c/go/+/612316
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/cgo/gcc.go