go/src/internal
Robert Griesemer e22af33b48 go/types, types2: more concise error messages for cycle errors
If a cycle has length 1, don't enumerate the single cycle entry;
instead just mention "refers to itself". For instance, for an
invalid recursive type T we now report:

	invalid recursive type: T refers to itself

instead of:

	invalid recursive type T
		T refers to
		T

Adjust tests to check for the different error messages.

Change-Id: I5bd46f62fac0cf167f0d0c9a55f952981d294ff4
Reviewed-on: https://go-review.googlesource.com/c/go/+/436295
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Robert Griesemer <gri@google.com>
2022-09-29 14:21:33 +00:00
..
abi internal/abi: define riscv64 register ABI constants 2022-03-26 01:27:54 +00:00
buildcfg cmd/internal/objabi: record GO$GOARCH setting in object header 2022-09-16 12:40:45 +00:00
bytealg internal/bytealg: correct alignment checks for compare/memequal on riscv64 2022-09-19 18:59:50 +00:00
cfg cmd/go: set go.work path using GOWORK, and remove -workfile flag 2022-02-16 15:58:47 +00:00
coverage all: fix some typos 2022-09-28 15:13:20 +00:00
cpu internal/cpu: deduplicate arm64 ISAR parsing code 2022-09-26 16:42:53 +00:00
dag runtime: generate the lock ranking from a DAG description 2022-08-04 15:31:44 +00:00
diff all: gofmt main repo 2022-05-19 15:49:05 +00:00
fmtsort all: remove unnecessary allocations from w.WriteString(fmt.Sprint*(...)) by fmt.Fprint*(w, ...) 2022-09-14 16:11:21 +00:00
fuzz internal: use bytes.Clone 2022-09-28 03:44:27 +00:00
goarch internal/goarch, internal/goos: update generators for syslist.go 2022-06-15 21:31:23 +00:00
godebug net/netip: add new IP address package 2021-11-02 01:28:01 +00:00
goexperiment cmd: add a new goexperiment for redesigned code coverage 2022-09-26 20:50:18 +00:00
goos internal/goarch, internal/goos: update generators for syslist.go 2022-06-15 21:31:23 +00:00
goroot internal/goroot: using strings.CutPrefix replace strings.HasPrefix and strings.TrimPrefix 2022-09-27 15:53:49 +00:00
goversion internal/goversion: update Version to 1.20 2022-08-02 18:07:14 +00:00
intern all: separate doc comment from //go: directives 2022-04-05 17:54:15 +00:00
itoa
lazyregexp
lazytemplate all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
nettrace all: gofmt main repo 2022-04-11 16:34:30 +00:00
obscuretestdata
oserror
pkgbits cmd/compile: make a type-specialized copy of encoding/binary.ReadUvarint 2022-09-27 20:58:46 +00:00
poll internal/poll, syscall: convert writev to direct libc call on openbsd (except mips64) 2022-09-09 16:24:04 +00:00
profile runtime/pprof: remove round-to-file-start adjustment 2022-08-23 23:11:53 +00:00
race
reflectlite cmd/compile,runtime,reflect: move embedded bit from offset to name 2022-06-14 23:22:11 +00:00
saferio internal/saferio: handle potential total size overflow in SliceCap 2022-09-26 20:36:02 +00:00
singleflight internal: convert calls to atomic type 2022-09-07 20:54:43 +00:00
syscall internal/syscall/unix: reuse existing {Fstat,Open,Unlink}at on freebsd 2022-09-19 15:51:18 +00:00
sysinfo
testenv internal/testenv: add a test for the GoTool function 2022-08-17 16:08:04 +00:00
testlog
trace runtime/trace: add missing events for the locked g in extra M. 2022-09-27 16:37:51 +00:00
txtar all: replace package ioutil with os and io in src 2022-09-20 02:13:02 +00:00
types/testdata go/types, types2: more concise error messages for cycle errors 2022-09-29 14:21:33 +00:00
unsafeheader all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
xcoff internal/xcoff: better handling of malformed symbol tables 2022-08-22 15:41:53 +00:00