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 all: replace fmt.Sprintf("%d") with strconv.Itoa 2023-03-31 18:41:24 +00:00
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 all: add wasip1 definitions 2023-03-30 18:50:57 +00:00
goroot internal/testenv: avoid rebuilding all of std in WriteImportcfg 2023-02-02 19:27:33 +00:00
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 all: re-run stringer 2023-04-11 20:24:07 +00:00
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 internal/profile: use internal/lazyregexp for the legacy parser 2023-01-20 09:27:47 +00:00
race
reflectlite internal/reflectlite: common up types, remove code 2023-05-11 13:45:58 +00:00
safefilepath
saferio
singleflight internal/singleflight: move Done call in TestForgetUnshared 2023-03-29 22:21:50 +00:00
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 internal/testpty: fix error handling 2023-01-25 18:38:54 +00:00
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 internal/zstd: new internal package for zstd decompression 2023-04-18 20:34:13 +00:00