]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: remove confusing debugging output in inference error message
authorRobert Griesemer <gri@golang.org>
Mon, 1 Nov 2021 22:00:16 +0000 (15:00 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 1 Nov 2021 22:55:50 +0000 (22:55 +0000)
commit02e5913406b2ac354695471690b79d8d4242ad8d
tree860e6c4948f5573bb813763508eeb817d003993c
parent5f1bcd1bc29615b4366f6da8df958bd048ef89a8
go/types, types2: remove confusing debugging output in inference error message

When type inference cannot infer type arguments it prints the list of
inferred type arguments (often empty) at the end of the error message.
This was meant as debugging support only. Removed for now.

Eventually we should provide a better error message.

Fixes #49272.

Change-Id: I68d43a6ace91081009cab0f2fbad7bfbddf5e76b
Reviewed-on: https://go-review.googlesource.com/c/go/+/360554
Trust: Robert Griesemer <gri@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/types2/infer.go
src/go/types/infer.go