go/src/internal
Robert Griesemer 9070f27039 go/types, types2: disable interface inference for versions before Go 1.21
Change the internal constant enableInterfaceInference to a unifier
field that can be controlled dynamically and set it for Go 1.21
or later.

This restores Go 1.20 unification behavior for interfaces.

Fixes #61903.

Change-Id: Iefd6c0899811f8208a8be9cef2650a07787ae177
Reviewed-on: https://go-review.googlesource.com/c/go/+/519855
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
2023-08-17 23:33:10 +00:00
..
abi all: update build tags to require/assume Go 1.20 2023-07-20 21:52:09 +00:00
bisect internal/bisect: fix PrintMarker and examples 2023-08-09 14:36:30 +00:00
buildcfg
bytealg internal/bytealg: optimize Count/CountString for PPC64/Power10 2023-08-14 20:30:44 +00:00
cfg cmd/go: abstract build cache, support implementations via child process 2023-05-25 00:49:37 +00:00
coverage internal/coverage: separate out cmd defs to separate package 2023-08-14 12:51:16 +00:00
cpu cmd/asm: add KDSA instruction support 2023-08-11 20:48:28 +00:00
dag
diff all: fix typos and remove repeated words 2023-07-12 23:26:34 +00:00
fmtsort
fuzz internal/fuzz: use the built-in min function 2023-08-14 21:10:03 +00:00
goarch
godebug all: fix function names in comments 2023-06-09 04:07:29 +00:00
godebugs net/http: disallow empty Content-Length header 2023-08-11 22:04:35 +00:00
goexperiment internal/goexperiment: add "NewInliner" experiment 2023-08-02 19:47:40 +00:00
goos
goroot
goversion internal/goversion: update Version to 1.22 2023-07-18 16:35:45 +00:00
intern all: use built-in clear to clear maps 2023-07-27 22:07:13 +00:00
itoa internal/itoa, os: move os.uitox to itoa.Uitox 2023-08-11 02:53:50 +00:00
lazyregexp
lazytemplate
nettrace
obscuretestdata
oserror
pkgbits
platform cmd/go: default to PIE linking on darwin/amd64 2023-08-04 15:41:19 +00:00
poll internal/poll: update SOCK_CLOEXEC comment 2023-06-07 18:41:39 +00:00
profile
race
reflectlite
safefilepath
saferio
singleflight
syscall os: support file systems without file IDs when reading directories on windows 2023-08-16 15:15:27 +00:00
sysinfo internal/sysinfo: print cpu type from cpuinfo when internal cpu name is empty on Linux 2023-08-17 21:40:36 +00:00
testenv internal/testenv: replace “go run.” with “go run”. in comments 2023-08-05 03:02:32 +00:00
testlog
testpty
trace runtime: emit STW events for all pauses, not just those for the GC 2023-05-19 17:06:45 +00:00
txtar
types go/types, types2: disable interface inference for versions before Go 1.21 2023-08-17 23:33:10 +00:00
unsafeheader
xcoff internal/xcoff: remove blank lines after final return statements 2023-06-14 00:42:18 +00:00
zstd