From: Ian Lance Taylor Date: Thu, 9 May 2024 23:08:49 +0000 (-0700) Subject: reflect: improved ifaceIndir comment X-Git-Tag: go1.23rc1~400 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2315412535290d7513484e3ab0caf2bfddab8f74;p=gostls13.git reflect: improved ifaceIndir comment Change-Id: Ic88ef6b60b5a772865603971411fd5d37ef45006 Reviewed-on: https://go-review.googlesource.com/c/go/+/584656 Auto-Submit: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov --- diff --git a/src/reflect/type.go b/src/reflect/type.go index 47f7e45d7c..6ad2ace266 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -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 }