diff options
author | Rob Findley <rfindley@google.com> | 2021-02-08 21:22:01 -0500 |
---|---|---|
committer | Rob Findley <rfindley@google.com> | 2021-02-08 22:19:27 -0500 |
commit | ca18c4205442dc49eb35272b9f4b7f0cd8f2c079 (patch) | |
tree | b8a8f9a1074d4032242ae2decd2d0edcb37d9f2b /src/cmd/dist | |
parent | a360eeb52831c0dfeb38b49eec6881c06176f181 (diff) | |
parent | 618e3c15bdb5c031ac037e7ad5c1b3791a913226 (diff) | |
download | go-git-ca18c4205442dc49eb35272b9f4b7f0cd8f2c079.tar.gz |
[dev.typeparams] merge dev.regabi (618e3c1) into dev.typeparams
This involved a couple non-trivial fixes in go/types:
- move the check for main function signature to resolver.go, to be
consistent with init. Also, update uses of _InvalidInitSig to
_InvalidInitDecl, consistent with what we decided for dev.regabi.
- Update some tests in api_test.go which newly fail after CL 289715
(fixing reporting of untyped nil) In all cases but one, these updates
were consistent with types2. However, in one case types2 seems to be
able to resolve more type information than go/types for a broken
package. I left a TODO to investigate this further.
Change-Id: I8244b7c81654194edd5af8de689a13c262117dff
Diffstat (limited to 'src/cmd/dist')
-rw-r--r-- | src/cmd/dist/build.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go index c8c3212d16..332f2fab58 100644 --- a/src/cmd/dist/build.go +++ b/src/cmd/dist/build.go @@ -1765,6 +1765,8 @@ func IsRuntimePackagePath(pkgpath string) bool { rval = true case "syscall": rval = true + case "crypto/x509/internal/macos": // libc function wrappers need to be ABIInternal + rval = true default: rval = strings.HasPrefix(pkgpath, "runtime/internal") } |