]> Cypherpunks.ru repositories - gostls13.git/commit
reflect: pass the right element type in verifyGCBitsSlice
authorMichael Anthony Knyszek <mknyszek@google.com>
Sat, 28 Oct 2023 16:30:57 +0000 (16:30 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 2 Nov 2023 17:24:08 +0000 (17:24 +0000)
commit04575ce53f9af22403371b1b67d1e8bda990a4cd
tree1fc6c8960c5441051aa6e324c022f24a99466dd5
parent607e020150f1bba84beec11aceadbc42abf33986
reflect: pass the right element type in verifyGCBitsSlice

Currently verifyGCBitsSlice creates a new array type to represent the
slice backing store, but passes the element type as the slice type in
this construction. This is incorrect, but the tests currently don't care
about it. They will in a follow-up CL, so fix it now.

Change-Id: I6ed8a9808ae78c624be316db1566376fa0e12758
Reviewed-on: https://go-review.googlesource.com/c/go/+/537981
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/reflect/all_test.go