diff options
| author | Keith Randall <khr@golang.org> | 2025-06-14 17:06:20 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2025-07-29 14:03:07 -0700 |
| commit | f7d167fe710501f687fad006125f4ec60be42c35 (patch) | |
| tree | ed14eba23207066ceb629427f65220671d80fb98 /src/runtime/error.go | |
| parent | e0b07dc22eaab1b003d98ad6d63cdfacc76c5c70 (diff) | |
| download | go-f7d167fe710501f687fad006125f4ec60be42c35.tar.xz | |
internal/abi: move direct/indirect flag from Kind to TFlag
This info makes more sense in the flags instead of as a high
bit of the kind. This makes kind access simpler because we now
don't need to mask anything.
Cleaned up most direct field accesses to use methods instead.
(reflect making new types is the only remaining direct accessor.)
IfaceIndir -> !IsDirectIface everywhere.
gocore has been updated to handle the new location. So has delve.
TODO: any other tools need updating?
Change-Id: I123f97a4d4bdd0bff1641ee7e276d1cc0bd7e8eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/681936
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/error.go')
| -rw-r--r-- | src/runtime/error.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/error.go b/src/runtime/error.go index a2611bdfd9..f95b14d780 100644 --- a/src/runtime/error.go +++ b/src/runtime/error.go @@ -260,7 +260,7 @@ func printanycustomtype(i any) { eface := efaceOf(&i) typestring := toRType(eface._type).string() - switch eface._type.Kind_ { + switch eface._type.Kind() { case abi.String: print(typestring, `("`) printindented(*(*string)(eface.data)) |
