Commit 449b6ab has reworded, in Go 1.14, the "declared and not used" error message as "declared but not used". I propose to do the same for the "imported and not used" error message.
If an imported package is not used, instead of
imported and not used: "fmt"
the error message would be
imported but not used: "fmt"
The text was updated successfully, but these errors were encountered:
This is not an API change and does not need to be a proposal. Taking it out of the proposal process.
ianlancetaylor
changed the title
proposal: cmd/compile, go/types, types2: rename 'imported and not used' error to 'imported but not used'
cmd/compile, go/types, types2: rename 'imported and not used' error to 'imported but not used'
Jul 14, 2021
Change https://golang.org/cl/334989 mentions this issue: cmd/compile, go/types, types2: rename 'imported and not used' error to 'imported but not used'
Commit 449b6ab has reworded, in Go 1.14, the "declared and not used" error message as "declared but not used". I propose to do the same for the "imported and not used" error message.
If an imported package is not used, instead of
the error message would be
The text was updated successfully, but these errors were encountered: