]> Cypherpunks repositories - gostls13.git/commit
reflect: change rtype so that it (not *rtype) implements Type
authorDavid Chase <drchase@google.com>
Fri, 21 Apr 2023 17:40:58 +0000 (13:40 -0400)
committerDavid Chase <drchase@google.com>
Thu, 11 May 2023 01:43:28 +0000 (01:43 +0000)
commit1d92e0e3fa6bb79d0679f3dbb47877f4a693deb9
tree3f9d4dc59173cc1920e8c881427c9ab625044f5b
parent6cf7602b716ef94f8edc0b21cf2f73d2aa82281c
reflect: change rtype so that it (not *rtype) implements Type

The abi.Type field was changed to *abi.Type, thus the
bitwise representation is the same, many casts are now
avoided and replace by either rtype{afoo} or rfoo.Type.

Change-Id: Ie7643edc714a0e56027c2875498a4dfe989cf7dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/487558
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/reflect/all_test.go
src/reflect/benchmark_test.go
src/reflect/export_test.go
src/reflect/makefunc.go
src/reflect/type.go
src/reflect/value.go