Skip to content

Commit 2315412

Browse files
ianlancetaylorgopherbot
authored andcommitted
reflect: improved ifaceIndir comment
Change-Id: Ic88ef6b60b5a772865603971411fd5d37ef45006 Reviewed-on: https://go-review.googlesource.com/c/go/+/584656 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 671696a commit 2315412

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/reflect/type.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3033,14 +3033,8 @@ func TypeFor[T any]() Type {
30333033
}
30343034

30353035
// ifaceIndir reports whether t is stored indirectly in an interface value.
3036-
// This function is no longer called by the reflect package.
3037-
// Unfortunately, it is accessed using go:linkname by the popular
3038-
// github.com/goccy/go-json package.
3039-
// A bug has been filed to fix this upstream:
3040-
// https://github.com/goccy/go-json/issues/506
3041-
// Until that bug is fixed and the fix is distributed,
3042-
// keep this function available.
3043-
// With luck we can remove this in the 1.24 release.
3036+
// This function is no longer called by the reflect package,
3037+
// and https://go.dev/issue/67279 tracks its deletion.
30443038
func ifaceIndir(t *abi.Type) bool {
30453039
return t.Kind_&abi.KindDirectIface == 0
30463040
}

0 commit comments

Comments
 (0)