]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: improved ifaceIndir comment
authorIan Lance Taylor <iant@golang.org>
Thu, 9 May 2024 23:08:49 +0000 (16:08 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 9 May 2024 23:28:18 +0000 (23:28 +0000)
Change-Id: Ic88ef6b60b5a772865603971411fd5d37ef45006
Reviewed-on: https://go-review.googlesource.com/c/go/+/584656
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/reflect/type.go

index 47f7e45d7c8dc2e981f7109a76daf4602c8809a2..6ad2ace266759f730b209ad9d27b7805892a3f49 100644 (file)
@@ -3033,14 +3033,8 @@ func TypeFor[T any]() Type {
 }
 
 // ifaceIndir reports whether t is stored indirectly in an interface value.
-// This function is no longer called by the reflect package.
-// Unfortunately, it is accessed using go:linkname by the popular
-// github.com/goccy/go-json package.
-// A bug has been filed to fix this upstream:
-// https://github.com/goccy/go-json/issues/506
-// Until that bug is fixed and the fix is distributed,
-// keep this function available.
-// With luck we can remove this in the 1.24 release.
+// This function is no longer called by the reflect package,
+// and https://go.dev/issue/67279 tracks its deletion.
 func ifaceIndir(t *abi.Type) bool {
        return t.Kind_&abi.KindDirectIface == 0
 }