summaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue5957.dir
Commit message (Collapse)AuthorAgeFilesLines
* go/types, types2: use "and not used" instead of "but not used" in error messagesRobert Griesemer2022-09-271-5/+5
| | | | | | | | | | | | | | | | | | | | | This matches longstanding compiler behavior. Also, for unused packages, report: `"pkg" imported and not used` `"pkg" imported as X and not used` This matches the other `X declared and not used` errors. For #55326. Change-Id: Ie71cf662fb5f4648449c64fc51bede298a1bdcbf Reviewed-on: https://go-review.googlesource.com/c/go/+/432557 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Run-TryBot: Robert Griesemer <gri@google.com>
* test: compile source files as if from "test" moduleMatthew Dempsky2022-03-241-3/+3
| | | | | | | | | | | | | | | | | | This CL updates test/run.go to compile xxx.dir/x.go with a package path of "test/x" instead of just "x". This prevents collisions with standard library packages. It also requires updating a handful of tests to account for the updated package paths. Fixes #25693. Change-Id: I49208c56ab3cb229ed667d547cd6e004d2175fcf Reviewed-on: https://go-review.googlesource.com/c/go/+/395258 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
* test: adjust gccgo expected import errorsIan Lance Taylor2015-10-071-1/+1
| | | | | | | | | Update two tests for the recently submitted gccgo change https://golang.org/cl/14259. Change-Id: Ib18bc87ea512074aa91fd4096d0874b72e2243e5 Reviewed-on: https://go-review.googlesource.com/15493 Reviewed-by: Chris Manghane <cmang@golang.org>
* test: match gccgo import error messagesIan Lance Taylor2013-12-121-5/+5
| | | | | | | | | | Gccgo doesn't have the same equivalent of file name and package as the gc compiler, so the error messages are necessarily different. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/40510048
* cmd/gc: show package name in 'imported and not used' errorRuss Cox2013-09-093-0/+17
Fixes #5957. R=ken2 CC=golang-dev https://golang.org/cl/13250046