compiler: reword "declared and not used" error message
authorIan Lance Taylor <iant@golang.org>
Fri, 27 Nov 2020 04:13:16 +0000 (20:13 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2020 16:30:43 +0000 (08:30 -0800)
commit5bd5d85117ce968e68d41a746f917a63ed8e6ae6
tree12e674d271cf7dfb97db1f8a1cc629ecfb58d048
parented281e4a944a8b62e66d160b0910bd2be9ef9330
compiler: reword "declared and not used" error message

This is a gofrontend copy of https://golang.org/cl/203282.

From the CL 203282 description:

    "declared and not used" is technically correct, but might confuse
    the user. Switching "and" to "but" will hopefully create the
    contrast for the users: they did one thing (declaration), but
    not the other --- actually using the variable.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273629
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/parse.cc
gcc/testsuite/go.test/test/fixedbugs/bug373.go
gcc/testsuite/go.test/test/typeswitch2.go