]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: more readable inference trace
authorRobert Griesemer <gri@golang.org>
Thu, 22 Jun 2023 23:07:29 +0000 (16:07 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 26 Jun 2023 15:43:55 +0000 (15:43 +0000)
commitee361ce66ca5c8923e636348aba559a5e5c76c15
tree2683862af6fbd20ed4a6472f61c1f78223567a69
parent9f6e87ff749ea66b8ed28724f63bf04d1d4971f7
go/types, types2: more readable inference trace

Print the unification mode in human-readable form.
Use a tab and // instead of ()'s to show unification mode
and whether operands where swapped.

These changes only affect inference trace output, which is
disabled by default. For easier debugging.

For #60933.

Change-Id: I95299c6e09b90670fc45addc4f9196b6cdd3b59f
Reviewed-on: https://go-review.googlesource.com/c/go/+/505395
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go