]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: change inference error message
authorTim King <taking@google.com>
Mon, 5 Aug 2024 19:57:33 +0000 (12:57 -0700)
committerTim King <taking@google.com>
Tue, 13 Aug 2024 17:25:36 +0000 (17:25 +0000)
commit0253c0f4acdf9f7a2930609f55d24b334fa7d3c2
tree479402eaca62c5b8c8528217e767777cdcb9fa4f
parent206df8e7ad8a736b0dcbf5d98ab237b6784e5007
cmd/compile/internal/types2: change inference error message

Changes the type inference error message so that the position is
proceeded by a space. cmd/go rewrites the output of gc to replace
absolute paths at the beginning of lines and those proceeded by a
space or a tab to relative paths.

Updates testdir to do the same post processing on the output
of tests as cmd/go.

Fixes #68292

Change-Id: Ie109b51143e68f6e7ab4cd19064110db0e609a7e
Reviewed-on: https://go-review.googlesource.com/c/go/+/603097
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/types2/infer.go
src/cmd/internal/testdir/testdir_test.go
src/go/types/infer.go
test/fixedbugs/issue68292.go [new file with mode: 0644]