]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: update vendored dependencies
authorDmitri Shuralyov <dmitshur@golang.org>
Tue, 17 Oct 2023 19:39:54 +0000 (15:39 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 19 Oct 2023 23:33:33 +0000 (23:33 +0000)
One of the remaining uses of the old +build syntax was in the bundled
copy of golang.org/x/net/http2 in net/http. Pull in a newer version of
bundle with CL 536075 that drops said +build syntax line. Also pull in
newer x/sys and other golang.org/x modules where old +build lines were
recently dropped.

Generated with:

go install golang.org/x/build/cmd/updatestd@latest
go install golang.org/x/tools/cmd/bundle@latest
updatestd -goroot=$(pwd) -branch=master

For #36905.
For #41184.
For #60268.

Change-Id: Ia18d1ce9eadce85b38176058ad1fe38562b004e9
Cq-Include-Trybots: luci.golang.try:gotip-linux-386-longtest,gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/536575
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
444 files changed:
src/cmd/go.mod
src/cmd/go.sum
src/cmd/vendor/golang.org/x/arch/arm/armasm/plan9x.go
src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/inst.go
src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/gnu.go
src/cmd/vendor/golang.org/x/arch/x86/x86asm/gnu.go
src/cmd/vendor/golang.org/x/arch/x86/x86asm/inst.go
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
src/cmd/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go
src/cmd/vendor/golang.org/x/sys/plan9/pwd_plan9.go
src/cmd/vendor/golang.org/x/sys/plan9/race.go
src/cmd/vendor/golang.org/x/sys/plan9/race0.go
src/cmd/vendor/golang.org/x/sys/plan9/str.go
src/cmd/vendor/golang.org/x/sys/plan9/syscall.go
src/cmd/vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go
src/cmd/vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go
src/cmd/vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go
src/cmd/vendor/golang.org/x/sys/unix/aliases.go
src/cmd/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_bsd_386.s
src/cmd/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_bsd_arm.s
src/cmd/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_386.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_amd64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_arm.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_arm64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_loong64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_s390x.s
src/cmd/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s
src/cmd/vendor/golang.org/x/sys/unix/asm_zos_s390x.s
src/cmd/vendor/golang.org/x/sys/unix/cap_freebsd.go
src/cmd/vendor/golang.org/x/sys/unix/constants.go
src/cmd/vendor/golang.org/x/sys/unix/dev_aix_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/dev_zos.go
src/cmd/vendor/golang.org/x/sys/unix/dirent.go
src/cmd/vendor/golang.org/x/sys/unix/endian_big.go
src/cmd/vendor/golang.org/x/sys/unix/endian_little.go
src/cmd/vendor/golang.org/x/sys/unix/env_unix.go
src/cmd/vendor/golang.org/x/sys/unix/epoll_zos.go
src/cmd/vendor/golang.org/x/sys/unix/fcntl.go
src/cmd/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go
src/cmd/vendor/golang.org/x/sys/unix/fdset.go
src/cmd/vendor/golang.org/x/sys/unix/fstatfs_zos.go
src/cmd/vendor/golang.org/x/sys/unix/gccgo.go
src/cmd/vendor/golang.org/x/sys/unix/gccgo_c.c
src/cmd/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ifreq_linux.go
src/cmd/vendor/golang.org/x/sys/unix/ioctl_signed.go
src/cmd/vendor/golang.org/x/sys/unix/ioctl_unsigned.go
src/cmd/vendor/golang.org/x/sys/unix/ioctl_zos.go
src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh
src/cmd/vendor/golang.org/x/sys/unix/mmap_nomremap.go
src/cmd/vendor/golang.org/x/sys/unix/mremap.go
src/cmd/vendor/golang.org/x/sys/unix/pagesize_unix.go
src/cmd/vendor/golang.org/x/sys/unix/ptrace_darwin.go
src/cmd/vendor/golang.org/x/sys/unix/ptrace_ios.go
src/cmd/vendor/golang.org/x/sys/unix/race.go
src/cmd/vendor/golang.org/x/sys/unix/race0.go
src/cmd/vendor/golang.org/x/sys/unix/readdirent_getdents.go
src/cmd/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go
src/cmd/vendor/golang.org/x/sys/unix/syscall.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_hurd.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_hurd_386.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_illumos.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_386.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gc.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_unix_gc.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/sysvshm_linux.go
src/cmd/vendor/golang.org/x/sys/unix/sysvshm_unix.go
src/cmd/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go
src/cmd/vendor/golang.org/x/sys/unix/timestruct.go
src/cmd/vendor/golang.org/x/sys/unix/xattr_bsd.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
src/cmd/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go
src/cmd/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go
src/cmd/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
src/cmd/vendor/golang.org/x/sys/windows/aliases.go
src/cmd/vendor/golang.org/x/sys/windows/empty.s
src/cmd/vendor/golang.org/x/sys/windows/eventlog.go
src/cmd/vendor/golang.org/x/sys/windows/mksyscall.go
src/cmd/vendor/golang.org/x/sys/windows/race.go
src/cmd/vendor/golang.org/x/sys/windows/race0.go
src/cmd/vendor/golang.org/x/sys/windows/service.go
src/cmd/vendor/golang.org/x/sys/windows/str.go
src/cmd/vendor/golang.org/x/sys/windows/syscall.go
src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go
src/cmd/vendor/golang.org/x/sys/windows/types_windows.go
src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go
src/cmd/vendor/golang.org/x/term/term_unix.go
src/cmd/vendor/golang.org/x/term/term_unix_bsd.go
src/cmd/vendor/golang.org/x/term/term_unix_other.go
src/cmd/vendor/golang.org/x/term/term_unsupported.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/appends/appends.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/atomic.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/bools/bools.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/defers/defers.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/directive/directive.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/errorsas/errorsas.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/timeformat/timeformat.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go
src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go
src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go [deleted file]
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go [deleted file]
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/objectpath.go [deleted file]
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/types.go [deleted file]
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/types_118.go [deleted file]
src/cmd/vendor/modules.txt
src/go.mod
src/go.sum
src/net/http/h2_bundle.go
src/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go
src/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s
src/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go
src/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go
src/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s
src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go
src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s
src/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_amd64.go
src/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_amd64.s
src/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_noasm.go
src/vendor/golang.org/x/crypto/internal/alias/alias.go
src/vendor/golang.org/x/crypto/internal/alias/alias_purego.go
src/vendor/golang.org/x/crypto/internal/poly1305/bits_compat.go
src/vendor/golang.org/x/crypto/internal/poly1305/bits_go1.13.go
src/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go
src/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go
src/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s
src/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go
src/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s
src/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go
src/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s
src/vendor/golang.org/x/net/dns/dnsmessage/message.go
src/vendor/golang.org/x/net/idna/go118.go
src/vendor/golang.org/x/net/idna/idna10.0.0.go
src/vendor/golang.org/x/net/idna/idna9.0.0.go
src/vendor/golang.org/x/net/idna/pre_go118.go
src/vendor/golang.org/x/net/idna/tables10.0.0.go
src/vendor/golang.org/x/net/idna/tables11.0.0.go
src/vendor/golang.org/x/net/idna/tables12.0.0.go
src/vendor/golang.org/x/net/idna/tables13.0.0.go
src/vendor/golang.org/x/net/idna/tables15.0.0.go
src/vendor/golang.org/x/net/idna/tables9.0.0.go
src/vendor/golang.org/x/net/idna/trie12.0.0.go
src/vendor/golang.org/x/net/idna/trie13.0.0.go
src/vendor/golang.org/x/net/lif/address.go
src/vendor/golang.org/x/net/lif/binary.go
src/vendor/golang.org/x/net/lif/lif.go
src/vendor/golang.org/x/net/lif/link.go
src/vendor/golang.org/x/net/lif/sys.go
src/vendor/golang.org/x/net/lif/syscall.go
src/vendor/golang.org/x/net/nettest/nettest_stub.go
src/vendor/golang.org/x/net/nettest/nettest_unix.go
src/vendor/golang.org/x/net/route/address.go
src/vendor/golang.org/x/net/route/binary.go
src/vendor/golang.org/x/net/route/empty.s
src/vendor/golang.org/x/net/route/interface.go
src/vendor/golang.org/x/net/route/interface_announce.go
src/vendor/golang.org/x/net/route/interface_classic.go
src/vendor/golang.org/x/net/route/interface_multicast.go
src/vendor/golang.org/x/net/route/message.go
src/vendor/golang.org/x/net/route/route.go
src/vendor/golang.org/x/net/route/route_classic.go
src/vendor/golang.org/x/net/route/sys.go
src/vendor/golang.org/x/net/route/syscall.go
src/vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s
src/vendor/golang.org/x/sys/cpu/cpu_aix.go
src/vendor/golang.org/x/sys/cpu/cpu_arm64.s
src/vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go
src/vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go
src/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go
src/vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go
src/vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go
src/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c
src/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go
src/vendor/golang.org/x/sys/cpu/cpu_linux.go
src/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go
src/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go
src/vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go
src/vendor/golang.org/x/sys/cpu/cpu_loong64.go
src/vendor/golang.org/x/sys/cpu/cpu_mips64x.go
src/vendor/golang.org/x/sys/cpu/cpu_mipsx.go
src/vendor/golang.org/x/sys/cpu/cpu_other_arm.go
src/vendor/golang.org/x/sys/cpu/cpu_other_arm64.go
src/vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go
src/vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go
src/vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go
src/vendor/golang.org/x/sys/cpu/cpu_ppc64x.go
src/vendor/golang.org/x/sys/cpu/cpu_riscv64.go
src/vendor/golang.org/x/sys/cpu/cpu_s390x.s
src/vendor/golang.org/x/sys/cpu/cpu_wasm.go
src/vendor/golang.org/x/sys/cpu/cpu_x86.go
src/vendor/golang.org/x/sys/cpu/cpu_x86.s
src/vendor/golang.org/x/sys/cpu/endian_big.go
src/vendor/golang.org/x/sys/cpu/endian_little.go
src/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go
src/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go
src/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go
src/vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go
src/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go
src/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go
src/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go
src/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go
src/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go
src/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go
src/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go
src/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go
src/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go
src/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go
src/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go
src/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go
src/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go
src/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go
src/vendor/modules.txt

index 7e095fdb1486f597c8363438f149e47783191316..b1c26063d3645b3d45d0c72a09e7998cb1d8e8d5 100644 (file)
@@ -4,12 +4,12 @@ go 1.22
 
 require (
        github.com/google/pprof v0.0.0-20230811205829-9131a7e9cc17
-       golang.org/x/arch v0.4.0
-       golang.org/x/mod v0.12.0
-       golang.org/x/sync v0.3.0
-       golang.org/x/sys v0.13.0
-       golang.org/x/term v0.13.0
-       golang.org/x/tools v0.13.1-0.20230920233436-f9b8da7b22be
+       golang.org/x/arch v0.5.1-0.20231011141335-a6bdeed49307
+       golang.org/x/mod v0.13.0
+       golang.org/x/sync v0.4.1-0.20231011140417-10739b037d36
+       golang.org/x/sys v0.13.1-0.20231011215430-1bfbee0e20e3
+       golang.org/x/term v0.13.1-0.20231011140651-6a610bc55bff
+       golang.org/x/tools v0.14.1-0.20231019165902-71f6a46884ab
 )
 
 require github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab // indirect
index 0e280006ac99125961b83e32c483f3469d147f76..afb211c2bc7dd41d192bab95feae4582024215c7 100644 (file)
@@ -2,15 +2,15 @@ github.com/google/pprof v0.0.0-20230811205829-9131a7e9cc17 h1:0h35ESZ02+hN/MFZb7
 github.com/google/pprof v0.0.0-20230811205829-9131a7e9cc17/go.mod h1:Jh3hGz2jkYak8qXPD19ryItVnUgpgeqzdkY/D0EaeuA=
 github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab h1:BA4a7pe6ZTd9F8kXETBoijjFJ/ntaa//1wiH9BZu4zU=
 github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw=
-golang.org/x/arch v0.4.0 h1:A8WCeEWhLwPBKNbFi5Wv5UTCBx5zzubnXDlMOFAzFMc=
-golang.org/x/arch v0.4.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
-golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
-golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
-golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
-golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
-golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek=
-golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
-golang.org/x/tools v0.13.1-0.20230920233436-f9b8da7b22be h1:pQ7OzPwwqEo+kv+G51MKwvanbWTNL8gLxowlKZ4+/4s=
-golang.org/x/tools v0.13.1-0.20230920233436-f9b8da7b22be/go.mod h1:UT0HyK+PbVxjduiWXEYi1mODDynTaoTRHJox7q8FIKk=
+golang.org/x/arch v0.5.1-0.20231011141335-a6bdeed49307 h1:1nIbNxjxQ3+dss3xYMxayoIZONazUTg8/BENwc19sAQ=
+golang.org/x/arch v0.5.1-0.20231011141335-a6bdeed49307/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
+golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY=
+golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
+golang.org/x/sync v0.4.1-0.20231011140417-10739b037d36 h1:+lDu3sHZVY5Qqb7ynMbjaT4IsYicvoxypEOIE4aYlYE=
+golang.org/x/sync v0.4.1-0.20231011140417-10739b037d36/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
+golang.org/x/sys v0.13.1-0.20231011215430-1bfbee0e20e3 h1:G9se7UpoI67yWrFY0IIFGf6H3nwLLUZFDBCyOJwWeSc=
+golang.org/x/sys v0.13.1-0.20231011215430-1bfbee0e20e3/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/term v0.13.1-0.20231011140651-6a610bc55bff h1:4lCCwEX5qbLiqBk8cqIlwrDbmkzfggoqDXYLTU+jr30=
+golang.org/x/term v0.13.1-0.20231011140651-6a610bc55bff/go.mod h1:tfGnZ3a6ww9diaioGSzdPRgIfpk6Odt1UPXNhRcgfag=
+golang.org/x/tools v0.14.1-0.20231019165902-71f6a46884ab h1:wNyFWaRZ6iFNvDL/8TK0HF5x3mGttsqpXPuHeKN88G8=
+golang.org/x/tools v0.14.1-0.20231019165902-71f6a46884ab/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg=
index a143d2efbb374067590c957d72b3542c6806348b..842ab980327b2b7dd919f10112833b1b7d28ed11 100644 (file)
@@ -253,10 +253,13 @@ func plan9Arg(inst *Inst, pc uint64, symname func(uint64) (string, uint64), arg
 // [r2, r0, ror #1] -> (R2)(R0@>1)
 // inst [r2, -r0, ror #1] -> INST.U (R2)(R0@>1)
 // input:
-//   a memory operand
+//
+//     a memory operand
+//
 // return values:
-//   corresponding memory operand in Plan 9 syntax
-//   .W/.P/.U suffix
+//
+//     corresponding memory operand in Plan 9 syntax
+//     .W/.P/.U suffix
 func memOpTrans(mem Mem) (string, string) {
        suffix := ""
        switch mem.Mode {
index 8c633fef60c20e1614f5755c2b347fd03bd4d238..866e399cd14134f2187c51039d1b87531f5ef78d 100644 (file)
@@ -934,8 +934,10 @@ func (r RegisterWithArrangement) String() string {
        return result
 }
 
-// Register with arrangement and index: <Vm>.<Ts>[<index>],
-//   { <Vt>.B, <Vt2>.B }[<index>].
+// Register with arrangement and index:
+//
+//     <Vm>.<Ts>[<index>],
+//     { <Vt>.B, <Vt2>.B }[<index>].
 type RegisterWithArrangementAndIndex struct {
        r     Reg
        a     Arrangement
index b4c9bf8df6dd9eec5e6ae412e543c9acd811603b..367acdd49d4ea2aac17f92ffca6a1b5bacf37964 100644 (file)
@@ -359,7 +359,7 @@ func GNUSyntax(inst Inst, pc uint64) string {
 
 // gnuArg formats arg (which is the argIndex's arg in inst) according to GNU rules.
 // NOTE: because GNUSyntax is the only caller of this func, and it receives a copy
-//       of inst, it's ok to modify inst.Args here.
+// of inst, it's ok to modify inst.Args here.
 func gnuArg(inst *Inst, argIndex int, arg Arg, pc uint64) string {
        // special cases for load/store instructions
        if _, ok := arg.(Offset); ok {
index 75cff72b0390e002ed82159944a0c8360a3cbcba..8eba1fd0cf76b6cbd44ad68745b67dedc9332765 100644 (file)
@@ -10,7 +10,7 @@ import (
 )
 
 // GNUSyntax returns the GNU assembler syntax for the instruction, as defined by GNU binutils.
-// This general form is often called ``AT&T syntax'' as a reference to AT&T System V Unix.
+// This general form is often called “AT&T syntax” as a reference to AT&T System V Unix.
 func GNUSyntax(inst Inst, pc uint64, symname SymLookup) string {
        // Rewrite instruction to mimic GNU peculiarities.
        // Note that inst has been passed by value and contains
index 4632b5064f9e74f5e4ac2a4e1456ada5e3630f5d..e98f1a8418c58317bb0ab76eb6e7b3d6a58ae0c6 100644 (file)
@@ -144,7 +144,7 @@ type Arg interface {
 // the interface value instead of requiring an allocation.
 
 // A Reg is a single register.
-// The zero Reg value has no name but indicates ``no register.''
+// The zero Reg value has no name but indicates “no register.”
 type Reg uint8
 
 const (
index 930b6c59bc966ea4d6684228c162006367629ab8..e0869fa3868b4e10eec517a26162c263f52093d6 100644 (file)
@@ -367,7 +367,7 @@ func (f *File) add(errs *ErrorList, block *LineBlock, line *Line, verb string, a
                                }
                        }
                        if !fixed {
-                               errorf("invalid go version '%s': must match format 1.23", args[0])
+                               errorf("invalid go version '%s': must match format 1.23.0", args[0])
                                return
                        }
                }
@@ -384,7 +384,7 @@ func (f *File) add(errs *ErrorList, block *LineBlock, line *Line, verb string, a
                        errorf("toolchain directive expects exactly one argument")
                        return
                } else if strict && !ToolchainRE.MatchString(args[0]) {
-                       errorf("invalid toolchain version '%s': must match format go1.23 or local", args[0])
+                       errorf("invalid toolchain version '%s': must match format go1.23.0 or local", args[0])
                        return
                }
                f.Toolchain = &Toolchain{Syntax: line}
index c9b69937a0d0f5cdc99cbcef81c464dae49fc55d..73687de748adacd0d1ecf5be33e6783b370c9d0d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build go1.5
-// +build go1.5
 
 package plan9
 
index 98bf56b7322c94934656abc0ef6d5872183fa47a..fb945821847a8499d0ccc167a63f5abc40fe1623 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !go1.5
-// +build !go1.5
 
 package plan9
 
index 62377d2ff96ca750802f638d4c17b2747e59958e..c02d9ed3339c86d94ee3474d7501c2cc33148946 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build plan9 && race
-// +build plan9,race
 
 package plan9
 
index f8da30876dbfdf96000dcbe099039aebc67b19cf..7b15e15f65b975422d34941551e84c1293e15764 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build plan9 && !race
-// +build plan9,!race
 
 package plan9
 
index 55fa8d025ecaac39bae0dc497e05a45db132d8ea..ba3e8ff8a625fc9c59ef128d3cad34646bb1693c 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build plan9
-// +build plan9
 
 package plan9
 
index 67e5b0115c1fb8d40f251dcf7b9f9bde1e4da41d..d631fd664a7206c44265fef9931dd7756e422d06 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build plan9
-// +build plan9
 
 // Package plan9 contains an interface to the low-level operating system
 // primitives. OS details vary depending on the underlying system, and
index 3f40b9bd743e3671c921b334cb1350d00b3f83ad..f780d5c8079016462a7901b877d7e13edac33249 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build plan9 && 386
-// +build plan9,386
 
 package plan9
 
index 0e6a96aa4fa19bf54d887fe5740d362bf6f41e7a..7de61065f6591f9d96f1d7fe5709b2f0254ef25a 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build plan9 && amd64
-// +build plan9,amd64
 
 package plan9
 
index 244c501b77ba7517cf5665c82964f5144f0bbca8..ea85780f03eccde8778ecf8793e6c86831c5467f 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build plan9 && arm
-// +build plan9,arm
 
 package plan9
 
index abc89c104a8e257c9e4e0c0bee65d21a64f234ab..e7d3df4bd360c46379eedd3de6443a26c4558811 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
-// +build go1.9
 
 package unix
 
index db9171c2e4913da5a3e2fa1f18b3a3340b545913..269e173ca46941da5e6b8b737502b86a82d3152e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index e0fcd9b3deec595ed3b327d134de1913aa0242ae..a4fcef0e0d7ad961045841fcacd81422241e62ff 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (freebsd || netbsd || openbsd) && gc
-// +build freebsd netbsd openbsd
-// +build gc
 
 #include "textflag.h"
 
index 2b99c349a2d3b7c0e922f23943ef5b2833c070ba..1e63615c5703d085e87f6da0c7dc6dabd279414e 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc
-// +build darwin dragonfly freebsd netbsd openbsd
-// +build gc
 
 #include "textflag.h"
 
index d702d4adc77d770ceb4f09f22c616a5878c0aa4b..6496c310087d5248fabaf080c136e459a72e1f21 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (freebsd || netbsd || openbsd) && gc
-// +build freebsd netbsd openbsd
-// +build gc
 
 #include "textflag.h"
 
index fe36a7391a6476ef462bf1df00f6fa65cc6b8704..4fd1f54daaabdb3f07b0b95c6fc25dacdaa6d262 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (darwin || freebsd || netbsd || openbsd) && gc
-// +build darwin freebsd netbsd openbsd
-// +build gc
 
 #include "textflag.h"
 
index e5b9a84899ac85338b71fab9091bc22d2870bd93..42f7eb9e4747ccdc7cfe515e930615697d33dd87 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (darwin || freebsd || netbsd || openbsd) && gc
-// +build darwin freebsd netbsd openbsd
-// +build gc
 
 #include "textflag.h"
 
index d560019ea29e1e8c47c7aa01da02688bca0d2534..f8902667e9759e64c0d884e1086c027e8010817c 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (darwin || freebsd || netbsd || openbsd) && gc
-// +build darwin freebsd netbsd openbsd
-// +build gc
 
 #include "textflag.h"
 
index 8fd101d0716ddebfaa1ffcad73ccddd9e804bc9f..3b4734870d97cf1f0d73c7f885fbbbebd9b564cc 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index 7ed38e43c6735b4f1a3a30e31465894e45361606..67e29f3178b039578fb2c60ecd215a89e9f689ed 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index 8ef1d51402ae919d60b0b01f8ba91c4ea7e1ca16..d6ae269ce166b438c1583421f2b82380c959d6bf 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index 98ae02760da1ee63ba1d10e52917ab5d3598741e..01e5e253c68e1bcae0eea45736dbc5589c211494 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && arm64 && gc
-// +build linux
-// +build arm64
-// +build gc
 
 #include "textflag.h"
 
index 565357288a81c1bc8d28c8d970af25160e2e399f..2abf12f6e8713f1863125bf4a5cbc3bf9fddaf86 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && loong64 && gc
-// +build linux
-// +build loong64
-// +build gc
 
 #include "textflag.h"
 
index 21231d2ce13f61be1682d6c8cf8f076e8d7e7f1d..f84bae7120e7b6af288ffec348d0d441922e5721 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (mips64 || mips64le) && gc
-// +build linux
-// +build mips64 mips64le
-// +build gc
 
 #include "textflag.h"
 
index 6783b26c606a5e6dee0043e357ee19dae78cf9d5..f08f628077235f4b551beb5fa620e986eb2674aa 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (mips || mipsle) && gc
-// +build linux
-// +build mips mipsle
-// +build gc
 
 #include "textflag.h"
 
index 19d4989344df7e2447524417b821f90b8793b0d4..bdfc024d2d3b2be51b3ceb2cc2e0023af8f42c5c 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (ppc64 || ppc64le) && gc
-// +build linux
-// +build ppc64 ppc64le
-// +build gc
 
 #include "textflag.h"
 
index e42eb81d583d3c6d4b29dc0daf00eb5cb51ac2dc..2e8c996120384f40db6bb57584699e789af9c089 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build riscv64 && gc
-// +build riscv64
-// +build gc
 
 #include "textflag.h"
 
index c46aab33959403e570d12f96be0d8a716c22da1d..2c394b11ebd6911b5a392a170af6b023681a5029 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && s390x && gc
-// +build linux
-// +build s390x
-// +build gc
 
 #include "textflag.h"
 
index 5e7a1169c05dafca9fa580c92ede8a2a66e328fb..fab586a2c419087a1a0805c1abcabd2bcf4e458a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index f8c5394c1a72080555932c905184666a10dd03db..f949ec5476d2e730c69b1e75f4d9a97bc3632cb8 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index 3b54e1858131ab1de530d88a72b0844a3c30dd37..2f67ba86d5746c850a771a650fa85ef2e8f2264d 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x && gc
-// +build zos
-// +build s390x
-// +build gc
 
 #include "textflag.h"
 
index 0b7c6adb8661787f4f25485fb74dd2edce960549..a08657890f39420a84436db18f33b645e2a1886e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build freebsd
-// +build freebsd
 
 package unix
 
index 394a3965b68d5922ff69755d37d08174f761bd53..6fb7cb77d0a3eb9b8b5d057771724860e51eefa2 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package unix
 
index 65a998508db406e2d660b45a9d1c6d4746754751..d78513461777b9a303b087650928a56dead26eef 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix && ppc
-// +build aix,ppc
 
 // Functions to access/create device major and minor numbers matching the
 // encoding used by AIX.
index 8fc08ad0aae26641284718acde7827950757fedc..623a5e6973a002a4cce1591c2ce555c261c5036b 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix && ppc64
-// +build aix,ppc64
 
 // Functions to access/create device major and minor numbers matching the
 // encoding used AIX.
index a388e59a0e0f393f685af615996f88ea156e092b..bb6a64fe92d262e5a0e730e85f0c40f4356700a9 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 // Functions to access/create device major and minor numbers matching the
 // encoding used by z/OS.
index 2499f977b0702d7755487804d8f8e1054b27b17a..1ebf1178269f29931571853e1ed38147b941de5f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package unix
 
index a52026557681967851e2d1c1c8f6ee041a0f3a3e..1095fd31d685701d8b51354505746537f2fb6649 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 //
 //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64
-// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64
 
 package unix
 
index b0f2bc4ae3b200f818e942dad998c210a2f388b0..b9f0e277b149323bb46c4fb0a3a6ae3b5e0e7622 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 //
 //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh
-// +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh
 
 package unix
 
index 29ccc4d1334c48ac92a47102c30e68d0bc4636fb..a96da71f473673d0e9218f0c6934ce5215c32a57 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 // Unix environment variables.
 
index cedaf7e024b4615f5fc75cab05568d56a2daa43c..7753fddea8174f8269316188817c30abbe7bc253 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 package unix
 
index e9b991258c18da5e166adc8d97d5995d7080edcf..58c6bfc70f6e96173150502557e30a9f800dd347 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build dragonfly || freebsd || linux || netbsd || openbsd
-// +build dragonfly freebsd linux netbsd openbsd
 
 package unix
 
index 29d44808b1d02b122a34bd0d6e39d6a274bb3871..13b4acd5c691a3e11feb6e09d32e1816fb8cd474 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc)
-// +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc
 
 package unix
 
index a8068f94f290c052eb8426a0748cbb293fd13728..9e83d18cd0421525a28e1bdbe1a24890ebb33602 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package unix
 
index e377cc9f49c30e2246439a61bae456b86ff71d2f..c8bde601e772336736ec494940f5fc326c41dd2d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 package unix
 
index b06f52d748f6a32edab691401f0ca634c58c9647..aca5721ddccd0d6ac0ee9e8aea366dbf08c63f6b 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gccgo && !aix && !hurd
-// +build gccgo,!aix,!hurd
 
 package unix
 
index f98a1c542f05c6353b888fd3074e43d0fa04a602..d468b7b47f14d3c634030e6d0b000f6324fc15a4 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gccgo && !aix && !hurd
-// +build gccgo,!aix,!hurd
 
 #include <errno.h>
 #include <stdint.h>
index e60e49a3d9c09b0e29849bf67f04907b6664f84f..972d61bd7549b981ad3228478276fda6a97fb244 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gccgo && linux && amd64
-// +build gccgo,linux,amd64
 
 package unix
 
index 15721a5104e4e6174b3549dd8167fb9c155d6ebe..848840ae4c75866920d139a896f17270c19464aa 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux
-// +build linux
 
 package unix
 
index 7def9580e6f85f6117143edf1b328184e2866b5d..5b0759bd865295550d762f710ac1b1b76bbc884e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || solaris
-// +build aix solaris
 
 package unix
 
index 649913d1ea71a1cfbb000875a3d2614298c18e73..20f470b9d09ef1d2417f5d5ddac5806ac14a4e1a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd
-// +build darwin dragonfly freebsd hurd linux netbsd openbsd
 
 package unix
 
index cdc21bf76dcbbdde72dd3d4a236533035a91a18e..c8b2a750f8cd33ad16f466d51eeebd219886230d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 package unix
 
index 47fa6a7ebd45d65b53d1c2c22f9337dda33cf97d..cbe24150a7a8ab6c1935736886ab9022c7961ca1 100644 (file)
@@ -663,7 +663,6 @@ echo '// mkerrors.sh' "$@"
 echo '// Code generated by the command above; see README.md. DO NOT EDIT.'
 echo
 echo "//go:build ${GOARCH} && ${GOOS}"
-echo "// +build ${GOARCH},${GOOS}"
 echo
 go tool cgo -godefs -- "$@" _const.go >_error.out
 cat _error.out | grep -vf _error.grep | grep -vf _signal.grep
index ca0513632ee33f88d16c9f7fe229dd65c7138512..4b68e59780a2352b61dd88a7cb2b567264b247e9 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris
-// +build aix darwin dragonfly freebsd openbsd solaris
 
 package unix
 
index fa93d0aa9045465a6c6f035e25002d6385fd88e0..fd45fe529da517e2ebd898a823534034936687bb 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux || netbsd
-// +build linux netbsd
 
 package unix
 
index 53f1b4c5b81ef25396fac86d3cc13bb55e34138e..4d0a3430edc5e26ff147fcbfc070a9e250367e4d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
 
 // For Unix, get the pagesize from the runtime.
 
index 463c3eff7fd27170757f9eb8d3d74bcd87f16fea..3f0975f3de76088746ac4379197d38237e324eac 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin && !ios
-// +build darwin,!ios
 
 package unix
 
index ed0509a0117c413d554d211fe2b313f4bbf52626..a4d35db5dc2862918253152cc9ac312b8d311c82 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ios
-// +build ios
 
 package unix
 
index 6f6c5fec5ae386d493e3d3d1f8a5a3d4602a6e7b..714d2aae7c09df2e59c8d23f2c55f5424f061c9a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (darwin && race) || (linux && race) || (freebsd && race)
-// +build darwin,race linux,race freebsd,race
 
 package unix
 
index 706e1322ae4161956adfd84e5a6a2a62ddfe6da6..4a9f6634c980ca95d7eee9481bddb7af4be30c1a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos
-// +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos
 
 package unix
 
index 4d6257569ea8d20be6127cc0acf5a05f3cdcd8ef..dbd2b6ccb1b381a33e78070a237db33ee53f9e5f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd
-// +build aix dragonfly freebsd linux netbsd openbsd
 
 package unix
 
index 2a4ba47c45b4c708f5f65c349f13cd465282f05a..130398b6b767ef2693d80517ec33a1568d625d92 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin
-// +build darwin
 
 package unix
 
index 3865943f6e27dc266bcb06e5dfe6fa1f0af47de4..c3a62dbb1b6c00308aee4cc141bd7d4e1ad5b7cc 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 // Socket control messages
 
index 0840fe4a57491013b633e989733d44961bb38f53..4a1eab37ec08526ceec522cf4bfca531704e1f04 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin freebsd linux netbsd openbsd solaris zos
 
 package unix
 
index 63e8c838317f5887ea031cc3b2b6ac3d9ff7b8e1..5ea74da98204f32ba5fa8191f801e3d26524ef8a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 // Package unix contains an interface to the low-level operating system
 // primitives. OS details vary depending on the underlying system, and
index e94e6cdac88272d0618dc082a8a0b27a02aa5383..6d3009d2149a65310ae571a26c5dc5dcdeb8593e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix
-// +build aix
 
 // Aix system calls.
 // This file is compiled as ordinary Go code,
index f2871fa953512a0a1599ce78e368028e9981d673..1fdaa476005f8785077c5a6cfd0cf7a56c83439c 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix && ppc
-// +build aix,ppc
 
 package unix
 
index 75718ec0f19b5a7f60cb365ba551dfe2ea3e3255..c87f9a9f456845df5bb5b87a674b4bfa6f9dda0a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix && ppc64
-// +build aix,ppc64
 
 package unix
 
index 4217de518bc8a249b14c705bc7a3aaf3cff00441..6f328e3a5541791d337ba83d0e108a25ce59cc5a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 // BSD system call wrappers shared by *BSD based systems
 // including OS X (Darwin) and FreeBSD.  Like the other
index b37310ce9b4050559d83f3b906d50fbca8a8f815..0eaecf5fc32f1c059094a35d4a6a621394126949 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 && darwin
-// +build amd64,darwin
 
 package unix
 
index d51ec996304e7c3d19b2e44c37abd987127ad540..f36c6707cfb12e1e59faf09cd20fa2cbcee60bc0 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm64 && darwin
-// +build arm64,darwin
 
 package unix
 
index 53c96641f8130d6886b440dc595ec9a611480c2b..16dc6993799ffc36e481d50accbf25eb8092f086 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin && go1.12
-// +build darwin,go1.12
 
 package unix
 
index 4e2d32120a894219cddfb2ba9c6ae0fe74740634..14bab6b2de5044d1248216f83776f5293709b689 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 && dragonfly
-// +build amd64,dragonfly
 
 package unix
 
index b8da510043cb78dc2b8baf6d12338d95d047df6c..3967bca772de80716f8a56a0f25d8d7009b0ade7 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build 386 && freebsd
-// +build 386,freebsd
 
 package unix
 
index 47155c48390b5dcedfc30e89a10fbdd773218f2b..eff19ada23594ff3cf148c055a5e013582db279f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 && freebsd
-// +build amd64,freebsd
 
 package unix
 
index 08932093fa245ab54c23b99278c4ae35bdbe330e..4f24b517a673df6c461c1d7981d199dae2449ab2 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm && freebsd
-// +build arm,freebsd
 
 package unix
 
index d151a0d0e53ace461afa7cec63bbb484ee457611..ac30759ece1a2584df451ff54e7c3e15d28801df 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm64 && freebsd
-// +build arm64,freebsd
 
 package unix
 
index d5cd64b378742133b7b19a3378628029dc36ade0..aab725ca77fbdec09486938acb09d2f3e7559a2a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build riscv64 && freebsd
-// +build riscv64,freebsd
 
 package unix
 
index 381fd4673bececd92f2739a50a623a4317cca20a..ba46651f8e38a4aaddbbfc5c3f1de1d006af109e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build hurd
-// +build hurd
 
 package unix
 
index 7cf54a3e4f109213d0fd48385101d31c038838cc..df89f9e6b476a581ee2786274a2ede66e230471d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build 386 && hurd
-// +build 386,hurd
 
 package unix
 
index 87db5a6a8ccc7590eb45e3ab208009e0c96482f7..a863f7052c72a23512e0c39479532126da711d32 100644 (file)
@@ -5,7 +5,6 @@
 // illumos system calls not present on Solaris.
 
 //go:build amd64 && illumos
-// +build amd64,illumos
 
 package unix
 
index fb4e50224c9b0b49fd066a05cda7dc93b2ec8a70..6b8a4ad69c3ff8098d8477c1b2a52c1839424f42 100644 (file)
@@ -2482,3 +2482,5 @@ func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) {
        }
        return attr, nil
 }
+
+//sys  Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error)
index c7d9945ea19afcffefd5a71c2de8dcee468044d9..506dafa7b4c6b1c062b4ae536eaebf1f59093c4d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build 386 && linux
-// +build 386,linux
 
 package unix
 
index 08086ac6a4c411bb917b18846eaa109d53812bf7..38d55641b52b771d01c232fe8f6bc070134e069c 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64)
-// +build linux
-// +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64
 
 package unix
 
index 70601ce3692c059bc62341cf83ab2c15b757f629..d557cf8de3f2362f718e16217df775674af81180 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 && linux
-// +build amd64,linux
 
 package unix
 
index 8b0f0f3aa56845acf7d9218852557e26b428dbac..facdb83b23b70ca86f1400a338d810cb868be3dd 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 && linux && gc
-// +build amd64,linux,gc
 
 package unix
 
index da2986415ae223e18db3ec147ee3a069d822006b..cd2dd797fd6cc003e30fd035dac87ce13a6de6b3 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm && linux
-// +build arm,linux
 
 package unix
 
index f5266689af0eb6d57f9b9188b0dc7a2049e93484..cf2ee6c75ef3d3905f8a6575b00500bc246d483d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm64 && linux
-// +build arm64,linux
 
 package unix
 
index 2b1168d7d19fee998761672740f3fd783536794d..ffc4c2b635d0b92bed1280613fac3427d297e2e4 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && gc
-// +build linux,gc
 
 package unix
 
index 9843fb4896018824ddd8ec91dbf2c1868a4ccb7c..9ebfdcf4478f45434cb51253afdafcb36ace4001 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && gc && 386
-// +build linux,gc,386
 
 package unix
 
index a6008fccd59dd7c48990ee2c48bfe181aa32cc67..5f2b57c4c2773974bd12f208492a9f95d901fa6b 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm && gc && linux
-// +build arm,gc,linux
 
 package unix
 
index 7740af2428be459d555204e07f44afae6a1888b3..d1a3ad826334e8ddf01f2c598e5c1bb4d9325432 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && gccgo && 386
-// +build linux,gccgo,386
 
 package unix
 
index e16a12299aea6b040f0dbc5f9a22175cf1271fab..f2f67423e981db4f90d52c83a8b194944c932005 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && gccgo && arm
-// +build linux,gccgo,arm
 
 package unix
 
index f6ab02ec15015ea6a8246b90bd5014bb25341ad4..3d0e98451f8a78933ecf08740b1f6e744f0d627a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build loong64 && linux
-// +build loong64,linux
 
 package unix
 
index 93fe59d25d9f5ef8000c9445123f25edec00c148..70963a95abf3433cf2ef6a771b174c52db941877 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (mips64 || mips64le)
-// +build linux
-// +build mips64 mips64le
 
 package unix
 
index aae7f0ffd3fcf7165c048331919363f29feac9a5..c218ebd28016061e44f2a942ec1b38f0a01ed64d 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (mips || mipsle)
-// +build linux
-// +build mips mipsle
 
 package unix
 
index 66eff19a320bdb28f7c40b24e42da6944b7a63d5..e6c48500ca9444e9d0b89bb293cde890d7f3cbb9 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && ppc
-// +build linux,ppc
 
 package unix
 
index 806aa2574d8dfaa7e7cc3358fc29e8c37530baf7..7286a9aa882b0d4826a90b7247002603adfd7628 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (ppc64 || ppc64le)
-// +build linux
-// +build ppc64 ppc64le
 
 package unix
 
index 5e6ceee129fb2810f6bf403c1f617f2b841ce7eb..6f5a288944dfe604dd0f33b5b32e5d91b827c3f1 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build riscv64 && linux
-// +build riscv64,linux
 
 package unix
 
index 2f89e8f5defe36a7235eb5f5847fb99fff704ad5..66f31210d083faba869ec76b6c56695eaa6eebee 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build s390x && linux
-// +build s390x,linux
 
 package unix
 
index 7ca064ae76495b5f643330d65ab621a4d03e34e0..11d1f16986655391431c8af62b53a4198cde84ef 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build sparc64 && linux
-// +build sparc64,linux
 
 package unix
 
index 5199d282fd0d2fb0b04b5fff455af53a387636f4..7a5eb57432fa2723d9221ff6f33f430eaa0d419f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build 386 && netbsd
-// +build 386,netbsd
 
 package unix
 
index 70a9c52e980179a7ea689971e52fcbb41c59d56b..62d8957ae6e2ed8436f0f1cfb33691295f8cd78f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 && netbsd
-// +build amd64,netbsd
 
 package unix
 
index 3eb5942f93ff4d9acffa0589d7461a6a05360b0d..ce6a0688512fac53490193b0e8d2c769b610c6cb 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm && netbsd
-// +build arm,netbsd
 
 package unix
 
index fc6ccfd810d9566d8b6aecca86a0e9d4eabb66a5..d46d689d1b64f20c889efb3a24fd8f521ed2e341 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm64 && netbsd
-// +build arm64,netbsd
 
 package unix
 
index 6baabcdcb0696212a7765d7fe1bd11369aa108b6..9ddc89f4fcd7ac5a931c6231613212d2f3b295d5 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build 386 && openbsd
-// +build 386,openbsd
 
 package unix
 
index bab25360eae33225903e741f3a3042bf2a65e129..70a3c96eea175701dc86b671e56054f42733e323 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 && openbsd
-// +build amd64,openbsd
 
 package unix
 
index 8eed3c4d4e7c2b65c4522eca11a89ec300807060..265caa87f76e06f93349db4b6b39a4ea2f216c7f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm && openbsd
-// +build arm,openbsd
 
 package unix
 
index 483dde99d4c63c00066d4f4c531b314fb118c3b9..ac4fda1715ae974cf01861a0ddc408debd97b16f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build arm64 && openbsd
-// +build arm64,openbsd
 
 package unix
 
index 04aa43f41b253bf915c6523504bba9d62936053c..0a451e6dd40a958c1eab021723b5fead8edc5d77 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build openbsd
-// +build openbsd
 
 package unix
 
index c2796139c013b3cc20fc7981b35816c9014aa08d..30a308cbb4b86c42abb3e911690d9aeb35947c5f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ppc64 && openbsd
-// +build ppc64,openbsd
 
 package unix
 
index 23199a7ff6247b7688483170c2db4912456adcc2..ea954330fac0f9c06451526f3d110ebe78fa4e15 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build riscv64 && openbsd
-// +build riscv64,openbsd
 
 package unix
 
index 0bd25ef81f202f2c2ee73ca98c5e0ddff06371a2..e02d8ceae37e69354feb80d6f768d5aa3b02f717 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 && solaris
-// +build amd64,solaris
 
 package unix
 
index f6eda27050dabf1e2282577e4ff642e66c7c45f2..77081de8c7de75ac729814dff15aee9a64760c3a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
 
 package unix
 
index b6919ca580e75a9487aa09a24a5f12d2c6345f06..05c95bccfab4310a04f8f104bccd3ffd31b09ff1 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc
-// +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris
-// +build gc
 
 package unix
 
index f6f707acf2c334e05f2f5716768398be50aaeaeb..23f39b7af7e6bc359ec08b66d6cf82c3b0b26bf3 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (ppc64le || ppc64) && gc
-// +build linux
-// +build ppc64le ppc64
-// +build gc
 
 package unix
 
index 4596d041ce376e76cf962afaf6f3dd2193b9eabf..d99d05f1bc14cf13c7d164c34228a52b9fe84a9a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 package unix
 
index 2c3a4437f0f084134fb018309dc82d939d1f45f8..4fcd38de276255ab286c13ca70070ec192d0ba5a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux
-// +build linux
 
 package unix
 
index 5bb41d17bc47eb17711c93aeaa6cac81b5846e70..79a84f18b46d9207c41768a63afd38c90126b01b 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (darwin && !ios) || linux
-// +build darwin,!ios linux
 
 package unix
 
index 71bddefdb87db4d1dfb4e3c0808c932af7347d26..9eb0db664cbf83325bf900141313de337f8e2055 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin && !ios
-// +build darwin,!ios
 
 package unix
 
index 616b1b28485812861364414dab61a7c71a1b7865..7997b19022691427099950975fb1477f7fc435fa 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package unix
 
index f5f8e9f3665e98f24e8cd837d5a8d798002d5cb7..e1687939618c319002e208558aab9ed07b0a2040 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build freebsd || netbsd
-// +build freebsd netbsd
 
 package unix
 
index ca9799b79ef951555055a9d573166a690cfd1fc4..2fb219d7876304ce88192dc2455e79d16a288933 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc && aix
-// +build ppc,aix
 
 // Created by cgo -godefs - DO NOT EDIT
 // cgo -godefs -- -maix32 _const.go
index 200c8c26fe65b775425eb06f61299eb6ae1d0ace..b0e6f5c85c7db5b4586c41d508b8c303d4569b8b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64 && aix
-// +build ppc64,aix
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -maix64 _const.go
index 14300762715010602ea5fe1b85b53481ebbe4c46..e40fa85245f47cb7d80057e1362556976fd26910 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && darwin
-// +build amd64,darwin
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index ab044a74274f013dac8157758669869dee7fa64e..bb02aa6c05647b75f1db94dd7965bac3f66b57d4 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && darwin
-// +build arm64,darwin
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 17bba0e44f9e4efc1366b1930a6b028f24808e57..c0e0f8694c1ef606417c5db177f0a007304d53cb 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && dragonfly
-// +build amd64,dragonfly
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index f8c2c5138748ba918652ba2f6f0b2daba13a94d3..6c6923906f4ea707a47105d62fa2377d6c509473 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && freebsd
-// +build 386,freebsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m32 _const.go
index 96310c3be1b0a43bcb6b62250b8aeef78a1c28ef..dd9163f8e885358c76d3f5ed4f7c2c5393150c12 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && freebsd
-// +build amd64,freebsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 777b69defa04d021432716cfa04a88db95fc6fc3..493a2a793c0265a295cf4a4605a1d9fc82feb121 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && freebsd
-// +build arm,freebsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- _const.go
index c557ac2db317ab67195166d5283b2b8d125a4974..8b437b307d56bd19710c21ba80465ce848df831e 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && freebsd
-// +build arm64,freebsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 341b4d96265b16413f9966fe25c7c2238d3013d6..67c02dd57950f1fbde8a4b15b5a63054a595f30e 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && freebsd
-// +build riscv64,freebsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index f9c7f479b0388f3f50fd9a5d28709dd76d59ae20..2409c44780e95ded457e97d1509b62f982664173 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by mkmerge; DO NOT EDIT.
 
 //go:build linux
-// +build linux
 
 package unix
 
index 30aee00a5373b0369c53ccdcbf48cc56ed9c62bd..4920821cf3b23c1b27e88239d1d15e48b554d03c 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && linux
-// +build 386,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/386/include -m32 _const.go
index 8ebfa512785711171b227b79cedd3f7572f050c9..a0c1e411275cc4b9a331a76234bd4b3e64361389 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && linux
-// +build amd64,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/amd64/include -m64 _const.go
index 271a21cdc7ec01a9dd9114428dc2524dfc260a5b..c63985560f61f166fdf70c03729b0ebb6613eec6 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && linux
-// +build arm,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/arm/include _const.go
index 910c330a39c5feeb0b3b833d6cb6520960c22ad3..47cc62e25c148256373d1a3dd2b330b9b0a48250 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && linux
-// +build arm64,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char _const.go
index a640798c9331aaf7cfcaef015de87e63c1358399..e6467bd23b37240381b039239b98106a27e87045 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build loong64 && linux
-// +build loong64,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/loong64/include _const.go
index 0d5925d340748dd6300fc412e5d842d95c546eae..54694642a5de9fd3e46b0960cc8704fc8ce38449 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips && linux
-// +build mips,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/mips/include _const.go
index d72a00e0b6382064475849e39fbb58b9d6721900..3adb81d75822cbeb8da73e416a79354ff01b528c 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64 && linux
-// +build mips64,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/mips64/include _const.go
index 02ba129f857e170851cbcca58af356e7b2ff70cd..2dfe98f0d1b15d66f92a7dbfadfc87d0ef2856c2 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64le && linux
-// +build mips64le,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/mips64le/include _const.go
index 8daa6dd968885b363799452bd261e1459bc71d97..f5398f84f041bd06c5b324e7e08b15277b0a440c 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mipsle && linux
-// +build mipsle,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/mipsle/include _const.go
index 63c8fa2f7f0bd99b613e8cb0d39091286becfaae..c54f152d68fd2ed04853dbe94fb3817e78d001a4 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc && linux
-// +build ppc,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc/include _const.go
index 930799ec1b3bd420ba44f51255f4e20f0d1e8e59..76057dc72fb5db041e5ddf5aa3f9fd62735c7649 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64 && linux
-// +build ppc64,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64/include _const.go
index 8605a7dd7efcc7c81aa64e85d138729106992b9f..e0c3725e2b89c28c83f20c81dc9c78a901c2ae1c 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64le && linux
-// +build ppc64le,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64le/include _const.go
index 95a016f1c01fec36ddd8d08a84a72618a2e91bcb..c597e31db624dd3f799e959aacd3a1fdbac291e2 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && linux
-// +build riscv64,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/riscv64/include _const.go
index 1ae0108f5767f7b5dc3729b334fa0c2751528212..11619d4ec88f282d48c818ac254164b84714ce66 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build s390x && linux
-// +build s390x,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char _const.go
index 1bb7c6333b420efe248b9dc77f712b76a2bc8b8b..396d994da79c4416c5cb8ffa882a9210ef794a8a 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build sparc64 && linux
-// +build sparc64,linux
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -Wall -Werror -static -I/tmp/sparc64/include _const.go
index 72f7420d20a149bead10545bdae179318acce302..130085df407c877e284d22f886a1325f0ef4762d 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && netbsd
-// +build 386,netbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m32 _const.go
index 8d4eb0c0804e10e3b59320f2d5ed2ae2e0ce75a6..84769a1a386ecee6f1703e2c27a0270cf2fffbd5 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && netbsd
-// +build amd64,netbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 9eef9749f6aaca4856bd74f4bc05f65bbfac4a18..602ded0033323832650f1f1c48b10708d2e4bab5 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && netbsd
-// +build arm,netbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -marm _const.go
index 3b62ba192c352b1db1a3f39f2ddaeb187c265d9d..efc0406ee1d8528244e9a87f3f7d933501d76aa6 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && netbsd
-// +build arm64,netbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index af20e474b3889e54679b39efe2a19d56429a99af..5a6500f8377502434f1c75c59499cd8b17162994 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && openbsd
-// +build 386,openbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m32 _const.go
index 6015fcb2bf69278fd3a06c3b139f30abe92bb670..a5aeeb979de09c6f63e18b8d4c27375326782c84 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && openbsd
-// +build amd64,openbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 8d44955e44d81d3d4113510b5ae6c9dad5a65b5c..0e9748a722958bd4c0506634c89c1b66db208f63 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && openbsd
-// +build arm,openbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- _const.go
index ae16fe7542aee62a7aa8540c7bd3daf05a55faa6..4f4449abc17d34924a01b69df2c03deafd39f327 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && openbsd
-// +build arm64,openbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 03d90fe35501edce3db7b3c61dc8182fddbed874..76a363f0fe03071a0b8ad0b9fb350c9d63f558ff 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64 && openbsd
-// +build mips64,openbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 8e2c51b1eec0f3a3a6d8ae003e7cd47db6c489db..43ca0cdfdcf485b97056a395da89c1f070068318 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64 && openbsd
-// +build ppc64,openbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 13d403031ed6676118b7bedeb331956c941c1ae2..b1b8bb2005c972e5bae3d7bf171bed148573fced 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && openbsd
-// +build riscv64,openbsd
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index 1afee6a08905cd91a449652307989a18e04c3d68..d2ddd3176e39ee7061fae448c773edabe4ef57b9 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && solaris
-// +build amd64,solaris
 
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs -- -m64 _const.go
index fc7d0506f6c02e984bafeaabcc18b3fe798280b5..4dfd2e051d35791fba93a469bd65283856b4024b 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 // Hand edited based on zerrors_linux_s390x.go
 // TODO: auto-generate.
index 97f20ca282f5b962a6e511819fa78c1fb9f13fc6..586317c78e71b11152e9c6f101292e98f1f090c3 100644 (file)
@@ -1,8 +1,6 @@
 // Code generated by linux/mkall.go generatePtracePair("arm", "arm64"). DO NOT EDIT.
 
 //go:build linux && (arm || arm64)
-// +build linux
-// +build arm arm64
 
 package unix
 
index 0b5f7943054b2538352dac6b7fdf105c4f4ed899..d7c881be77d875b38eca9e1a04ece191b224b1cd 100644 (file)
@@ -1,8 +1,6 @@
 // Code generated by linux/mkall.go generatePtracePair("mips", "mips64"). DO NOT EDIT.
 
 //go:build linux && (mips || mips64)
-// +build linux
-// +build mips mips64
 
 package unix
 
index 2807f7e64602d2a5d2e63802eab1d54c5f92c0f3..2d2de5d292264e4a6c88eba4dd40c5da601c3b19 100644 (file)
@@ -1,8 +1,6 @@
 // Code generated by linux/mkall.go generatePtracePair("mipsle", "mips64le"). DO NOT EDIT.
 
 //go:build linux && (mipsle || mips64le)
-// +build linux
-// +build mipsle mips64le
 
 package unix
 
index 281ea64e34acfb0f574788413a1d2d2083484ead..5adc79fb5eab765c0e1fede5d2304ed6cbfafbfe 100644 (file)
@@ -1,8 +1,6 @@
 // Code generated by linux/mkall.go generatePtracePair("386", "amd64"). DO NOT EDIT.
 
 //go:build linux && (386 || amd64)
-// +build linux
-// +build 386 amd64
 
 package unix
 
index d1d1d23311dc50ebd5fbd5d54f08ea24a8f01d6f..6ea64a3c0c35cfacc55e45c064b46c58e3c9c280 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build aix && ppc
-// +build aix,ppc
 
 package unix
 
index f99a18adc3309ad72bb5c2a71aaa1ef395796426..99ee4399a3a33b3fb987dc746834ebc2711d2529 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build aix && ppc64
-// +build aix,ppc64
 
 package unix
 
index c4d50ae5005c284c54c94b604aeb0b24256e335d..b68a78362b2cdc670c589e88268df70d1ee2790b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build aix && ppc64 && gc
-// +build aix,ppc64,gc
 
 package unix
 
index 6903d3b09e3da99ac77abc2e420bcb9c9f671b86..0a87450bf8ee9e20d3407ac8c731ad38b3534882 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build aix && ppc64 && gccgo
-// +build aix,ppc64,gccgo
 
 package unix
 
index 1cad561e9839087352866887113ac55771924824..ccb02f240a4f7346d18174d089654b1a556dd025 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build darwin && amd64
-// +build darwin,amd64
 
 package unix
 
index b18edbd0e31f5590344f1a91f59aabf4da705d39..1b40b997b5260f6f0a1e5082a227db34c9a58d91 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build darwin && arm64
-// +build darwin,arm64
 
 package unix
 
index 0c67df64a503f8355facf5e67e814b9abc9dc80d..aad65fc7932f3ff1f242c0eae514ecb32d207223 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build dragonfly && amd64
-// +build dragonfly,amd64
 
 package unix
 
index e6e05d145bf733aa80e05771aa591579f55b0122..c0096391af99efb7725956e72f73a332fb3e70cc 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build freebsd && 386
-// +build freebsd,386
 
 package unix
 
index 7508accac92f956e72fd3c013ea79027c7f58b6f..7664df749600d30e9166e810def5cc475e15403e 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build freebsd && amd64
-// +build freebsd,amd64
 
 package unix
 
index 7b56aead469db7a8f23e5fca36ba1723eb172399..ae099182c9f58fea286fabb55bf9ea4ee2341d90 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build freebsd && arm
-// +build freebsd,arm
 
 package unix
 
index cc623dcaae5d71511f9cae499e4ff0804c5abf45..11fd5d45bbb8e2bba13cea565aecda34533a5d54 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build freebsd && arm64
-// +build freebsd,arm64
 
 package unix
 
index 58184919740447407fa30e9a3602eb7fd560eff4..c3d2d65307288f245a07e1dd98b399472801c637 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build freebsd && riscv64
-// +build freebsd,riscv64
 
 package unix
 
index 6be25cd19014c01a0fd3d1c16e448f38a8d25e68..c698cbc01a538f2ada7c476334c4a04a0711b814 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build illumos && amd64
-// +build illumos,amd64
 
 package unix
 
index 1ff3aec74c5e270618c74e29b0944d57c3915df2..faca7a557b10dab462e4f1c8c96152047fda93a5 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by mkmerge; DO NOT EDIT.
 
 //go:build linux
-// +build linux
 
 package unix
 
@@ -2195,3 +2194,13 @@ func schedGetattr(pid int, attr *SchedAttr, size uint, flags uint) (err error) {
        }
        return
 }
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) {
+       _, _, e1 := Syscall6(SYS_CACHESTAT, uintptr(fd), uintptr(unsafe.Pointer(crange)), uintptr(unsafe.Pointer(cstat)), uintptr(flags), 0, 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
index 07b549cc25e85bf26d8c196d2a41c83be40a5c81..4def3e9fcb0d6725caa9631b010a35a739c32a32 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && 386
-// +build linux,386
 
 package unix
 
index 5f481bf83f46afaeb3e1e50c1a262f14fe46e5f2..fef2bc8ba9c9006239c3d895ba621a9ff164b271 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && amd64
-// +build linux,amd64
 
 package unix
 
index 824cd52c7fae4f2a8b9e794cf69ff2c68bd36b19..a9fd76a884119c0fb057e474a2d7be9024c7a08a 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && arm
-// +build linux,arm
 
 package unix
 
index e77aecfe98535cd53ce5cfc9fd2f45aeda62b8a7..4600650280aa87969ee63ebfd80c8c61ed662dec 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && arm64
-// +build linux,arm64
 
 package unix
 
index 806ffd1e125e641817274a955a167b57a09a938e..c8987d2646504fae39a03c0a867bbdc451be0878 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && loong64
-// +build linux,loong64
 
 package unix
 
index 961a3afb7b71b2a068bbbe7875d4bf1455a3502d..921f43061106592aaf183316c82ebb9aab25df00 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && mips
-// +build linux,mips
 
 package unix
 
index ed05005e91b6992b74d3dfb712c58004b367534e..44f067829c4dd1cf95cb083c0d4b6d06f19a5128 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && mips64
-// +build linux,mips64
 
 package unix
 
index d365b718f30146e5573b9bd3d9f0b3fcc4b8699c..e7fa0abf0d19642a5b814b12d736f076057651c4 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && mips64le
-// +build linux,mips64le
 
 package unix
 
index c3f1b8bbde01acf0d853b7f0db75d4c9c3af10fb..8c5125675e83859acd4f822df9d89f31e1e5b919 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && mipsle
-// +build linux,mipsle
 
 package unix
 
index a6574cf98b16ed1c0989b7bfc0bd8ddfbdc285d9..7392fd45e4333d43a8bd67fd3fbc4f1c7e77c717 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && ppc
-// +build linux,ppc
 
 package unix
 
index f40990264f497b15ab03709a553b740c12805b55..41180434e60950e9cfc5848e76bcb3adc9e5c443 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && ppc64
-// +build linux,ppc64
 
 package unix
 
index 9dfcc29974f471c8cc0a98a8af25ce671bd9a4bc..40c6ce7ae5439b2c9228568da10416f65de2281b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && ppc64le
-// +build linux,ppc64le
 
 package unix
 
index 0ab4f2ed72064ea1efc2f20cc7a1e3ca154b89c6..2cfe34adb1235897b1d552d257c657c41ec5871b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && riscv64
-// +build linux,riscv64
 
 package unix
 
index 6cde32237dc8e0958ae743dd2fb9f73ae10e2974..61e6f070971bfb1aa84f994da2c5b3e8597a903f 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && s390x
-// +build linux,s390x
 
 package unix
 
index 5253d65bf1b96689608055fdce0d7bc5e974f4eb..834b84204283a1321fea2a3ca9168f9396622612 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build linux && sparc64
-// +build linux,sparc64
 
 package unix
 
index 2df3c5bac6d1d14b31d9b1945b8c592ed1b339e3..e91ebc14a199d788520791e69f87a7efe205bff3 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build netbsd && 386
-// +build netbsd,386
 
 package unix
 
index a60556babbff23fc86382826704bca8af93dd7ad..be28babbcd68b0f65985fcb97b5099e0e09ee9af 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build netbsd && amd64
-// +build netbsd,amd64
 
 package unix
 
index 9f788917a44bf9731a28ed01e2bf37582ba039c5..fb587e8261f772665693a0d004795fac0b69724b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build netbsd && arm
-// +build netbsd,arm
 
 package unix
 
index 82a4cb2dc43d131838f2099f8488a84488fc3e0f..d576438bb088cbb1c6759d817c106a7cec04f510 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build netbsd && arm64
-// +build netbsd,arm64
 
 package unix
 
index 66b3b6456339a03722aa5f11ce0b29aebfe320f7..9da3ec3772dfc76ba3a01c70ff16b8f1d339aadc 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build openbsd && 386
-// +build openbsd,386
 
 package unix
 
index c5c4cc112ede582f642d18852a4055c93dfb975a..cc273c4126209faf7007d6986d38464f28c5d2df 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build openbsd && amd64
-// +build openbsd,amd64
 
 package unix
 
index 93bfbb328748b55c72e93db435f34bc5184a4044..fa34e22e3b59f34e8bf184d7596057031b8fa7bf 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build openbsd && arm
-// +build openbsd,arm
 
 package unix
 
index a107b8fda5ff488811d6eb5464e9ab71038e80db..ab612214773e03f66379b3d496969e6385eb3b35 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build openbsd && arm64
-// +build openbsd,arm64
 
 package unix
 
index c427de509e322a28397a665e8d0b39a961aeb8b9..3882790a52591e16dc704c9815a3593538a78888 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build openbsd && mips64
-// +build openbsd,mips64
 
 package unix
 
index 60c1a99ae49005a467b2f0f22a0fc88d3ca67300..172ba7f62c300249a50d1044e48e3461b7d95d81 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build openbsd && ppc64
-// +build openbsd,ppc64
 
 package unix
 
index 52eba360f81d7ddbf395b58ce0d361177decc0e8..fd8e6f62fae763fe23756216656255e21eb7b6a6 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build openbsd && riscv64
-// +build openbsd,riscv64
 
 package unix
 
index b401894644ff6cf5c1859a0d755cce604a2efbf8..829b87feb8da62f255f3b0662ed64cde8c2d01f7 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build solaris && amd64
-// +build solaris,amd64
 
 package unix
 
index 1d8fe1d4b2181c531881719f0d5fd4ea222190cb..94f01123831961cf520d87a7527fb19971299b61 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 package unix
 
index 55e0484719c4989e14476821810c2827f9249f05..3a58ae819ad94a102599a7a5c1b8d4236451b2fd 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; DO NOT EDIT.
 
 //go:build 386 && openbsd
-// +build 386,openbsd
 
 package unix
 
index d2243cf83f5bca980c361b4e56008515d80e8d08..dcb7a0eb729a6f3e871a0753602e5ce501d6e102 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; DO NOT EDIT.
 
 //go:build amd64 && openbsd
-// +build amd64,openbsd
 
 package unix
 
index 82dc51bd8b57aaafb4be73ea6274a229bed660ba..db5a7bf13c6f97dec7e0a2f0afcad75b828c70e2 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; DO NOT EDIT.
 
 //go:build arm && openbsd
-// +build arm,openbsd
 
 package unix
 
index cbdda1a4ae24965e69e145b518da80b2e28a8626..7be575a77703f8d79f3abe544740a244c3e5d62f 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; DO NOT EDIT.
 
 //go:build arm64 && openbsd
-// +build arm64,openbsd
 
 package unix
 
index f55eae1a8211e083ec145e2300ed4f1fa29ef04c..d6e3174c6962520c2a70450f3a5b063dfa9233f1 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; DO NOT EDIT.
 
 //go:build mips64 && openbsd
-// +build mips64,openbsd
 
 package unix
 
index e44054470b7edfe2aead8b275db10194531c2a6b..ee97157d013c7950bbb4182c064cac605d2bb38e 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; DO NOT EDIT.
 
 //go:build ppc64 && openbsd
-// +build ppc64,openbsd
 
 package unix
 
index a0db82fce2064bd11fe531a150364c60166b049d..35c3b91d0f4b8733c9fb010042b2d77b709263c4 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; DO NOT EDIT.
 
 //go:build riscv64 && openbsd
-// +build riscv64,openbsd
 
 package unix
 
index f8298ff9b58a3582d79da414b74c75f2a417743f..5edda76870be278ca86beeaeb1f7ed24c4187b69 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && darwin
-// +build amd64,darwin
 
 package unix
 
index 5eb433bbf010ee3682def64f4ff3ae8e32c7c5cd..0dc9e8b4d95050bc0fd6fd89fec16ddce3dfbc17 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && darwin
-// +build arm64,darwin
 
 package unix
 
index 703675c0c4a538002c600e62b8d46a8cee9988af..308ddf3a1f41d4d07578792686dc8b4520a18be6 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && dragonfly
-// +build amd64,dragonfly
 
 package unix
 
index 4e0d96107b9ebf9f2290a8d533a33d3a3b4cb99a..418664e3dc2cdc2a4b5574e9456ae3802b1208f4 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && freebsd
-// +build 386,freebsd
 
 package unix
 
index 01636b838d30ffb92ab0f8703372ac0324ab3590..34d0b86d7ccd17b5d80f24cb6412e1b3340c67f0 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && freebsd
-// +build amd64,freebsd
 
 package unix
 
index ad99bc106a86fe9f81a6f3370c197b42d605a558..b71cf45e2ea38ac96f1fd89b833a06d28f3ed4c9 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && freebsd
-// +build arm,freebsd
 
 package unix
 
index 89dcc42747657cb1d98a7f92f2933a5de7404623..e32df1c1ee371af846089cdd9c04ccbd66ce26ab 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && freebsd
-// +build arm64,freebsd
 
 package unix
 
index ee37aaa0c906a9aa4ce2639ef660682986717c2a..15ad6111f359b9563bf21a00f86daddf3a265686 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && freebsd
-// +build riscv64,freebsd
 
 package unix
 
index 9862853d341170a87c44c9d954517c42eee0d5fa..2d181ba7b24508583f03dd4da961f757cb0bf93b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && linux
-// +build 386,linux
 
 package unix
 
index 8901f0f4e51df0932a87b04fde75d8cec90e1a81..2b25ab33cf67b76aab8c5a9a7058dd395082682c 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && linux
-// +build amd64,linux
 
 package unix
 
index 6902c37eed7f853ab83809f1be48b74f6f1f92fc..b43e7c4c21d4facc1d036c8269a0269d6a9c33a2 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && linux
-// +build arm,linux
 
 package unix
 
index a6d3dff811f9b1edff650bc42abd3a882ad68d60..d50622f82ec70950b79c4ec4a6ed608b61d2000a 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && linux
-// +build arm64,linux
 
 package unix
 
index b18f3f71079a3de700e92c0b38609e7e99c2521a..7c31dbe4fe19b8ba7d258d728076474ebfb3d253 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build loong64 && linux
-// +build loong64,linux
 
 package unix
 
index 0302e5e3de12db1725108396f923f7ab334007dc..2b01364d7ed98ac8478d564e964c9a86070eaff3 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips && linux
-// +build mips,linux
 
 package unix
 
index 6693ba4a0f8bb2f0310b2535950213185f069779..9bb31708e866ab538b0a6292e3bc19a820bd385d 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64 && linux
-// +build mips64,linux
 
 package unix
 
index fd93f4987c9e6c205487e27ad839fd6799dd3e09..8413fe6dc05a6b44b80c13e1eab5c826a09e9403 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64le && linux
-// +build mips64le,linux
 
 package unix
 
index 760ddcadc2ac6f289e0571d340d4a2a8dab2003f..cf76a275ad478285f1603cf54c1121d9e5129bee 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mipsle && linux
-// +build mipsle,linux
 
 package unix
 
index cff2b2555b732d59f97e5cb41a1bbc20459425e5..7999422733688f6a3aa311ee6d0b65b92cc73e6b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc && linux
-// +build ppc,linux
 
 package unix
 
index a4b2405d09d85ef66dbe36128e3055ba4e4e7df3..75904d52b9dc7a119919c56a50f5e5c1c89d78dd 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64 && linux
-// +build ppc64,linux
 
 package unix
 
index aca54b4e3a1ae5fd77d52dd55fa44d240c80d5d4..f5f681c3de7db5a793b196fd00732de3e398f1d4 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64le && linux
-// +build ppc64le,linux
 
 package unix
 
index 9d1738d641f7bcc679d797f55ab1228d6a2cf8c2..391954743dc2fed91fef47b411a94f0973b29269 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && linux
-// +build riscv64,linux
 
 package unix
 
index 022878dc8df4b71bf725665e638695d32db92c5f..f33ceef17df65c9ff477bcacd5ebb061aa995e0a 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build s390x && linux
-// +build s390x,linux
 
 package unix
 
index 4100a761c20fe48a4df7e9d22d190be5eccd3f20..a2ce59e73ff1c73aeb291076bae442a35a1c89de 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build sparc64 && linux
-// +build sparc64,linux
 
 package unix
 
index 3a6699eba982586c20484275ef182b01a36e149c..b2aa8cd495e1e38dd36116f0caa1f8d578afa89d 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && netbsd
-// +build 386,netbsd
 
 package unix
 
index 5677cd4f15842efac178a91ab69d7b2f9cafb402..524a1b1c9a7b59999181dc6cd8f0778d0b4c717a 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && netbsd
-// +build amd64,netbsd
 
 package unix
 
index e784cb6db1c29a901aa71660519eed70cacd699f..d59b943ac22a2acf45dc08afc58210d00039acf5 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && netbsd
-// +build arm,netbsd
 
 package unix
 
index bd4952efa5bd20a3eb0e47482e6424aef74024b3..31e771d53e69586ef6170ea431f41330ce76c445 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; DO NOT EDIT.
 
 //go:build arm64 && netbsd
-// +build arm64,netbsd
 
 package unix
 
index 597733813e3788bc8ee2e7e9f7b43b8b9b44a0a8..9fd77c6cb464e77ca1eed2c2959d4fded9f7b0f8 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && openbsd
-// +build 386,openbsd
 
 package unix
 
index 16af29189940e281371e9ad5a767d1451c9530e2..af10af28cbe1dc3fcb6a9420e2892556b66933e6 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && openbsd
-// +build amd64,openbsd
 
 package unix
 
index f59b18a97795a1ab1f02dd5aa3ec107462bac4bb..cc2028af4baee1edc3655deacd9c053f1938b05e 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && openbsd
-// +build arm,openbsd
 
 package unix
 
index 721ef591032167cbb39c47f5c78a4d9d239b6152..c06dd4415a39e778e06c9bc5cd9f868150a639f8 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && openbsd
-// +build arm64,openbsd
 
 package unix
 
index 01c43a01fda7673c59b6aad1b26f00063e01cf32..9ddbf3e08fd48c883ac34db28a41000a63b0a2ec 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64 && openbsd
-// +build mips64,openbsd
 
 package unix
 
index f258cfa24ed472363cd1768b9e521201b52c6cee..19a6ee41340a1df46766754d0c330d65e2af5355 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64 && openbsd
-// +build ppc64,openbsd
 
 package unix
 
index 07919e0eccd9d80f6e500e310fe7d82be0936237..05192a782d8d2bd10b94f76783c1d3228daee84d 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && openbsd
-// +build riscv64,openbsd
 
 package unix
 
index 073daad43b7a0b0a2ab372bf19bb38b45ea0a3a9..b2e308581990a05dc57dded6f5c7a24a223addbd 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 package unix
 
index 7a8161c1d1cae0c71c9be5af1ff031cc2c32c6f1..3e6d57cae7f1da2a832684ae53ba10570bfb16b7 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc && aix
-// +build ppc,aix
 
 package unix
 
index 07ed733c51b55fb624db4af3c0976a907ab8e69a..3a219bdce7ee82316210fcac701f3eef00eb5336 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64 && aix
-// +build ppc64,aix
 
 package unix
 
index 690cefc3d06f12409b71495e7670cc2f883fea33..091d107f3a5c98255250449074b23e36885b256d 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && darwin
-// +build amd64,darwin
 
 package unix
 
index 5bffc10eac09a00fce6e59dc6ca60fe9023ce349..28ff4ef74d0d3e2769e75b79c0b757fc3837a13e 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && darwin
-// +build arm64,darwin
 
 package unix
 
index d0ba8e9b86a3483567cc3bcbe01e4a83612d4005..30e405bb4cd20cea3648885666ce41132dfc3706 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && dragonfly
-// +build amd64,dragonfly
 
 package unix
 
index 29dc483378aeb1d0b70a5343c0aa013ee81b69d7..6cbd094a3aa19eaf6dfdbddac0d63276bd7ffa79 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && freebsd
-// +build 386,freebsd
 
 package unix
 
index 0a89b28906a676a72a9c88f6550c903cb9214ad6..7c03b6ee77fa0839d25c0d67debf11a4555b703c 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && freebsd
-// +build amd64,freebsd
 
 package unix
 
index c8666bb15288b3a615de4af596a3cbb96aa1d189..422107ee8b1331d85b7ab4b18a1b8846d1dcc793 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && freebsd
-// +build arm,freebsd
 
 package unix
 
index 88fb48a887b105f262ccbb3dd870d00d065617c7..505a12acfd9d2951064f4d98572f7f3313109ee9 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && freebsd
-// +build arm64,freebsd
 
 package unix
 
index 698dc975e92be2c1f49cbe1d1175d55410d2dd62..cc986c7900660055f809096adc8112e208acca37 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && freebsd
-// +build riscv64,freebsd
 
 package unix
 
index 18aa70b42623155726a397324e787d332f7367b0..997bcd55ae9f2167ce91fb1e4bf5e136ae58dbc0 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by mkmerge; DO NOT EDIT.
 
 //go:build linux
-// +build linux
 
 package unix
 
@@ -5883,3 +5882,15 @@ type SchedAttr struct {
 }
 
 const SizeofSchedAttr = 0x38
+
+type Cachestat_t struct {
+       Cache            uint64
+       Dirty            uint64
+       Writeback        uint64
+       Evicted          uint64
+       Recently_evicted uint64
+}
+type CachestatRange struct {
+       Off uint64
+       Len uint64
+}
index 6d8acbcc570817692eda570c8c4507e16306eeab..438a30affadcb25dd0c763832d080d9844a174d0 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && linux
-// +build 386,linux
 
 package unix
 
index 59293c68841280c6ae0b0be15cca8e5e324dffce..adceca3553b6ed1d5586339b4392adfd8ca463f6 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && linux
-// +build amd64,linux
 
 package unix
 
index 40cfa38c29f650cfc810a36cf470998668caaa2e..eeaa00a37d69f7e739be7e645ed300915979974b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && linux
-// +build arm,linux
 
 package unix
 
index 055bc4216d4bdbac80d33189816ba131d32ae376..6739aa91d4e27c67f72323955a0f16fe0e7261ef 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && linux
-// +build arm64,linux
 
 package unix
 
index f28affbc6078a809556a99b0848c909137b299a3..9920ef6317d03dec6f26632f258cf5ff76c5eea6 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build loong64 && linux
-// +build loong64,linux
 
 package unix
 
index 9d71e7ccd8b06dfac152b72347a9afb6657de71d..2923b799a48c9385c8123223ea0783689e2bcae5 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips && linux
-// +build mips,linux
 
 package unix
 
index fd5ccd332a1687c70acb51e46ab952d182ba19de..ce2750ee415d37bd64eec58634c23c2160a3be78 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64 && linux
-// +build mips64,linux
 
 package unix
 
index 7704de77a2f68ea22b0b7ed64e4981e0b81766de..3038811d70bb947ccda2f9568fd60c54808079ec 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64le && linux
-// +build mips64le,linux
 
 package unix
 
index df00b87571ae76f2a7228ea033765d2f37eadcc2..efc6fed18c1fac6037be6bc6729ab07afe053255 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mipsle && linux
-// +build mipsle,linux
 
 package unix
 
index 0942840db6ed6cf4560a2bad453f64aa3026f956..9a654b75a90fd137ae46629944c9c98c67ea0f81 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc && linux
-// +build ppc,linux
 
 package unix
 
index 03487439508104c506bad025e2bdebe907af2db4..40d358e33e31557010b7db45fd81c9ba5eeac367 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64 && linux
-// +build ppc64,linux
 
 package unix
 
index bad06704757bc6ef60011ae338f89609253a4db6..148c6ceb869c0eb698fc916420f30f75e33d568f 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64le && linux
-// +build ppc64le,linux
 
 package unix
 
index 1b4c97c32a6224223a339cdbb7ebd53c5e6bb165..72ba81543ef725a07943823fe96cab672ddbdfdb 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && linux
-// +build riscv64,linux
 
 package unix
 
index aa268d025cf9a8e79d124e8680dd5b7defd165cd..71e765508e26c231af6e3c5173643201f53e1620 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build s390x && linux
-// +build s390x,linux
 
 package unix
 
index 444045b6c585e0625965e6d60753373e89e0cca8..4abbdb9de93286151834017227c5a59588acc01f 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build sparc64 && linux
-// +build sparc64,linux
 
 package unix
 
index 9bc4c8f9d889f3275b642b3c1b2fc9ac00a9ca7d..f22e7947d94cc04b4335ec093678448307503661 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && netbsd
-// +build 386,netbsd
 
 package unix
 
index bb05f655d22550887142789e6b44b9b7953e7d3a..066a7d83d29e3cc63882543f9c94861e065623a6 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && netbsd
-// +build amd64,netbsd
 
 package unix
 
index db40e3a19c665a4216d7ba74fc5d8fcfb62f786b..439548ec9ad484e267e4cf42393282c119e62fca 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && netbsd
-// +build arm,netbsd
 
 package unix
 
index 11121151ccf08b41c248e91fdd35ee702c13c6a3..16085d3bbcc7ff47dff8e380d1e085416c88a6dc 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && netbsd
-// +build arm64,netbsd
 
 package unix
 
index 26eba23b729f5ae974a0ec533884c5f30fc862b4..afd13a3af7b2d2ebb9e788dcb5b4d0c1acaea57b 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build 386 && openbsd
-// +build 386,openbsd
 
 package unix
 
index 5a54798869894332a1311b7d0883447c493a3e01..5d97f1f9b652f5971e1455f490de7c5bb883e2e0 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && openbsd
-// +build amd64,openbsd
 
 package unix
 
index be58c4e1ff8b9639f7de69567151278a5e8068ff..34871cdc159099f103f44e012101f8bcb35259cf 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm && openbsd
-// +build arm,openbsd
 
 package unix
 
index 52338266cb3ee45815538ed409c260a08d902f67..5911bceb3193561402420d85045a75939663fd73 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build arm64 && openbsd
-// +build arm64,openbsd
 
 package unix
 
index 605cfdb12b1dec7add75e0a4c7785940d07ccdb1..e4f24f3bc9a33427e475cd85a9caaa10eecb8c45 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build mips64 && openbsd
-// +build mips64,openbsd
 
 package unix
 
index d6724c0102c8753ad69524ecc3861dbfd8132c44..ca50a793035b949b11a6a6179800cdada590e55a 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build ppc64 && openbsd
-// +build ppc64,openbsd
 
 package unix
 
index ddfd27a434a1523d8e51ad81743d5c6dd5e5fe2d..d7d7f79023f997be19b8758a80ea1b595a0e26a1 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build riscv64 && openbsd
-// +build riscv64,openbsd
 
 package unix
 
index 0400747c67d4298daff751a3af78ad67aa6a4fed..14160576d28525bab1a0305167b419be056d56fa 100644 (file)
@@ -2,7 +2,6 @@
 // Code generated by the command above; see README.md. DO NOT EDIT.
 
 //go:build amd64 && solaris
-// +build amd64,solaris
 
 package unix
 
index aec1efcb306a465b8a9cf25bea5e1e9dbca1217a..54f31be6373720e01725ca06b357104c482a46c3 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build zos && s390x
-// +build zos,s390x
 
 // Hand edited based on ztypes_linux_s390x.go
 // TODO: auto-generate.
index a20ebea63312cb6cffdfc55c9f762946d1b1dae5..ce2d713d62e462c327a2f81752ef438308c992b0 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build windows && go1.9
-// +build windows,go1.9
 
 package windows
 
index fdbbbcd31717edfa1cedaa694a6dea2f353f354a..ba64caca5d3587a9d8ad145aef1cca247ca2d190 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !go1.12
-// +build !go1.12
 
 // This file is here to allow bodyless functions with go:linkname for Go 1.11
 // and earlier (see https://golang.org/issue/23311).
index 2cd60645ee7d32bb9e428a4e0a0cd2d90214ca64..6c366955d979bd931088309b52c408130711647f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build windows
-// +build windows
 
 package windows
 
index 8563f79c57f89551a6f66fe1c18339cf6b31423a..dbcdb090c0cf14ad2e396de6b61e41cfa90db982 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build generate
-// +build generate
 
 package windows
 
index 9196b089ca14c16da722f22a12b47c9d5aa768b2..0f1bdc3860fb5d12541300252f89700e419125a1 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build windows && race
-// +build windows,race
 
 package windows
 
index 7bae4817a06c6b75368cf82b79385f4259e2c5d5..0c78da78b13f51f4b9c39a8c261cd7eaff6e0f2a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build windows && !race
-// +build windows,!race
 
 package windows
 
index c44a1b9636014f462bdc62386bfad3824f3c551f..a9dc6308d68cbd23e4a38d92833b576054a6883e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build windows
-// +build windows
 
 package windows
 
index 4fc01434e4a2a28709808ebf3fe9016f5e42c7f0..6a4f9ce6aa0fd6225f397add8415e92477683e7b 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build windows
-// +build windows
 
 package windows
 
index 8732cdb957f39a51e686765ffec2bdc4c970792e..e85ed6b9c84bb13a4a8e68d44f828a56cf79c198 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build windows
-// +build windows
 
 // Package windows contains an interface to the low-level operating system
 // primitives. OS details vary depending on the underlying system, and
index 35cfc57ca89bd8bfda6496fb8ad448f9ade266bc..dcaa40977fc427d779026dba30519ffb7189e513 100644 (file)
@@ -233,6 +233,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
 //sys  CreateEnvironmentBlock(block **uint16, token Token, inheritExisting bool) (err error) = userenv.CreateEnvironmentBlock
 //sys  DestroyEnvironmentBlock(block *uint16) (err error) = userenv.DestroyEnvironmentBlock
 //sys  getTickCount64() (ms uint64) = kernel32.GetTickCount64
+//sys   GetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error)
 //sys  SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error)
 //sys  GetFileAttributes(name *uint16) (attrs uint32, err error) [failretval==INVALID_FILE_ATTRIBUTES] = kernel32.GetFileAttributesW
 //sys  SetFileAttributes(name *uint16, attrs uint32) (err error) = kernel32.SetFileAttributesW
index b88dc7c85e4e9d17ca22e9778563cc2215caf11c..359780f6ace5e622b4986de48fc6b547d712ece9 100644 (file)
@@ -1094,7 +1094,33 @@ const (
 
        SOMAXCONN = 0x7fffffff
 
-       TCP_NODELAY = 1
+       TCP_NODELAY                    = 1
+       TCP_EXPEDITED_1122             = 2
+       TCP_KEEPALIVE                  = 3
+       TCP_MAXSEG                     = 4
+       TCP_MAXRT                      = 5
+       TCP_STDURG                     = 6
+       TCP_NOURG                      = 7
+       TCP_ATMARK                     = 8
+       TCP_NOSYNRETRIES               = 9
+       TCP_TIMESTAMPS                 = 10
+       TCP_OFFLOAD_PREFERENCE         = 11
+       TCP_CONGESTION_ALGORITHM       = 12
+       TCP_DELAY_FIN_ACK              = 13
+       TCP_MAXRTMS                    = 14
+       TCP_FASTOPEN                   = 15
+       TCP_KEEPCNT                    = 16
+       TCP_KEEPIDLE                   = TCP_KEEPALIVE
+       TCP_KEEPINTVL                  = 17
+       TCP_FAIL_CONNECT_ON_ICMP_ERROR = 18
+       TCP_ICMP_ERROR_INFO            = 19
+
+       UDP_NOCHECKSUM              = 1
+       UDP_SEND_MSG_SIZE           = 2
+       UDP_RECV_MAX_COALESCED_SIZE = 3
+       UDP_CHECKSUM_COVERAGE       = 20
+
+       UDP_COALESCED_INFO = 3
 
        SHUT_RD   = 0
        SHUT_WR   = 1
index 8b1688de4cd17e88d5bb00ad1515230d5d617df0..db6282e00a58b6fe001b9370316e07bf2e663d7b 100644 (file)
@@ -253,6 +253,7 @@ var (
        procGetFileAttributesW                                   = modkernel32.NewProc("GetFileAttributesW")
        procGetFileInformationByHandle                           = modkernel32.NewProc("GetFileInformationByHandle")
        procGetFileInformationByHandleEx                         = modkernel32.NewProc("GetFileInformationByHandleEx")
+       procGetFileTime                                          = modkernel32.NewProc("GetFileTime")
        procGetFileType                                          = modkernel32.NewProc("GetFileType")
        procGetFinalPathNameByHandleW                            = modkernel32.NewProc("GetFinalPathNameByHandleW")
        procGetFullPathNameW                                     = modkernel32.NewProc("GetFullPathNameW")
@@ -2185,6 +2186,14 @@ func GetFileInformationByHandleEx(handle Handle, class uint32, outBuffer *byte,
        return
 }
 
+func GetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) {
+       r1, _, e1 := syscall.Syscall6(procGetFileTime.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(ctime)), uintptr(unsafe.Pointer(atime)), uintptr(unsafe.Pointer(wtime)), 0, 0)
+       if r1 == 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
 func GetFileType(filehandle Handle) (n uint32, err error) {
        r0, _, e1 := syscall.Syscall(procGetFileType.Addr(), 1, uintptr(filehandle), 0, 0)
        n = uint32(r0)
index 62c2b3f41f02ca36e7381c73e18970f67249a0fc..1ad0ddfe30d0c2cce55f0a69e8f87632c785544f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package term
 
index 853b3d69864a0d9a678cc7cdf4c0cf356edd1129..9dbf546298d30016bfe2747adaa7e518fbfdfe0c 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 package term
 
index 1e8955c934ffe5df574fb80733b1b82867bf53e5..1b36de799a2eeb039499fae782da6c4e95ea1902 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || linux || solaris || zos
-// +build aix linux solaris zos
 
 package term
 
index f1df8506516d89a947e20b9eb0a306675a2cc053..3c409e5885e9582c737c9d219441e1b6694ace4e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !zos && !windows && !solaris && !plan9
-// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!zos,!windows,!solaris,!plan9
 
 package term
 
index f0b90a4920e71c15cf0c9786562d7869f703a29e..6976f0d909025bad9ff06ccd326a9e2716f367e3 100644 (file)
@@ -15,6 +15,7 @@ import (
        "golang.org/x/tools/go/analysis/passes/inspect"
        "golang.org/x/tools/go/analysis/passes/internal/analysisutil"
        "golang.org/x/tools/go/ast/inspector"
+       "golang.org/x/tools/go/types/typeutil"
 )
 
 //go:embed doc.go
@@ -36,12 +37,9 @@ func run(pass *analysis.Pass) (interface{}, error) {
        }
        inspect.Preorder(nodeFilter, func(n ast.Node) {
                call := n.(*ast.CallExpr)
-               if ident, ok := call.Fun.(*ast.Ident); ok && ident.Name == "append" {
-                       if _, ok := pass.TypesInfo.Uses[ident].(*types.Builtin); ok {
-                               if len(call.Args) == 1 {
-                                       pass.ReportRangef(call, "append with no values")
-                               }
-                       }
+               b, ok := typeutil.Callee(pass.TypesInfo, call).(*types.Builtin)
+               if ok && b.Name() == "append" && len(call.Args) == 1 {
+                       pass.ReportRangef(call, "append with no values")
                }
        })
 
index 10489bea17e92b09dcb75f759c747eb6dc22a8e4..3bfd501226f2662c31c0c285642bbae921b42365 100644 (file)
@@ -18,6 +18,7 @@ import (
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/analysis/passes/inspect"
        "golang.org/x/tools/go/analysis/passes/internal/analysisutil"
+       "golang.org/x/tools/go/ast/astutil"
        "golang.org/x/tools/go/ast/inspector"
 )
 
@@ -77,7 +78,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
 
 // isMapIndex returns true if e is a map index expression.
 func isMapIndex(info *types.Info, e ast.Expr) bool {
-       if idx, ok := analysisutil.Unparen(e).(*ast.IndexExpr); ok {
+       if idx, ok := astutil.Unparen(e).(*ast.IndexExpr); ok {
                if typ := info.Types[idx.X].Type; typ != nil {
                        _, ok := typ.Underlying().(*types.Map)
                        return ok
index b40e081ec2694e7cea1f3fc9f904619e175014aa..931f9ca7540f65b0cd66c80b1e3daa1a3bef5b36 100644 (file)
@@ -8,12 +8,12 @@ import (
        _ "embed"
        "go/ast"
        "go/token"
-       "go/types"
 
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/analysis/passes/inspect"
        "golang.org/x/tools/go/analysis/passes/internal/analysisutil"
        "golang.org/x/tools/go/ast/inspector"
+       "golang.org/x/tools/go/types/typeutil"
 )
 
 //go:embed doc.go
@@ -52,18 +52,8 @@ func run(pass *analysis.Pass) (interface{}, error) {
                        if !ok {
                                continue
                        }
-                       sel, ok := call.Fun.(*ast.SelectorExpr)
-                       if !ok {
-                               continue
-                       }
-                       pkgIdent, _ := sel.X.(*ast.Ident)
-                       pkgName, ok := pass.TypesInfo.Uses[pkgIdent].(*types.PkgName)
-                       if !ok || pkgName.Imported().Path() != "sync/atomic" {
-                               continue
-                       }
-
-                       switch sel.Sel.Name {
-                       case "AddInt32", "AddInt64", "AddUint32", "AddUint64", "AddUintptr":
+                       fn := typeutil.StaticCallee(pass.TypesInfo, call)
+                       if analysisutil.IsFunctionNamed(fn, "sync/atomic", "AddInt32", "AddInt64", "AddUint32", "AddUint64", "AddUintptr") {
                                checkAtomicAddAssignment(pass, n.Lhs[i], call)
                        }
                }
index 4219f087b98af1a0f9e468d038900f206365be1f..564329774ef1fdd73b2cbb2037cabe3ebaa9c0d3 100644 (file)
@@ -14,6 +14,7 @@ import (
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/analysis/passes/inspect"
        "golang.org/x/tools/go/analysis/passes/internal/analysisutil"
+       "golang.org/x/tools/go/ast/astutil"
        "golang.org/x/tools/go/ast/inspector"
 )
 
@@ -83,7 +84,7 @@ func (op boolOp) commutativeSets(info *types.Info, e *ast.BinaryExpr, seen map[*
        i := 0
        var sets [][]ast.Expr
        for j := 0; j <= len(exprs); j++ {
-               if j == len(exprs) || hasSideEffects(info, exprs[j]) {
+               if j == len(exprs) || analysisutil.HasSideEffects(info, exprs[j]) {
                        if i < j {
                                sets = append(sets, exprs[i:j])
                        }
@@ -162,46 +163,13 @@ func (op boolOp) checkSuspect(pass *analysis.Pass, exprs []ast.Expr) {
        }
 }
 
-// hasSideEffects reports whether evaluation of e has side effects.
-func hasSideEffects(info *types.Info, e ast.Expr) bool {
-       safe := true
-       ast.Inspect(e, func(node ast.Node) bool {
-               switch n := node.(type) {
-               case *ast.CallExpr:
-                       typVal := info.Types[n.Fun]
-                       switch {
-                       case typVal.IsType():
-                               // Type conversion, which is safe.
-                       case typVal.IsBuiltin():
-                               // Builtin func, conservatively assumed to not
-                               // be safe for now.
-                               safe = false
-                               return false
-                       default:
-                               // A non-builtin func or method call.
-                               // Conservatively assume that all of them have
-                               // side effects for now.
-                               safe = false
-                               return false
-                       }
-               case *ast.UnaryExpr:
-                       if n.Op == token.ARROW {
-                               safe = false
-                               return false
-                       }
-               }
-               return true
-       })
-       return !safe
-}
-
 // split returns a slice of all subexpressions in e that are connected by op.
 // For example, given 'a || (b || c) || d' with the or op,
 // split returns []{d, c, b, a}.
 // seen[e] is already true; any newly processed exprs are added to seen.
 func (op boolOp) split(e ast.Expr, seen map[*ast.BinaryExpr]bool) (exprs []ast.Expr) {
        for {
-               e = unparen(e)
+               e = astutil.Unparen(e)
                if b, ok := e.(*ast.BinaryExpr); ok && b.Op == op.tok {
                        seen[b] = true
                        exprs = append(exprs, op.split(b.Y, seen)...)
@@ -213,14 +181,3 @@ func (op boolOp) split(e ast.Expr, seen map[*ast.BinaryExpr]bool) (exprs []ast.E
        }
        return
 }
-
-// unparen returns e with any enclosing parentheses stripped.
-func unparen(e ast.Expr) ast.Expr {
-       for {
-               p, ok := e.(*ast.ParenExpr)
-               if !ok {
-                       return e
-               }
-               e = p.X
-       }
-}
index 98d9a777a7989e5686311f83e54323c1b1767361..4e864397574c265a43c4089b485a1a89b9d9e3c4 100644 (file)
@@ -19,6 +19,7 @@ import (
 
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/analysis/passes/internal/analysisutil"
+       "golang.org/x/tools/go/ast/astutil"
 )
 
 const debug = false
@@ -64,7 +65,7 @@ func checkCgo(fset *token.FileSet, f *ast.File, info *types.Info, reportf func(t
 
                // Is this a C.f() call?
                var name string
-               if sel, ok := analysisutil.Unparen(call.Fun).(*ast.SelectorExpr); ok {
+               if sel, ok := astutil.Unparen(call.Fun).(*ast.SelectorExpr); ok {
                        if id, ok := sel.X.(*ast.Ident); ok && id.Name == "C" {
                                name = sel.Sel.Name
                        }
index ec7727de769bc17268350a8d5bdc89f11817c8db..2eeb0a330ac1dadbd0dc023dc3c60b626c61db80 100644 (file)
@@ -16,6 +16,7 @@ import (
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/analysis/passes/inspect"
        "golang.org/x/tools/go/analysis/passes/internal/analysisutil"
+       "golang.org/x/tools/go/ast/astutil"
        "golang.org/x/tools/go/ast/inspector"
        "golang.org/x/tools/internal/typeparams"
 )
@@ -223,7 +224,7 @@ func (path typePath) String() string {
 }
 
 func lockPathRhs(pass *analysis.Pass, x ast.Expr) typePath {
-       x = analysisutil.Unparen(x) // ignore parens on rhs
+       x = astutil.Unparen(x) // ignore parens on rhs
 
        if _, ok := x.(*ast.CompositeLit); ok {
                return nil
@@ -233,7 +234,7 @@ func lockPathRhs(pass *analysis.Pass, x ast.Expr) typePath {
                return nil
        }
        if star, ok := x.(*ast.StarExpr); ok {
-               if _, ok := analysisutil.Unparen(star.X).(*ast.CallExpr); ok {
+               if _, ok := astutil.Unparen(star.X).(*ast.CallExpr); ok {
                        // A call may return a pointer to a zero value.
                        return nil
                }
@@ -319,9 +320,7 @@ func lockPath(tpkg *types.Package, typ types.Type, seen map[types.Type]bool) typ
        // In go1.10, sync.noCopy did not implement Locker.
        // (The Unlock method was added only in CL 121876.)
        // TODO(adonovan): remove workaround when we drop go1.10.
-       if named, ok := typ.(*types.Named); ok &&
-               named.Obj().Name() == "noCopy" &&
-               named.Obj().Pkg().Path() == "sync" {
+       if analysisutil.IsNamedType(typ, "sync", "noCopy") {
                return []string{typ.String()}
        }
 
index ed2a122f2b38e1a0f18f3c9363e5fbea6f31045a..5e8e80a6a77cd210f7caa081c4bdf177a895f4a5 100644 (file)
@@ -7,7 +7,6 @@ package defers
 import (
        _ "embed"
        "go/ast"
-       "go/types"
 
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/analysis/passes/inspect"
@@ -36,8 +35,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
        checkDeferCall := func(node ast.Node) bool {
                switch v := node.(type) {
                case *ast.CallExpr:
-                       fn, ok := typeutil.Callee(pass.TypesInfo, v).(*types.Func)
-                       if ok && fn.Name() == "Since" && fn.Pkg().Path() == "time" {
+                       if analysisutil.IsFunctionNamed(typeutil.StaticCallee(pass.TypesInfo, v), "time", "Since") {
                                pass.Reportf(v.Pos(), "call to time.Since is not deferred")
                        }
                case *ast.FuncLit:
index 1146d7be457f891d50f21e052490e11b958171df..2691f189aaec456a4e71fd670431ca998af4a005 100644 (file)
@@ -124,7 +124,7 @@ func (check *checker) nonGoFile(pos token.Pos, fullText string) {
        for text != "" {
                offset := len(fullText) - len(text)
                var line string
-               line, text, _ = stringsCut(text, "\n")
+               line, text, _ = strings.Cut(text, "\n")
 
                if !inStar && strings.HasPrefix(line, "//") {
                        check.comment(pos+token.Pos(offset), line)
@@ -137,7 +137,7 @@ func (check *checker) nonGoFile(pos token.Pos, fullText string) {
                        line = strings.TrimSpace(line)
                        if inStar {
                                var ok bool
-                               _, line, ok = stringsCut(line, "*/")
+                               _, line, ok = strings.Cut(line, "*/")
                                if !ok {
                                        break
                                }
@@ -200,14 +200,6 @@ func (check *checker) comment(pos token.Pos, line string) {
        }
 }
 
-// Go 1.18 strings.Cut.
-func stringsCut(s, sep string) (before, after string, found bool) {
-       if i := strings.Index(s, sep); i >= 0 {
-               return s[:i], s[i+len(sep):], true
-       }
-       return s, "", false
-}
-
 // Go 1.20 strings.CutPrefix.
 func stringsCutPrefix(s, prefix string) (after string, found bool) {
        if !strings.HasPrefix(s, prefix) {
index 2fcbdfafb648bdf33891efeba9a45e77d21e3195..43996b80a5a0d50e88a882b65a542ced26f28577 100644 (file)
@@ -51,15 +51,12 @@ func run(pass *analysis.Pass) (interface{}, error) {
        inspect.Preorder(nodeFilter, func(n ast.Node) {
                call := n.(*ast.CallExpr)
                fn := typeutil.StaticCallee(pass.TypesInfo, call)
-               if fn == nil {
-                       return // not a static call
+               if !analysisutil.IsFunctionNamed(fn, "errors", "As") {
+                       return
                }
                if len(call.Args) < 2 {
                        return // not enough arguments, e.g. called with return values of another function
                }
-               if fn.FullName() != "errors.As" {
-                       return
-               }
                if err := checkAsTarget(pass, call.Args[1]); err != nil {
                        pass.ReportRangef(call, "%v", err)
                }
index 61c3b764f7fea4a775e4a21b2495b904fb8c7c30..c6b6c81b420aa97b1ce870aa9078df7ea4069209 100644 (file)
@@ -116,7 +116,7 @@ func isHTTPFuncOrMethodOnClient(info *types.Info, expr *ast.CallExpr) bool {
        if res.Len() != 2 {
                return false // the function called does not return two values.
        }
-       if ptr, ok := res.At(0).Type().(*types.Pointer); !ok || !isNamedType(ptr.Elem(), "net/http", "Response") {
+       if ptr, ok := res.At(0).Type().(*types.Pointer); !ok || !analysisutil.IsNamedType(ptr.Elem(), "net/http", "Response") {
                return false // the first return type is not *http.Response.
        }
 
@@ -131,11 +131,11 @@ func isHTTPFuncOrMethodOnClient(info *types.Info, expr *ast.CallExpr) bool {
                return ok && id.Name == "http" // function in net/http package.
        }
 
-       if isNamedType(typ, "net/http", "Client") {
+       if analysisutil.IsNamedType(typ, "net/http", "Client") {
                return true // method on http.Client.
        }
        ptr, ok := typ.(*types.Pointer)
-       return ok && isNamedType(ptr.Elem(), "net/http", "Client") // method on *http.Client.
+       return ok && analysisutil.IsNamedType(ptr.Elem(), "net/http", "Client") // method on *http.Client.
 }
 
 // restOfBlock, given a traversal stack, finds the innermost containing
@@ -171,13 +171,3 @@ func rootIdent(n ast.Node) *ast.Ident {
                return nil
        }
 }
-
-// isNamedType reports whether t is the named type path.name.
-func isNamedType(t types.Type, path, name string) bool {
-       n, ok := t.(*types.Named)
-       if !ok {
-               return false
-       }
-       obj := n.Obj()
-       return obj.Name() == name && obj.Pkg() != nil && obj.Pkg().Path() == path
-}
index a8d84034df1af81939ac8a7efca28a823605d184..c0060753f9f03a47a452d8936e192ebfa5d539aa 100644 (file)
@@ -55,17 +55,6 @@ func HasSideEffects(info *types.Info, e ast.Expr) bool {
        return !safe
 }
 
-// Unparen returns e with any enclosing parentheses stripped.
-func Unparen(e ast.Expr) ast.Expr {
-       for {
-               p, ok := e.(*ast.ParenExpr)
-               if !ok {
-                       return e
-               }
-               e = p.X
-       }
-}
-
 // ReadFile reads a file and adds it to the FileSet
 // so that we can report errors against it using lineStart.
 func ReadFile(fset *token.FileSet, filename string) ([]byte, *token.File, error) {
@@ -118,3 +107,46 @@ func Imports(pkg *types.Package, path string) bool {
        }
        return false
 }
+
+// IsNamedType reports whether t is the named type with the given package path
+// and one of the given names.
+// This function avoids allocating the concatenation of "pkg.Name",
+// which is important for the performance of syntax matching.
+func IsNamedType(t types.Type, pkgPath string, names ...string) bool {
+       n, ok := t.(*types.Named)
+       if !ok {
+               return false
+       }
+       obj := n.Obj()
+       if obj == nil || obj.Pkg() == nil || obj.Pkg().Path() != pkgPath {
+               return false
+       }
+       name := obj.Name()
+       for _, n := range names {
+               if name == n {
+                       return true
+               }
+       }
+       return false
+}
+
+// IsFunctionNamed reports whether f is a top-level function defined in the
+// given package and has one of the given names.
+// It returns false if f is nil or a method.
+func IsFunctionNamed(f *types.Func, pkgPath string, names ...string) bool {
+       if f == nil {
+               return false
+       }
+       if f.Pkg() == nil || f.Pkg().Path() != pkgPath {
+               return false
+       }
+       if f.Type().(*types.Signature).Recv() != nil {
+               return false
+       }
+       for _, n := range names {
+               if f.Name() == n {
+                       return true
+               }
+       }
+       return false
+}
index 5620c35faaaed8d00f3aa44983abcef99a8664e3..fbcdc223dfeb4240d41427c1cefe03298da11a2d 100644 (file)
@@ -359,20 +359,5 @@ func isMethodCall(info *types.Info, expr ast.Expr, pkgPath, typeName, method str
        if ptr, ok := recv.Type().(*types.Pointer); ok {
                rtype = ptr.Elem()
        }
-       named, ok := rtype.(*types.Named)
-       if !ok {
-               return false
-       }
-       if named.Obj().Name() != typeName {
-               return false
-       }
-       pkg := f.Pkg()
-       if pkg == nil {
-               return false
-       }
-       if pkg.Path() != pkgPath {
-               return false
-       }
-
-       return true
+       return analysisutil.IsNamedType(rtype, pkgPath, typeName)
 }
index b2b8c67c75568b71ebcc132847797250c1dd6f75..070654f012440e874869774f8661b9a7818aa8bf 100644 (file)
@@ -511,15 +511,10 @@ func isFormatter(typ types.Type) bool {
        sig := fn.Type().(*types.Signature)
        return sig.Params().Len() == 2 &&
                sig.Results().Len() == 0 &&
-               isNamed(sig.Params().At(0).Type(), "fmt", "State") &&
+               analysisutil.IsNamedType(sig.Params().At(0).Type(), "fmt", "State") &&
                types.Identical(sig.Params().At(1).Type(), types.Typ[types.Rune])
 }
 
-func isNamed(T types.Type, pkgpath, name string) bool {
-       named, ok := T.(*types.Named)
-       return ok && named.Obj().Pkg().Path() == pkgpath && named.Obj().Name() == name
-}
-
 // formatState holds the parsed representation of a printf directive such as "%3.*[4]d".
 // It is constructed by parsePrintfVerb.
 type formatState struct {
index 92c1da8ef4a118a6b6f0d2ebc2bd645c37982db3..a1323c3e666aca28c35476a049e56ef799583e29 100644 (file)
@@ -139,7 +139,7 @@ func run(pass *analysis.Pass) (any, error) {
 }
 
 func isAttr(t types.Type) bool {
-       return isNamed(t, "log/slog", "Attr")
+       return analysisutil.IsNamedType(t, "log/slog", "Attr")
 }
 
 // shortName returns a name for the function that is shorter than FullName.
@@ -232,12 +232,3 @@ func isMethodExpr(info *types.Info, c *ast.CallExpr) bool {
        sel := info.Selections[s]
        return sel != nil && sel.Kind() == types.MethodExpr
 }
-
-// isNamed reports whether t is exactly a named type in a package with a given path.
-func isNamed(t types.Type, path, name string) bool {
-       if n, ok := t.(*types.Named); ok {
-               obj := n.Obj()
-               return obj.Pkg() != nil && obj.Pkg().Path() == path && obj.Name() == name
-       }
-       return false
-}
index 9589a46a5ac5809db95e171120e6a91985bdcc56..d0b0ebb1011fc9b65200f9b68d212dc16a4bf9a3 100644 (file)
@@ -257,13 +257,7 @@ func isTestingType(typ types.Type, testingType string) bool {
        if !ok {
                return false
        }
-       named, ok := ptr.Elem().(*types.Named)
-       if !ok {
-               return false
-       }
-       obj := named.Obj()
-       // obj.Pkg is nil for the error type.
-       return obj != nil && obj.Pkg() != nil && obj.Pkg().Path() == "testing" && obj.Name() == testingType
+       return analysisutil.IsNamedType(ptr.Elem(), "testing", testingType)
 }
 
 // Validate that fuzz target function's arguments are of accepted types.
index c45b9fa54bc24ca36a6f6ee4bc1a1c6b528784a6..eb84502bd99ba2c223240f5001e87679282443d1 100644 (file)
@@ -88,29 +88,16 @@ func run(pass *analysis.Pass) (interface{}, error) {
 }
 
 func isTimeDotFormat(f *types.Func) bool {
-       if f.Name() != "Format" || f.Pkg().Path() != "time" {
-               return false
-       }
-       sig, ok := f.Type().(*types.Signature)
-       if !ok {
+       if f.Name() != "Format" || f.Pkg() == nil || f.Pkg().Path() != "time" {
                return false
        }
        // Verify that the receiver is time.Time.
-       recv := sig.Recv()
-       if recv == nil {
-               return false
-       }
-       named, ok := recv.Type().(*types.Named)
-       return ok && named.Obj().Name() == "Time"
+       recv := f.Type().(*types.Signature).Recv()
+       return recv != nil && analysisutil.IsNamedType(recv.Type(), "time", "Time")
 }
 
 func isTimeDotParse(f *types.Func) bool {
-       if f.Name() != "Parse" || f.Pkg().Path() != "time" {
-               return false
-       }
-       // Verify that there is no receiver.
-       sig, ok := f.Type().(*types.Signature)
-       return ok && sig.Recv() == nil
+       return analysisutil.IsFunctionNamed(f, "time", "Parse")
 }
 
 // badFormatAt return the start of a bad format in e or -1 if no bad format is found.
index e43ac20782e6ebba5ac88ea26984c8ab9384c680..32e71ef979d1f47762f7e03351603154c1364109 100644 (file)
@@ -15,6 +15,7 @@ import (
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/analysis/passes/inspect"
        "golang.org/x/tools/go/analysis/passes/internal/analysisutil"
+       "golang.org/x/tools/go/ast/astutil"
        "golang.org/x/tools/go/ast/inspector"
 )
 
@@ -68,7 +69,7 @@ func isSafeUintptr(info *types.Info, x ast.Expr) bool {
        // Check unsafe.Pointer safety rules according to
        // https://golang.org/pkg/unsafe/#Pointer.
 
-       switch x := analysisutil.Unparen(x).(type) {
+       switch x := astutil.Unparen(x).(type) {
        case *ast.SelectorExpr:
                // "(6) Conversion of a reflect.SliceHeader or
                // reflect.StringHeader Data field to or from Pointer."
@@ -104,8 +105,7 @@ func isSafeUintptr(info *types.Info, x ast.Expr) bool {
                }
                switch sel.Sel.Name {
                case "Pointer", "UnsafeAddr":
-                       t, ok := info.Types[sel.X].Type.(*types.Named)
-                       if ok && t.Obj().Pkg().Path() == "reflect" && t.Obj().Name() == "Value" {
+                       if analysisutil.IsNamedType(info.Types[sel.X].Type, "reflect", "Value") {
                                return true
                        }
                }
@@ -118,7 +118,7 @@ func isSafeUintptr(info *types.Info, x ast.Expr) bool {
 // isSafeArith reports whether x is a pointer arithmetic expression that is safe
 // to convert to unsafe.Pointer.
 func isSafeArith(info *types.Info, x ast.Expr) bool {
-       switch x := analysisutil.Unparen(x).(type) {
+       switch x := astutil.Unparen(x).(type) {
        case *ast.CallExpr:
                // Base case: initial conversion from unsafe.Pointer to uintptr.
                return len(x.Args) == 1 &&
@@ -153,13 +153,5 @@ func hasBasicType(info *types.Info, x ast.Expr, kind types.BasicKind) bool {
 
 // isReflectHeader reports whether t is reflect.SliceHeader or reflect.StringHeader.
 func isReflectHeader(t types.Type) bool {
-       if named, ok := t.(*types.Named); ok {
-               if obj := named.Obj(); obj.Pkg() != nil && obj.Pkg().Path() == "reflect" {
-                       switch obj.Name() {
-                       case "SliceHeader", "StringHeader":
-                               return true
-                       }
-               }
-       }
-       return false
+       return analysisutil.IsNamedType(t, "reflect", "SliceHeader", "StringHeader")
 }
index cb487a217756ae37a08c64ed72e0211003803a44..7f79b4a75435b87b8a17baed21bb9223f034a755 100644 (file)
@@ -24,6 +24,7 @@ import (
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/analysis/passes/inspect"
        "golang.org/x/tools/go/analysis/passes/internal/analysisutil"
+       "golang.org/x/tools/go/ast/astutil"
        "golang.org/x/tools/go/ast/inspector"
        "golang.org/x/tools/go/types/typeutil"
 )
@@ -82,7 +83,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
                (*ast.ExprStmt)(nil),
        }
        inspect.Preorder(nodeFilter, func(n ast.Node) {
-               call, ok := analysisutil.Unparen(n.(*ast.ExprStmt).X).(*ast.CallExpr)
+               call, ok := astutil.Unparen(n.(*ast.ExprStmt).X).(*ast.CallExpr)
                if !ok {
                        return // not a call statement
                }
@@ -92,7 +93,6 @@ func run(pass *analysis.Pass) (interface{}, error) {
                if !ok {
                        return // e.g. var or builtin
                }
-
                if sig := fn.Type().(*types.Signature); sig.Recv() != nil {
                        // method (e.g. foo.String())
                        if types.Identical(sig, sigNoArgsStringResult) {
index 53c3f4a806ca1ae1be2845abed301d25e2fc3a32..0a40652c1b5909c4e4dbd8a0b72ef07c988236c4 100644 (file)
@@ -319,7 +319,7 @@ func run(fset *token.FileSet, cfg *Config, analyzers []*analysis.Analyzer) ([]re
        analyzers = filtered
 
        // Read facts from imported packages.
-       facts, err := facts.NewDecoder(pkg).Decode(false, makeFactImporter(cfg))
+       facts, err := facts.NewDecoder(pkg).Decode(makeFactImporter(cfg))
        if err != nil {
                return nil, err
        }
@@ -418,7 +418,7 @@ func run(fset *token.FileSet, cfg *Config, analyzers []*analysis.Analyzer) ([]re
                results[i].diagnostics = act.diagnostics
        }
 
-       data := facts.Encode(false)
+       data := facts.Encode()
        if err := exportFacts(cfg, data); err != nil {
                return nil, fmt.Errorf("failed to export analysis facts: %v", err)
        }
index fa5834baf72baff9b4fc08a54b3510e0a8b6db07..e742ecc464403508201d25fbbad0925ef8ab11ac 100644 (file)
@@ -26,13 +26,10 @@ package objectpath
 import (
        "fmt"
        "go/types"
-       "sort"
        "strconv"
        "strings"
-       _ "unsafe"
 
        "golang.org/x/tools/internal/typeparams"
-       "golang.org/x/tools/internal/typesinternal"
 )
 
 // A Path is an opaque name that identifies a types.Object
@@ -123,20 +120,7 @@ func For(obj types.Object) (Path, error) {
 // An Encoder amortizes the cost of encoding the paths of multiple objects.
 // The zero value of an Encoder is ready to use.
 type Encoder struct {
-       scopeMemo         map[*types.Scope][]types.Object // memoization of scopeObjects
-       namedMethodsMemo  map[*types.Named][]*types.Func  // memoization of namedMethods()
-       skipMethodSorting bool
-}
-
-// Expose back doors so that gopls can avoid method sorting, which can dominate
-// analysis on certain repositories.
-//
-// TODO(golang/go#61443): remove this.
-func init() {
-       typesinternal.SkipEncoderMethodSorting = func(enc interface{}) {
-               enc.(*Encoder).skipMethodSorting = true
-       }
-       typesinternal.ObjectpathObject = object
+       scopeMemo map[*types.Scope][]types.Object // memoization of scopeObjects
 }
 
 // For returns the path to an object relative to its package,
@@ -328,31 +312,18 @@ func (enc *Encoder) For(obj types.Object) (Path, error) {
                // Inspect declared methods of defined types.
                if T, ok := o.Type().(*types.Named); ok {
                        path = append(path, opType)
-                       if !enc.skipMethodSorting {
-                               // Note that method index here is always with respect
-                               // to canonical ordering of methods, regardless of how
-                               // they appear in the underlying type.
-                               for i, m := range enc.namedMethods(T) {
-                                       path2 := appendOpArg(path, opMethod, i)
-                                       if m == obj {
-                                               return Path(path2), nil // found declared method
-                                       }
-                                       if r := find(obj, m.Type(), append(path2, opType), nil); r != nil {
-                                               return Path(r), nil
-                                       }
+                       // The method index here is always with respect
+                       // to the underlying go/types data structures,
+                       // which ultimately derives from source order
+                       // and must be preserved by export data.
+                       for i := 0; i < T.NumMethods(); i++ {
+                               m := T.Method(i)
+                               path2 := appendOpArg(path, opMethod, i)
+                               if m == obj {
+                                       return Path(path2), nil // found declared method
                                }
-                       } else {
-                               // This branch must match the logic in the branch above, using go/types
-                               // APIs without sorting.
-                               for i := 0; i < T.NumMethods(); i++ {
-                                       m := T.Method(i)
-                                       path2 := appendOpArg(path, opMethod, i)
-                                       if m == obj {
-                                               return Path(path2), nil // found declared method
-                                       }
-                                       if r := find(obj, m.Type(), append(path2, opType), nil); r != nil {
-                                               return Path(r), nil
-                                       }
+                               if r := find(obj, m.Type(), append(path2, opType), nil); r != nil {
+                                       return Path(r), nil
                                }
                        }
                }
@@ -448,22 +419,13 @@ func (enc *Encoder) concreteMethod(meth *types.Func) (Path, bool) {
        path = append(path, name...)
        path = append(path, opType)
 
-       if !enc.skipMethodSorting {
-               for i, m := range enc.namedMethods(named) {
-                       if m == meth {
-                               path = appendOpArg(path, opMethod, i)
-                               return Path(path), true
-                       }
-               }
-       } else {
-               // This branch must match the logic of the branch above, using go/types
-               // APIs without sorting.
-               for i := 0; i < named.NumMethods(); i++ {
-                       m := named.Method(i)
-                       if m == meth {
-                               path = appendOpArg(path, opMethod, i)
-                               return Path(path), true
-                       }
+       // Method indices are w.r.t. the go/types data structures,
+       // ultimately deriving from source order,
+       // which is preserved by export data.
+       for i := 0; i < named.NumMethods(); i++ {
+               if named.Method(i) == meth {
+                       path = appendOpArg(path, opMethod, i)
+                       return Path(path), true
                }
        }
 
@@ -576,12 +538,7 @@ func findTypeParam(obj types.Object, list *typeparams.TypeParamList, path []byte
 
 // Object returns the object denoted by path p within the package pkg.
 func Object(pkg *types.Package, p Path) (types.Object, error) {
-       return object(pkg, string(p), false)
-}
-
-// Note: the skipMethodSorting parameter must match the value of
-// Encoder.skipMethodSorting used during encoding.
-func object(pkg *types.Package, pathstr string, skipMethodSorting bool) (types.Object, error) {
+       pathstr := string(p)
        if pathstr == "" {
                return nil, fmt.Errorf("empty path")
        }
@@ -747,12 +704,7 @@ func object(pkg *types.Package, pathstr string, skipMethodSorting bool) (types.O
                                if index >= t.NumMethods() {
                                        return nil, fmt.Errorf("method index %d out of range [0-%d)", index, t.NumMethods())
                                }
-                               if skipMethodSorting {
-                                       obj = t.Method(index)
-                               } else {
-                                       methods := namedMethods(t) // (unmemoized)
-                                       obj = methods[index]       // Id-ordered
-                               }
+                               obj = t.Method(index)
 
                        default:
                                return nil, fmt.Errorf("cannot apply %q to %s (got %T, want interface or named)", code, t, t)
@@ -779,33 +731,6 @@ func object(pkg *types.Package, pathstr string, skipMethodSorting bool) (types.O
        return obj, nil // success
 }
 
-// namedMethods returns the methods of a Named type in ascending Id order.
-func namedMethods(named *types.Named) []*types.Func {
-       methods := make([]*types.Func, named.NumMethods())
-       for i := range methods {
-               methods[i] = named.Method(i)
-       }
-       sort.Slice(methods, func(i, j int) bool {
-               return methods[i].Id() < methods[j].Id()
-       })
-       return methods
-}
-
-// namedMethods is a memoization of the namedMethods function. Callers must not modify the result.
-func (enc *Encoder) namedMethods(named *types.Named) []*types.Func {
-       m := enc.namedMethodsMemo
-       if m == nil {
-               m = make(map[*types.Named][]*types.Func)
-               enc.namedMethodsMemo = m
-       }
-       methods, ok := m[named]
-       if !ok {
-               methods = namedMethods(named) // allocates and sorts
-               m[named] = methods
-       }
-       return methods
-}
-
 // scopeObjects is a memoization of scope objects.
 // Callers must not modify the result.
 func (enc *Encoder) scopeObjects(scope *types.Scope) []types.Object {
index 8480ea062f7dd468dec6b279f7a97e652c47e926..f0aa97ec1bfa54ee95d93764e725027fc4eae791 100644 (file)
@@ -48,7 +48,6 @@ import (
 
        "golang.org/x/tools/go/analysis"
        "golang.org/x/tools/go/types/objectpath"
-       "golang.org/x/tools/internal/typesinternal"
 )
 
 const debug = false
@@ -205,9 +204,7 @@ type GetPackageFunc = func(pkgPath string) *types.Package
 //
 // Concurrent calls to Decode are safe, so long as the
 // [GetPackageFunc] (if any) is also concurrency-safe.
-//
-// TODO(golang/go#61443): eliminate skipMethodSorting one way or the other.
-func (d *Decoder) Decode(skipMethodSorting bool, read func(pkgPath string) ([]byte, error)) (*Set, error) {
+func (d *Decoder) Decode(read func(pkgPath string) ([]byte, error)) (*Set, error) {
        // Read facts from imported packages.
        // Facts may describe indirectly imported packages, or their objects.
        m := make(map[key]analysis.Fact) // one big bucket
@@ -247,7 +244,7 @@ func (d *Decoder) Decode(skipMethodSorting bool, read func(pkgPath string) ([]by
                        key := key{pkg: factPkg, t: reflect.TypeOf(f.Fact)}
                        if f.Object != "" {
                                // object fact
-                               obj, err := typesinternal.ObjectpathObject(factPkg, string(f.Object), skipMethodSorting)
+                               obj, err := objectpath.Object(factPkg, f.Object)
                                if err != nil {
                                        // (most likely due to unexported object)
                                        // TODO(adonovan): audit for other possibilities.
@@ -271,11 +268,8 @@ func (d *Decoder) Decode(skipMethodSorting bool, read func(pkgPath string) ([]by
 //
 // It may fail if one of the Facts could not be gob-encoded, but this is
 // a sign of a bug in an Analyzer.
-func (s *Set) Encode(skipMethodSorting bool) []byte {
+func (s *Set) Encode() []byte {
        encoder := new(objectpath.Encoder)
-       if skipMethodSorting {
-               typesinternal.SkipEncoderMethodSorting(encoder)
-       }
 
        // TODO(adonovan): opt: use a more efficient encoding
        // that avoids repeating PkgPath for each fact.
diff --git a/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go b/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
deleted file mode 100644 (file)
index 0748407..0000000
+++ /dev/null
@@ -1,1560 +0,0 @@
-// Copyright 2020 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package typesinternal
-
-//go:generate stringer -type=ErrorCode
-
-type ErrorCode int
-
-// This file defines the error codes that can be produced during type-checking.
-// Collectively, these codes provide an identifier that may be used to
-// implement special handling for certain types of errors.
-//
-// Error codes should be fine-grained enough that the exact nature of the error
-// can be easily determined, but coarse enough that they are not an
-// implementation detail of the type checking algorithm. As a rule-of-thumb,
-// errors should be considered equivalent if there is a theoretical refactoring
-// of the type checker in which they are emitted in exactly one place. For
-// example, the type checker emits different error messages for "too many
-// arguments" and "too few arguments", but one can imagine an alternative type
-// checker where this check instead just emits a single "wrong number of
-// arguments", so these errors should have the same code.
-//
-// Error code names should be as brief as possible while retaining accuracy and
-// distinctiveness. In most cases names should start with an adjective
-// describing the nature of the error (e.g. "invalid", "unused", "misplaced"),
-// and end with a noun identifying the relevant language object. For example,
-// "DuplicateDecl" or "InvalidSliceExpr". For brevity, naming follows the
-// convention that "bad" implies a problem with syntax, and "invalid" implies a
-// problem with types.
-
-const (
-       // InvalidSyntaxTree occurs if an invalid syntax tree is provided
-       // to the type checker. It should never happen.
-       InvalidSyntaxTree ErrorCode = -1
-)
-
-const (
-       _ ErrorCode = iota
-
-       // Test is reserved for errors that only apply while in self-test mode.
-       Test
-
-       /* package names */
-
-       // BlankPkgName occurs when a package name is the blank identifier "_".
-       //
-       // Per the spec:
-       //  "The PackageName must not be the blank identifier."
-       BlankPkgName
-
-       // MismatchedPkgName occurs when a file's package name doesn't match the
-       // package name already established by other files.
-       MismatchedPkgName
-
-       // InvalidPkgUse occurs when a package identifier is used outside of a
-       // selector expression.
-       //
-       // Example:
-       //  import "fmt"
-       //
-       //  var _ = fmt
-       InvalidPkgUse
-
-       /* imports */
-
-       // BadImportPath occurs when an import path is not valid.
-       BadImportPath
-
-       // BrokenImport occurs when importing a package fails.
-       //
-       // Example:
-       //  import "amissingpackage"
-       BrokenImport
-
-       // ImportCRenamed occurs when the special import "C" is renamed. "C" is a
-       // pseudo-package, and must not be renamed.
-       //
-       // Example:
-       //  import _ "C"
-       ImportCRenamed
-
-       // UnusedImport occurs when an import is unused.
-       //
-       // Example:
-       //  import "fmt"
-       //
-       //  func main() {}
-       UnusedImport
-
-       /* initialization */
-
-       // InvalidInitCycle occurs when an invalid cycle is detected within the
-       // initialization graph.
-       //
-       // Example:
-       //  var x int = f()
-       //
-       //  func f() int { return x }
-       InvalidInitCycle
-
-       /* decls */
-
-       // DuplicateDecl occurs when an identifier is declared multiple times.
-       //
-       // Example:
-       //  var x = 1
-       //  var x = 2
-       DuplicateDecl
-
-       // InvalidDeclCycle occurs when a declaration cycle is not valid.
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  type T struct {
-       //      a [n]int
-       //  }
-       //
-       //  var n = unsafe.Sizeof(T{})
-       InvalidDeclCycle
-
-       // InvalidTypeCycle occurs when a cycle in type definitions results in a
-       // type that is not well-defined.
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  type T [unsafe.Sizeof(T{})]int
-       InvalidTypeCycle
-
-       /* decls > const */
-
-       // InvalidConstInit occurs when a const declaration has a non-constant
-       // initializer.
-       //
-       // Example:
-       //  var x int
-       //  const _ = x
-       InvalidConstInit
-
-       // InvalidConstVal occurs when a const value cannot be converted to its
-       // target type.
-       //
-       // TODO(findleyr): this error code and example are not very clear. Consider
-       // removing it.
-       //
-       // Example:
-       //  const _ = 1 << "hello"
-       InvalidConstVal
-
-       // InvalidConstType occurs when the underlying type in a const declaration
-       // is not a valid constant type.
-       //
-       // Example:
-       //  const c *int = 4
-       InvalidConstType
-
-       /* decls > var (+ other variable assignment codes) */
-
-       // UntypedNilUse occurs when the predeclared (untyped) value nil is used to
-       // initialize a variable declared without an explicit type.
-       //
-       // Example:
-       //  var x = nil
-       UntypedNilUse
-
-       // WrongAssignCount occurs when the number of values on the right-hand side
-       // of an assignment or or initialization expression does not match the number
-       // of variables on the left-hand side.
-       //
-       // Example:
-       //  var x = 1, 2
-       WrongAssignCount
-
-       // UnassignableOperand occurs when the left-hand side of an assignment is
-       // not assignable.
-       //
-       // Example:
-       //  func f() {
-       //      const c = 1
-       //      c = 2
-       //  }
-       UnassignableOperand
-
-       // NoNewVar occurs when a short variable declaration (':=') does not declare
-       // new variables.
-       //
-       // Example:
-       //  func f() {
-       //      x := 1
-       //      x := 2
-       //  }
-       NoNewVar
-
-       // MultiValAssignOp occurs when an assignment operation (+=, *=, etc) does
-       // not have single-valued left-hand or right-hand side.
-       //
-       // Per the spec:
-       //  "In assignment operations, both the left- and right-hand expression lists
-       //  must contain exactly one single-valued expression"
-       //
-       // Example:
-       //  func f() int {
-       //      x, y := 1, 2
-       //      x, y += 1
-       //      return x + y
-       //  }
-       MultiValAssignOp
-
-       // InvalidIfaceAssign occurs when a value of type T is used as an
-       // interface, but T does not implement a method of the expected interface.
-       //
-       // Example:
-       //  type I interface {
-       //      f()
-       //  }
-       //
-       //  type T int
-       //
-       //  var x I = T(1)
-       InvalidIfaceAssign
-
-       // InvalidChanAssign occurs when a chan assignment is invalid.
-       //
-       // Per the spec, a value x is assignable to a channel type T if:
-       //  "x is a bidirectional channel value, T is a channel type, x's type V and
-       //  T have identical element types, and at least one of V or T is not a
-       //  defined type."
-       //
-       // Example:
-       //  type T1 chan int
-       //  type T2 chan int
-       //
-       //  var x T1
-       //  // Invalid assignment because both types are named
-       //  var _ T2 = x
-       InvalidChanAssign
-
-       // IncompatibleAssign occurs when the type of the right-hand side expression
-       // in an assignment cannot be assigned to the type of the variable being
-       // assigned.
-       //
-       // Example:
-       //  var x []int
-       //  var _ int = x
-       IncompatibleAssign
-
-       // UnaddressableFieldAssign occurs when trying to assign to a struct field
-       // in a map value.
-       //
-       // Example:
-       //  func f() {
-       //      m := make(map[string]struct{i int})
-       //      m["foo"].i = 42
-       //  }
-       UnaddressableFieldAssign
-
-       /* decls > type (+ other type expression codes) */
-
-       // NotAType occurs when the identifier used as the underlying type in a type
-       // declaration or the right-hand side of a type alias does not denote a type.
-       //
-       // Example:
-       //  var S = 2
-       //
-       //  type T S
-       NotAType
-
-       // InvalidArrayLen occurs when an array length is not a constant value.
-       //
-       // Example:
-       //  var n = 3
-       //  var _ = [n]int{}
-       InvalidArrayLen
-
-       // BlankIfaceMethod occurs when a method name is '_'.
-       //
-       // Per the spec:
-       //  "The name of each explicitly specified method must be unique and not
-       //  blank."
-       //
-       // Example:
-       //  type T interface {
-       //      _(int)
-       //  }
-       BlankIfaceMethod
-
-       // IncomparableMapKey occurs when a map key type does not support the == and
-       // != operators.
-       //
-       // Per the spec:
-       //  "The comparison operators == and != must be fully defined for operands of
-       //  the key type; thus the key type must not be a function, map, or slice."
-       //
-       // Example:
-       //  var x map[T]int
-       //
-       //  type T []int
-       IncomparableMapKey
-
-       // InvalidIfaceEmbed occurs when a non-interface type is embedded in an
-       // interface.
-       //
-       // Example:
-       //  type T struct {}
-       //
-       //  func (T) m()
-       //
-       //  type I interface {
-       //      T
-       //  }
-       InvalidIfaceEmbed
-
-       // InvalidPtrEmbed occurs when an embedded field is of the pointer form *T,
-       // and T itself is itself a pointer, an unsafe.Pointer, or an interface.
-       //
-       // Per the spec:
-       //  "An embedded field must be specified as a type name T or as a pointer to
-       //  a non-interface type name *T, and T itself may not be a pointer type."
-       //
-       // Example:
-       //  type T *int
-       //
-       //  type S struct {
-       //      *T
-       //  }
-       InvalidPtrEmbed
-
-       /* decls > func and method */
-
-       // BadRecv occurs when a method declaration does not have exactly one
-       // receiver parameter.
-       //
-       // Example:
-       //  func () _() {}
-       BadRecv
-
-       // InvalidRecv occurs when a receiver type expression is not of the form T
-       // or *T, or T is a pointer type.
-       //
-       // Example:
-       //  type T struct {}
-       //
-       //  func (**T) m() {}
-       InvalidRecv
-
-       // DuplicateFieldAndMethod occurs when an identifier appears as both a field
-       // and method name.
-       //
-       // Example:
-       //  type T struct {
-       //      m int
-       //  }
-       //
-       //  func (T) m() {}
-       DuplicateFieldAndMethod
-
-       // DuplicateMethod occurs when two methods on the same receiver type have
-       // the same name.
-       //
-       // Example:
-       //  type T struct {}
-       //  func (T) m() {}
-       //  func (T) m(i int) int { return i }
-       DuplicateMethod
-
-       /* decls > special */
-
-       // InvalidBlank occurs when a blank identifier is used as a value or type.
-       //
-       // Per the spec:
-       //  "The blank identifier may appear as an operand only on the left-hand side
-       //  of an assignment."
-       //
-       // Example:
-       //  var x = _
-       InvalidBlank
-
-       // InvalidIota occurs when the predeclared identifier iota is used outside
-       // of a constant declaration.
-       //
-       // Example:
-       //  var x = iota
-       InvalidIota
-
-       // MissingInitBody occurs when an init function is missing its body.
-       //
-       // Example:
-       //  func init()
-       MissingInitBody
-
-       // InvalidInitSig occurs when an init function declares parameters or
-       // results.
-       //
-       // Example:
-       //  func init() int { return 1 }
-       InvalidInitSig
-
-       // InvalidInitDecl occurs when init is declared as anything other than a
-       // function.
-       //
-       // Example:
-       //  var init = 1
-       InvalidInitDecl
-
-       // InvalidMainDecl occurs when main is declared as anything other than a
-       // function, in a main package.
-       InvalidMainDecl
-
-       /* exprs */
-
-       // TooManyValues occurs when a function returns too many values for the
-       // expression context in which it is used.
-       //
-       // Example:
-       //  func ReturnTwo() (int, int) {
-       //      return 1, 2
-       //  }
-       //
-       //  var x = ReturnTwo()
-       TooManyValues
-
-       // NotAnExpr occurs when a type expression is used where a value expression
-       // is expected.
-       //
-       // Example:
-       //  type T struct {}
-       //
-       //  func f() {
-       //      T
-       //  }
-       NotAnExpr
-
-       /* exprs > const */
-
-       // TruncatedFloat occurs when a float constant is truncated to an integer
-       // value.
-       //
-       // Example:
-       //  var _ int = 98.6
-       TruncatedFloat
-
-       // NumericOverflow occurs when a numeric constant overflows its target type.
-       //
-       // Example:
-       //  var x int8 = 1000
-       NumericOverflow
-
-       /* exprs > operation */
-
-       // UndefinedOp occurs when an operator is not defined for the type(s) used
-       // in an operation.
-       //
-       // Example:
-       //  var c = "a" - "b"
-       UndefinedOp
-
-       // MismatchedTypes occurs when operand types are incompatible in a binary
-       // operation.
-       //
-       // Example:
-       //  var a = "hello"
-       //  var b = 1
-       //  var c = a - b
-       MismatchedTypes
-
-       // DivByZero occurs when a division operation is provable at compile
-       // time to be a division by zero.
-       //
-       // Example:
-       //  const divisor = 0
-       //  var x int = 1/divisor
-       DivByZero
-
-       // NonNumericIncDec occurs when an increment or decrement operator is
-       // applied to a non-numeric value.
-       //
-       // Example:
-       //  func f() {
-       //      var c = "c"
-       //      c++
-       //  }
-       NonNumericIncDec
-
-       /* exprs > ptr */
-
-       // UnaddressableOperand occurs when the & operator is applied to an
-       // unaddressable expression.
-       //
-       // Example:
-       //  var x = &1
-       UnaddressableOperand
-
-       // InvalidIndirection occurs when a non-pointer value is indirected via the
-       // '*' operator.
-       //
-       // Example:
-       //  var x int
-       //  var y = *x
-       InvalidIndirection
-
-       /* exprs > [] */
-
-       // NonIndexableOperand occurs when an index operation is applied to a value
-       // that cannot be indexed.
-       //
-       // Example:
-       //  var x = 1
-       //  var y = x[1]
-       NonIndexableOperand
-
-       // InvalidIndex occurs when an index argument is not of integer type,
-       // negative, or out-of-bounds.
-       //
-       // Example:
-       //  var s = [...]int{1,2,3}
-       //  var x = s[5]
-       //
-       // Example:
-       //  var s = []int{1,2,3}
-       //  var _ = s[-1]
-       //
-       // Example:
-       //  var s = []int{1,2,3}
-       //  var i string
-       //  var _ = s[i]
-       InvalidIndex
-
-       // SwappedSliceIndices occurs when constant indices in a slice expression
-       // are decreasing in value.
-       //
-       // Example:
-       //  var _ = []int{1,2,3}[2:1]
-       SwappedSliceIndices
-
-       /* operators > slice */
-
-       // NonSliceableOperand occurs when a slice operation is applied to a value
-       // whose type is not sliceable, or is unaddressable.
-       //
-       // Example:
-       //  var x = [...]int{1, 2, 3}[:1]
-       //
-       // Example:
-       //  var x = 1
-       //  var y = 1[:1]
-       NonSliceableOperand
-
-       // InvalidSliceExpr occurs when a three-index slice expression (a[x:y:z]) is
-       // applied to a string.
-       //
-       // Example:
-       //  var s = "hello"
-       //  var x = s[1:2:3]
-       InvalidSliceExpr
-
-       /* exprs > shift */
-
-       // InvalidShiftCount occurs when the right-hand side of a shift operation is
-       // either non-integer, negative, or too large.
-       //
-       // Example:
-       //  var (
-       //      x string
-       //      y int = 1 << x
-       //  )
-       InvalidShiftCount
-
-       // InvalidShiftOperand occurs when the shifted operand is not an integer.
-       //
-       // Example:
-       //  var s = "hello"
-       //  var x = s << 2
-       InvalidShiftOperand
-
-       /* exprs > chan */
-
-       // InvalidReceive occurs when there is a channel receive from a value that
-       // is either not a channel, or is a send-only channel.
-       //
-       // Example:
-       //  func f() {
-       //      var x = 1
-       //      <-x
-       //  }
-       InvalidReceive
-
-       // InvalidSend occurs when there is a channel send to a value that is not a
-       // channel, or is a receive-only channel.
-       //
-       // Example:
-       //  func f() {
-       //      var x = 1
-       //      x <- "hello!"
-       //  }
-       InvalidSend
-
-       /* exprs > literal */
-
-       // DuplicateLitKey occurs when an index is duplicated in a slice, array, or
-       // map literal.
-       //
-       // Example:
-       //  var _ = []int{0:1, 0:2}
-       //
-       // Example:
-       //  var _ = map[string]int{"a": 1, "a": 2}
-       DuplicateLitKey
-
-       // MissingLitKey occurs when a map literal is missing a key expression.
-       //
-       // Example:
-       //  var _ = map[string]int{1}
-       MissingLitKey
-
-       // InvalidLitIndex occurs when the key in a key-value element of a slice or
-       // array literal is not an integer constant.
-       //
-       // Example:
-       //  var i = 0
-       //  var x = []string{i: "world"}
-       InvalidLitIndex
-
-       // OversizeArrayLit occurs when an array literal exceeds its length.
-       //
-       // Example:
-       //  var _ = [2]int{1,2,3}
-       OversizeArrayLit
-
-       // MixedStructLit occurs when a struct literal contains a mix of positional
-       // and named elements.
-       //
-       // Example:
-       //  var _ = struct{i, j int}{i: 1, 2}
-       MixedStructLit
-
-       // InvalidStructLit occurs when a positional struct literal has an incorrect
-       // number of values.
-       //
-       // Example:
-       //  var _ = struct{i, j int}{1,2,3}
-       InvalidStructLit
-
-       // MissingLitField occurs when a struct literal refers to a field that does
-       // not exist on the struct type.
-       //
-       // Example:
-       //  var _ = struct{i int}{j: 2}
-       MissingLitField
-
-       // DuplicateLitField occurs when a struct literal contains duplicated
-       // fields.
-       //
-       // Example:
-       //  var _ = struct{i int}{i: 1, i: 2}
-       DuplicateLitField
-
-       // UnexportedLitField occurs when a positional struct literal implicitly
-       // assigns an unexported field of an imported type.
-       UnexportedLitField
-
-       // InvalidLitField occurs when a field name is not a valid identifier.
-       //
-       // Example:
-       //  var _ = struct{i int}{1: 1}
-       InvalidLitField
-
-       // UntypedLit occurs when a composite literal omits a required type
-       // identifier.
-       //
-       // Example:
-       //  type outer struct{
-       //      inner struct { i int }
-       //  }
-       //
-       //  var _ = outer{inner: {1}}
-       UntypedLit
-
-       // InvalidLit occurs when a composite literal expression does not match its
-       // type.
-       //
-       // Example:
-       //  type P *struct{
-       //      x int
-       //  }
-       //  var _ = P {}
-       InvalidLit
-
-       /* exprs > selector */
-
-       // AmbiguousSelector occurs when a selector is ambiguous.
-       //
-       // Example:
-       //  type E1 struct { i int }
-       //  type E2 struct { i int }
-       //  type T struct { E1; E2 }
-       //
-       //  var x T
-       //  var _ = x.i
-       AmbiguousSelector
-
-       // UndeclaredImportedName occurs when a package-qualified identifier is
-       // undeclared by the imported package.
-       //
-       // Example:
-       //  import "go/types"
-       //
-       //  var _ = types.NotAnActualIdentifier
-       UndeclaredImportedName
-
-       // UnexportedName occurs when a selector refers to an unexported identifier
-       // of an imported package.
-       //
-       // Example:
-       //  import "reflect"
-       //
-       //  type _ reflect.flag
-       UnexportedName
-
-       // UndeclaredName occurs when an identifier is not declared in the current
-       // scope.
-       //
-       // Example:
-       //  var x T
-       UndeclaredName
-
-       // MissingFieldOrMethod occurs when a selector references a field or method
-       // that does not exist.
-       //
-       // Example:
-       //  type T struct {}
-       //
-       //  var x = T{}.f
-       MissingFieldOrMethod
-
-       /* exprs > ... */
-
-       // BadDotDotDotSyntax occurs when a "..." occurs in a context where it is
-       // not valid.
-       //
-       // Example:
-       //  var _ = map[int][...]int{0: {}}
-       BadDotDotDotSyntax
-
-       // NonVariadicDotDotDot occurs when a "..." is used on the final argument to
-       // a non-variadic function.
-       //
-       // Example:
-       //  func printArgs(s []string) {
-       //      for _, a := range s {
-       //              println(a)
-       //      }
-       //  }
-       //
-       //  func f() {
-       //      s := []string{"a", "b", "c"}
-       //      printArgs(s...)
-       //  }
-       NonVariadicDotDotDot
-
-       // MisplacedDotDotDot occurs when a "..." is used somewhere other than the
-       // final argument to a function call.
-       //
-       // Example:
-       //  func printArgs(args ...int) {
-       //      for _, a := range args {
-       //              println(a)
-       //      }
-       //  }
-       //
-       //  func f() {
-       //      a := []int{1,2,3}
-       //      printArgs(0, a...)
-       //  }
-       MisplacedDotDotDot
-
-       // InvalidDotDotDotOperand occurs when a "..." operator is applied to a
-       // single-valued operand.
-       //
-       // Example:
-       //  func printArgs(args ...int) {
-       //      for _, a := range args {
-       //              println(a)
-       //      }
-       //  }
-       //
-       //  func f() {
-       //      a := 1
-       //      printArgs(a...)
-       //  }
-       //
-       // Example:
-       //  func args() (int, int) {
-       //      return 1, 2
-       //  }
-       //
-       //  func printArgs(args ...int) {
-       //      for _, a := range args {
-       //              println(a)
-       //      }
-       //  }
-       //
-       //  func g() {
-       //      printArgs(args()...)
-       //  }
-       InvalidDotDotDotOperand
-
-       // InvalidDotDotDot occurs when a "..." is used in a non-variadic built-in
-       // function.
-       //
-       // Example:
-       //  var s = []int{1, 2, 3}
-       //  var l = len(s...)
-       InvalidDotDotDot
-
-       /* exprs > built-in */
-
-       // UncalledBuiltin occurs when a built-in function is used as a
-       // function-valued expression, instead of being called.
-       //
-       // Per the spec:
-       //  "The built-in functions do not have standard Go types, so they can only
-       //  appear in call expressions; they cannot be used as function values."
-       //
-       // Example:
-       //  var _ = copy
-       UncalledBuiltin
-
-       // InvalidAppend occurs when append is called with a first argument that is
-       // not a slice.
-       //
-       // Example:
-       //  var _ = append(1, 2)
-       InvalidAppend
-
-       // InvalidCap occurs when an argument to the cap built-in function is not of
-       // supported type.
-       //
-       // See https://golang.org/ref/spec#Lengthand_capacity for information on
-       // which underlying types are supported as arguments to cap and len.
-       //
-       // Example:
-       //  var s = 2
-       //  var x = cap(s)
-       InvalidCap
-
-       // InvalidClose occurs when close(...) is called with an argument that is
-       // not of channel type, or that is a receive-only channel.
-       //
-       // Example:
-       //  func f() {
-       //      var x int
-       //      close(x)
-       //  }
-       InvalidClose
-
-       // InvalidCopy occurs when the arguments are not of slice type or do not
-       // have compatible type.
-       //
-       // See https://golang.org/ref/spec#Appendingand_copying_slices for more
-       // information on the type requirements for the copy built-in.
-       //
-       // Example:
-       //  func f() {
-       //      var x []int
-       //      y := []int64{1,2,3}
-       //      copy(x, y)
-       //  }
-       InvalidCopy
-
-       // InvalidComplex occurs when the complex built-in function is called with
-       // arguments with incompatible types.
-       //
-       // Example:
-       //  var _ = complex(float32(1), float64(2))
-       InvalidComplex
-
-       // InvalidDelete occurs when the delete built-in function is called with a
-       // first argument that is not a map.
-       //
-       // Example:
-       //  func f() {
-       //      m := "hello"
-       //      delete(m, "e")
-       //  }
-       InvalidDelete
-
-       // InvalidImag occurs when the imag built-in function is called with an
-       // argument that does not have complex type.
-       //
-       // Example:
-       //  var _ = imag(int(1))
-       InvalidImag
-
-       // InvalidLen occurs when an argument to the len built-in function is not of
-       // supported type.
-       //
-       // See https://golang.org/ref/spec#Lengthand_capacity for information on
-       // which underlying types are supported as arguments to cap and len.
-       //
-       // Example:
-       //  var s = 2
-       //  var x = len(s)
-       InvalidLen
-
-       // SwappedMakeArgs occurs when make is called with three arguments, and its
-       // length argument is larger than its capacity argument.
-       //
-       // Example:
-       //  var x = make([]int, 3, 2)
-       SwappedMakeArgs
-
-       // InvalidMake occurs when make is called with an unsupported type argument.
-       //
-       // See https://golang.org/ref/spec#Makingslices_maps_and_channels for
-       // information on the types that may be created using make.
-       //
-       // Example:
-       //  var x = make(int)
-       InvalidMake
-
-       // InvalidReal occurs when the real built-in function is called with an
-       // argument that does not have complex type.
-       //
-       // Example:
-       //  var _ = real(int(1))
-       InvalidReal
-
-       /* exprs > assertion */
-
-       // InvalidAssert occurs when a type assertion is applied to a
-       // value that is not of interface type.
-       //
-       // Example:
-       //  var x = 1
-       //  var _ = x.(float64)
-       InvalidAssert
-
-       // ImpossibleAssert occurs for a type assertion x.(T) when the value x of
-       // interface cannot have dynamic type T, due to a missing or mismatching
-       // method on T.
-       //
-       // Example:
-       //  type T int
-       //
-       //  func (t *T) m() int { return int(*t) }
-       //
-       //  type I interface { m() int }
-       //
-       //  var x I
-       //  var _ = x.(T)
-       ImpossibleAssert
-
-       /* exprs > conversion */
-
-       // InvalidConversion occurs when the argument type cannot be converted to the
-       // target.
-       //
-       // See https://golang.org/ref/spec#Conversions for the rules of
-       // convertibility.
-       //
-       // Example:
-       //  var x float64
-       //  var _ = string(x)
-       InvalidConversion
-
-       // InvalidUntypedConversion occurs when an there is no valid implicit
-       // conversion from an untyped value satisfying the type constraints of the
-       // context in which it is used.
-       //
-       // Example:
-       //  var _ = 1 + ""
-       InvalidUntypedConversion
-
-       /* offsetof */
-
-       // BadOffsetofSyntax occurs when unsafe.Offsetof is called with an argument
-       // that is not a selector expression.
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  var x int
-       //  var _ = unsafe.Offsetof(x)
-       BadOffsetofSyntax
-
-       // InvalidOffsetof occurs when unsafe.Offsetof is called with a method
-       // selector, rather than a field selector, or when the field is embedded via
-       // a pointer.
-       //
-       // Per the spec:
-       //
-       //  "If f is an embedded field, it must be reachable without pointer
-       //  indirections through fields of the struct. "
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  type T struct { f int }
-       //  type S struct { *T }
-       //  var s S
-       //  var _ = unsafe.Offsetof(s.f)
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  type S struct{}
-       //
-       //  func (S) m() {}
-       //
-       //  var s S
-       //  var _ = unsafe.Offsetof(s.m)
-       InvalidOffsetof
-
-       /* control flow > scope */
-
-       // UnusedExpr occurs when a side-effect free expression is used as a
-       // statement. Such a statement has no effect.
-       //
-       // Example:
-       //  func f(i int) {
-       //      i*i
-       //  }
-       UnusedExpr
-
-       // UnusedVar occurs when a variable is declared but unused.
-       //
-       // Example:
-       //  func f() {
-       //      x := 1
-       //  }
-       UnusedVar
-
-       // MissingReturn occurs when a function with results is missing a return
-       // statement.
-       //
-       // Example:
-       //  func f() int {}
-       MissingReturn
-
-       // WrongResultCount occurs when a return statement returns an incorrect
-       // number of values.
-       //
-       // Example:
-       //  func ReturnOne() int {
-       //      return 1, 2
-       //  }
-       WrongResultCount
-
-       // OutOfScopeResult occurs when the name of a value implicitly returned by
-       // an empty return statement is shadowed in a nested scope.
-       //
-       // Example:
-       //  func factor(n int) (i int) {
-       //      for i := 2; i < n; i++ {
-       //              if n%i == 0 {
-       //                      return
-       //              }
-       //      }
-       //      return 0
-       //  }
-       OutOfScopeResult
-
-       /* control flow > if */
-
-       // InvalidCond occurs when an if condition is not a boolean expression.
-       //
-       // Example:
-       //  func checkReturn(i int) {
-       //      if i {
-       //              panic("non-zero return")
-       //      }
-       //  }
-       InvalidCond
-
-       /* control flow > for */
-
-       // InvalidPostDecl occurs when there is a declaration in a for-loop post
-       // statement.
-       //
-       // Example:
-       //  func f() {
-       //      for i := 0; i < 10; j := 0 {}
-       //  }
-       InvalidPostDecl
-
-       // InvalidChanRange occurs when a send-only channel used in a range
-       // expression.
-       //
-       // Example:
-       //  func sum(c chan<- int) {
-       //      s := 0
-       //      for i := range c {
-       //              s += i
-       //      }
-       //  }
-       InvalidChanRange
-
-       // InvalidIterVar occurs when two iteration variables are used while ranging
-       // over a channel.
-       //
-       // Example:
-       //  func f(c chan int) {
-       //      for k, v := range c {
-       //              println(k, v)
-       //      }
-       //  }
-       InvalidIterVar
-
-       // InvalidRangeExpr occurs when the type of a range expression is not array,
-       // slice, string, map, or channel.
-       //
-       // Example:
-       //  func f(i int) {
-       //      for j := range i {
-       //              println(j)
-       //      }
-       //  }
-       InvalidRangeExpr
-
-       /* control flow > switch */
-
-       // MisplacedBreak occurs when a break statement is not within a for, switch,
-       // or select statement of the innermost function definition.
-       //
-       // Example:
-       //  func f() {
-       //      break
-       //  }
-       MisplacedBreak
-
-       // MisplacedContinue occurs when a continue statement is not within a for
-       // loop of the innermost function definition.
-       //
-       // Example:
-       //  func sumeven(n int) int {
-       //      proceed := func() {
-       //              continue
-       //      }
-       //      sum := 0
-       //      for i := 1; i <= n; i++ {
-       //              if i % 2 != 0 {
-       //                      proceed()
-       //              }
-       //              sum += i
-       //      }
-       //      return sum
-       //  }
-       MisplacedContinue
-
-       // MisplacedFallthrough occurs when a fallthrough statement is not within an
-       // expression switch.
-       //
-       // Example:
-       //  func typename(i interface{}) string {
-       //      switch i.(type) {
-       //      case int64:
-       //              fallthrough
-       //      case int:
-       //              return "int"
-       //      }
-       //      return "unsupported"
-       //  }
-       MisplacedFallthrough
-
-       // DuplicateCase occurs when a type or expression switch has duplicate
-       // cases.
-       //
-       // Example:
-       //  func printInt(i int) {
-       //      switch i {
-       //      case 1:
-       //              println("one")
-       //      case 1:
-       //              println("One")
-       //      }
-       //  }
-       DuplicateCase
-
-       // DuplicateDefault occurs when a type or expression switch has multiple
-       // default clauses.
-       //
-       // Example:
-       //  func printInt(i int) {
-       //      switch i {
-       //      case 1:
-       //              println("one")
-       //      default:
-       //              println("One")
-       //      default:
-       //              println("1")
-       //      }
-       //  }
-       DuplicateDefault
-
-       // BadTypeKeyword occurs when a .(type) expression is used anywhere other
-       // than a type switch.
-       //
-       // Example:
-       //  type I interface {
-       //      m()
-       //  }
-       //  var t I
-       //  var _ = t.(type)
-       BadTypeKeyword
-
-       // InvalidTypeSwitch occurs when .(type) is used on an expression that is
-       // not of interface type.
-       //
-       // Example:
-       //  func f(i int) {
-       //      switch x := i.(type) {}
-       //  }
-       InvalidTypeSwitch
-
-       // InvalidExprSwitch occurs when a switch expression is not comparable.
-       //
-       // Example:
-       //  func _() {
-       //      var a struct{ _ func() }
-       //      switch a /* ERROR cannot switch on a */ {
-       //      }
-       //  }
-       InvalidExprSwitch
-
-       /* control flow > select */
-
-       // InvalidSelectCase occurs when a select case is not a channel send or
-       // receive.
-       //
-       // Example:
-       //  func checkChan(c <-chan int) bool {
-       //      select {
-       //      case c:
-       //              return true
-       //      default:
-       //              return false
-       //      }
-       //  }
-       InvalidSelectCase
-
-       /* control flow > labels and jumps */
-
-       // UndeclaredLabel occurs when an undeclared label is jumped to.
-       //
-       // Example:
-       //  func f() {
-       //      goto L
-       //  }
-       UndeclaredLabel
-
-       // DuplicateLabel occurs when a label is declared more than once.
-       //
-       // Example:
-       //  func f() int {
-       //  L:
-       //  L:
-       //      return 1
-       //  }
-       DuplicateLabel
-
-       // MisplacedLabel occurs when a break or continue label is not on a for,
-       // switch, or select statement.
-       //
-       // Example:
-       //  func f() {
-       //  L:
-       //      a := []int{1,2,3}
-       //      for _, e := range a {
-       //              if e > 10 {
-       //                      break L
-       //              }
-       //              println(a)
-       //      }
-       //  }
-       MisplacedLabel
-
-       // UnusedLabel occurs when a label is declared but not used.
-       //
-       // Example:
-       //  func f() {
-       //  L:
-       //  }
-       UnusedLabel
-
-       // JumpOverDecl occurs when a label jumps over a variable declaration.
-       //
-       // Example:
-       //  func f() int {
-       //      goto L
-       //      x := 2
-       //  L:
-       //      x++
-       //      return x
-       //  }
-       JumpOverDecl
-
-       // JumpIntoBlock occurs when a forward jump goes to a label inside a nested
-       // block.
-       //
-       // Example:
-       //  func f(x int) {
-       //      goto L
-       //      if x > 0 {
-       //      L:
-       //              print("inside block")
-       //      }
-       // }
-       JumpIntoBlock
-
-       /* control flow > calls */
-
-       // InvalidMethodExpr occurs when a pointer method is called but the argument
-       // is not addressable.
-       //
-       // Example:
-       //  type T struct {}
-       //
-       //  func (*T) m() int { return 1 }
-       //
-       //  var _ = T.m(T{})
-       InvalidMethodExpr
-
-       // WrongArgCount occurs when too few or too many arguments are passed by a
-       // function call.
-       //
-       // Example:
-       //  func f(i int) {}
-       //  var x = f()
-       WrongArgCount
-
-       // InvalidCall occurs when an expression is called that is not of function
-       // type.
-       //
-       // Example:
-       //  var x = "x"
-       //  var y = x()
-       InvalidCall
-
-       /* control flow > suspended */
-
-       // UnusedResults occurs when a restricted expression-only built-in function
-       // is suspended via go or defer. Such a suspension discards the results of
-       // these side-effect free built-in functions, and therefore is ineffectual.
-       //
-       // Example:
-       //  func f(a []int) int {
-       //      defer len(a)
-       //      return i
-       //  }
-       UnusedResults
-
-       // InvalidDefer occurs when a deferred expression is not a function call,
-       // for example if the expression is a type conversion.
-       //
-       // Example:
-       //  func f(i int) int {
-       //      defer int32(i)
-       //      return i
-       //  }
-       InvalidDefer
-
-       // InvalidGo occurs when a go expression is not a function call, for example
-       // if the expression is a type conversion.
-       //
-       // Example:
-       //  func f(i int) int {
-       //      go int32(i)
-       //      return i
-       //  }
-       InvalidGo
-
-       // All codes below were added in Go 1.17.
-
-       /* decl */
-
-       // BadDecl occurs when a declaration has invalid syntax.
-       BadDecl
-
-       // RepeatedDecl occurs when an identifier occurs more than once on the left
-       // hand side of a short variable declaration.
-       //
-       // Example:
-       //  func _() {
-       //      x, y, y := 1, 2, 3
-       //  }
-       RepeatedDecl
-
-       /* unsafe */
-
-       // InvalidUnsafeAdd occurs when unsafe.Add is called with a
-       // length argument that is not of integer type.
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  var p unsafe.Pointer
-       //  var _ = unsafe.Add(p, float64(1))
-       InvalidUnsafeAdd
-
-       // InvalidUnsafeSlice occurs when unsafe.Slice is called with a
-       // pointer argument that is not of pointer type or a length argument
-       // that is not of integer type, negative, or out of bounds.
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  var x int
-       //  var _ = unsafe.Slice(x, 1)
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  var x int
-       //  var _ = unsafe.Slice(&x, float64(1))
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  var x int
-       //  var _ = unsafe.Slice(&x, -1)
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  var x int
-       //  var _ = unsafe.Slice(&x, uint64(1) << 63)
-       InvalidUnsafeSlice
-
-       // All codes below were added in Go 1.18.
-
-       /* features */
-
-       // UnsupportedFeature occurs when a language feature is used that is not
-       // supported at this Go version.
-       UnsupportedFeature
-
-       /* type params */
-
-       // NotAGenericType occurs when a non-generic type is used where a generic
-       // type is expected: in type or function instantiation.
-       //
-       // Example:
-       //  type T int
-       //
-       //  var _ T[int]
-       NotAGenericType
-
-       // WrongTypeArgCount occurs when a type or function is instantiated with an
-       // incorrent number of type arguments, including when a generic type or
-       // function is used without instantiation.
-       //
-       // Errors inolving failed type inference are assigned other error codes.
-       //
-       // Example:
-       //  type T[p any] int
-       //
-       //  var _ T[int, string]
-       //
-       // Example:
-       //  func f[T any]() {}
-       //
-       //  var x = f
-       WrongTypeArgCount
-
-       // CannotInferTypeArgs occurs when type or function type argument inference
-       // fails to infer all type arguments.
-       //
-       // Example:
-       //  func f[T any]() {}
-       //
-       //  func _() {
-       //      f()
-       //  }
-       //
-       // Example:
-       //   type N[P, Q any] struct{}
-       //
-       //   var _ N[int]
-       CannotInferTypeArgs
-
-       // InvalidTypeArg occurs when a type argument does not satisfy its
-       // corresponding type parameter constraints.
-       //
-       // Example:
-       //  type T[P ~int] struct{}
-       //
-       //  var _ T[string]
-       InvalidTypeArg // arguments? InferenceFailed
-
-       // InvalidInstanceCycle occurs when an invalid cycle is detected
-       // within the instantiation graph.
-       //
-       // Example:
-       //  func f[T any]() { f[*T]() }
-       InvalidInstanceCycle
-
-       // InvalidUnion occurs when an embedded union or approximation element is
-       // not valid.
-       //
-       // Example:
-       //  type _ interface {
-       //      ~int | interface{ m() }
-       //  }
-       InvalidUnion
-
-       // MisplacedConstraintIface occurs when a constraint-type interface is used
-       // outside of constraint position.
-       //
-       // Example:
-       //   type I interface { ~int }
-       //
-       //   var _ I
-       MisplacedConstraintIface
-
-       // InvalidMethodTypeParams occurs when methods have type parameters.
-       //
-       // It cannot be encountered with an AST parsed using go/parser.
-       InvalidMethodTypeParams
-
-       // MisplacedTypeParam occurs when a type parameter is used in a place where
-       // it is not permitted.
-       //
-       // Example:
-       //  type T[P any] P
-       //
-       // Example:
-       //  type T[P any] struct{ *P }
-       MisplacedTypeParam
-
-       // InvalidUnsafeSliceData occurs when unsafe.SliceData is called with
-       // an argument that is not of slice type. It also occurs if it is used
-       // in a package compiled for a language version before go1.20.
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  var x int
-       //  var _ = unsafe.SliceData(x)
-       InvalidUnsafeSliceData
-
-       // InvalidUnsafeString occurs when unsafe.String is called with
-       // a length argument that is not of integer type, negative, or
-       // out of bounds. It also occurs if it is used in a package
-       // compiled for a language version before go1.20.
-       //
-       // Example:
-       //  import "unsafe"
-       //
-       //  var b [10]byte
-       //  var _ = unsafe.String(&b[0], -1)
-       InvalidUnsafeString
-
-       // InvalidUnsafeStringData occurs if it is used in a package
-       // compiled for a language version before go1.20.
-       _ // not used anymore
-
-)
diff --git a/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go b/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
deleted file mode 100644 (file)
index 15ecf7c..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT.
-
-package typesinternal
-
-import "strconv"
-
-func _() {
-       // An "invalid array index" compiler error signifies that the constant values have changed.
-       // Re-run the stringer command to generate them again.
-       var x [1]struct{}
-       _ = x[InvalidSyntaxTree - -1]
-       _ = x[Test-1]
-       _ = x[BlankPkgName-2]
-       _ = x[MismatchedPkgName-3]
-       _ = x[InvalidPkgUse-4]
-       _ = x[BadImportPath-5]
-       _ = x[BrokenImport-6]
-       _ = x[ImportCRenamed-7]
-       _ = x[UnusedImport-8]
-       _ = x[InvalidInitCycle-9]
-       _ = x[DuplicateDecl-10]
-       _ = x[InvalidDeclCycle-11]
-       _ = x[InvalidTypeCycle-12]
-       _ = x[InvalidConstInit-13]
-       _ = x[InvalidConstVal-14]
-       _ = x[InvalidConstType-15]
-       _ = x[UntypedNilUse-16]
-       _ = x[WrongAssignCount-17]
-       _ = x[UnassignableOperand-18]
-       _ = x[NoNewVar-19]
-       _ = x[MultiValAssignOp-20]
-       _ = x[InvalidIfaceAssign-21]
-       _ = x[InvalidChanAssign-22]
-       _ = x[IncompatibleAssign-23]
-       _ = x[UnaddressableFieldAssign-24]
-       _ = x[NotAType-25]
-       _ = x[InvalidArrayLen-26]
-       _ = x[BlankIfaceMethod-27]
-       _ = x[IncomparableMapKey-28]
-       _ = x[InvalidIfaceEmbed-29]
-       _ = x[InvalidPtrEmbed-30]
-       _ = x[BadRecv-31]
-       _ = x[InvalidRecv-32]
-       _ = x[DuplicateFieldAndMethod-33]
-       _ = x[DuplicateMethod-34]
-       _ = x[InvalidBlank-35]
-       _ = x[InvalidIota-36]
-       _ = x[MissingInitBody-37]
-       _ = x[InvalidInitSig-38]
-       _ = x[InvalidInitDecl-39]
-       _ = x[InvalidMainDecl-40]
-       _ = x[TooManyValues-41]
-       _ = x[NotAnExpr-42]
-       _ = x[TruncatedFloat-43]
-       _ = x[NumericOverflow-44]
-       _ = x[UndefinedOp-45]
-       _ = x[MismatchedTypes-46]
-       _ = x[DivByZero-47]
-       _ = x[NonNumericIncDec-48]
-       _ = x[UnaddressableOperand-49]
-       _ = x[InvalidIndirection-50]
-       _ = x[NonIndexableOperand-51]
-       _ = x[InvalidIndex-52]
-       _ = x[SwappedSliceIndices-53]
-       _ = x[NonSliceableOperand-54]
-       _ = x[InvalidSliceExpr-55]
-       _ = x[InvalidShiftCount-56]
-       _ = x[InvalidShiftOperand-57]
-       _ = x[InvalidReceive-58]
-       _ = x[InvalidSend-59]
-       _ = x[DuplicateLitKey-60]
-       _ = x[MissingLitKey-61]
-       _ = x[InvalidLitIndex-62]
-       _ = x[OversizeArrayLit-63]
-       _ = x[MixedStructLit-64]
-       _ = x[InvalidStructLit-65]
-       _ = x[MissingLitField-66]
-       _ = x[DuplicateLitField-67]
-       _ = x[UnexportedLitField-68]
-       _ = x[InvalidLitField-69]
-       _ = x[UntypedLit-70]
-       _ = x[InvalidLit-71]
-       _ = x[AmbiguousSelector-72]
-       _ = x[UndeclaredImportedName-73]
-       _ = x[UnexportedName-74]
-       _ = x[UndeclaredName-75]
-       _ = x[MissingFieldOrMethod-76]
-       _ = x[BadDotDotDotSyntax-77]
-       _ = x[NonVariadicDotDotDot-78]
-       _ = x[MisplacedDotDotDot-79]
-       _ = x[InvalidDotDotDotOperand-80]
-       _ = x[InvalidDotDotDot-81]
-       _ = x[UncalledBuiltin-82]
-       _ = x[InvalidAppend-83]
-       _ = x[InvalidCap-84]
-       _ = x[InvalidClose-85]
-       _ = x[InvalidCopy-86]
-       _ = x[InvalidComplex-87]
-       _ = x[InvalidDelete-88]
-       _ = x[InvalidImag-89]
-       _ = x[InvalidLen-90]
-       _ = x[SwappedMakeArgs-91]
-       _ = x[InvalidMake-92]
-       _ = x[InvalidReal-93]
-       _ = x[InvalidAssert-94]
-       _ = x[ImpossibleAssert-95]
-       _ = x[InvalidConversion-96]
-       _ = x[InvalidUntypedConversion-97]
-       _ = x[BadOffsetofSyntax-98]
-       _ = x[InvalidOffsetof-99]
-       _ = x[UnusedExpr-100]
-       _ = x[UnusedVar-101]
-       _ = x[MissingReturn-102]
-       _ = x[WrongResultCount-103]
-       _ = x[OutOfScopeResult-104]
-       _ = x[InvalidCond-105]
-       _ = x[InvalidPostDecl-106]
-       _ = x[InvalidChanRange-107]
-       _ = x[InvalidIterVar-108]
-       _ = x[InvalidRangeExpr-109]
-       _ = x[MisplacedBreak-110]
-       _ = x[MisplacedContinue-111]
-       _ = x[MisplacedFallthrough-112]
-       _ = x[DuplicateCase-113]
-       _ = x[DuplicateDefault-114]
-       _ = x[BadTypeKeyword-115]
-       _ = x[InvalidTypeSwitch-116]
-       _ = x[InvalidExprSwitch-117]
-       _ = x[InvalidSelectCase-118]
-       _ = x[UndeclaredLabel-119]
-       _ = x[DuplicateLabel-120]
-       _ = x[MisplacedLabel-121]
-       _ = x[UnusedLabel-122]
-       _ = x[JumpOverDecl-123]
-       _ = x[JumpIntoBlock-124]
-       _ = x[InvalidMethodExpr-125]
-       _ = x[WrongArgCount-126]
-       _ = x[InvalidCall-127]
-       _ = x[UnusedResults-128]
-       _ = x[InvalidDefer-129]
-       _ = x[InvalidGo-130]
-       _ = x[BadDecl-131]
-       _ = x[RepeatedDecl-132]
-       _ = x[InvalidUnsafeAdd-133]
-       _ = x[InvalidUnsafeSlice-134]
-       _ = x[UnsupportedFeature-135]
-       _ = x[NotAGenericType-136]
-       _ = x[WrongTypeArgCount-137]
-       _ = x[CannotInferTypeArgs-138]
-       _ = x[InvalidTypeArg-139]
-       _ = x[InvalidInstanceCycle-140]
-       _ = x[InvalidUnion-141]
-       _ = x[MisplacedConstraintIface-142]
-       _ = x[InvalidMethodTypeParams-143]
-       _ = x[MisplacedTypeParam-144]
-       _ = x[InvalidUnsafeSliceData-145]
-       _ = x[InvalidUnsafeString-146]
-}
-
-const (
-       _ErrorCode_name_0 = "InvalidSyntaxTree"
-       _ErrorCode_name_1 = "TestBlankPkgNameMismatchedPkgNameInvalidPkgUseBadImportPathBrokenImportImportCRenamedUnusedImportInvalidInitCycleDuplicateDeclInvalidDeclCycleInvalidTypeCycleInvalidConstInitInvalidConstValInvalidConstTypeUntypedNilUseWrongAssignCountUnassignableOperandNoNewVarMultiValAssignOpInvalidIfaceAssignInvalidChanAssignIncompatibleAssignUnaddressableFieldAssignNotATypeInvalidArrayLenBlankIfaceMethodIncomparableMapKeyInvalidIfaceEmbedInvalidPtrEmbedBadRecvInvalidRecvDuplicateFieldAndMethodDuplicateMethodInvalidBlankInvalidIotaMissingInitBodyInvalidInitSigInvalidInitDeclInvalidMainDeclTooManyValuesNotAnExprTruncatedFloatNumericOverflowUndefinedOpMismatchedTypesDivByZeroNonNumericIncDecUnaddressableOperandInvalidIndirectionNonIndexableOperandInvalidIndexSwappedSliceIndicesNonSliceableOperandInvalidSliceExprInvalidShiftCountInvalidShiftOperandInvalidReceiveInvalidSendDuplicateLitKeyMissingLitKeyInvalidLitIndexOversizeArrayLitMixedStructLitInvalidStructLitMissingLitFieldDuplicateLitFieldUnexportedLitFieldInvalidLitFieldUntypedLitInvalidLitAmbiguousSelectorUndeclaredImportedNameUnexportedNameUndeclaredNameMissingFieldOrMethodBadDotDotDotSyntaxNonVariadicDotDotDotMisplacedDotDotDotInvalidDotDotDotOperandInvalidDotDotDotUncalledBuiltinInvalidAppendInvalidCapInvalidCloseInvalidCopyInvalidComplexInvalidDeleteInvalidImagInvalidLenSwappedMakeArgsInvalidMakeInvalidRealInvalidAssertImpossibleAssertInvalidConversionInvalidUntypedConversionBadOffsetofSyntaxInvalidOffsetofUnusedExprUnusedVarMissingReturnWrongResultCountOutOfScopeResultInvalidCondInvalidPostDeclInvalidChanRangeInvalidIterVarInvalidRangeExprMisplacedBreakMisplacedContinueMisplacedFallthroughDuplicateCaseDuplicateDefaultBadTypeKeywordInvalidTypeSwitchInvalidExprSwitchInvalidSelectCaseUndeclaredLabelDuplicateLabelMisplacedLabelUnusedLabelJumpOverDeclJumpIntoBlockInvalidMethodExprWrongArgCountInvalidCallUnusedResultsInvalidDeferInvalidGoBadDeclRepeatedDeclInvalidUnsafeAddInvalidUnsafeSliceUnsupportedFeatureNotAGenericTypeWrongTypeArgCountCannotInferTypeArgsInvalidTypeArgInvalidInstanceCycleInvalidUnionMisplacedConstraintIfaceInvalidMethodTypeParamsMisplacedTypeParamInvalidUnsafeSliceDataInvalidUnsafeString"
-)
-
-var (
-       _ErrorCode_index_1 = [...]uint16{0, 4, 16, 33, 46, 59, 71, 85, 97, 113, 126, 142, 158, 174, 189, 205, 218, 234, 253, 261, 277, 295, 312, 330, 354, 362, 377, 393, 411, 428, 443, 450, 461, 484, 499, 511, 522, 537, 551, 566, 581, 594, 603, 617, 632, 643, 658, 667, 683, 703, 721, 740, 752, 771, 790, 806, 823, 842, 856, 867, 882, 895, 910, 926, 940, 956, 971, 988, 1006, 1021, 1031, 1041, 1058, 1080, 1094, 1108, 1128, 1146, 1166, 1184, 1207, 1223, 1238, 1251, 1261, 1273, 1284, 1298, 1311, 1322, 1332, 1347, 1358, 1369, 1382, 1398, 1415, 1439, 1456, 1471, 1481, 1490, 1503, 1519, 1535, 1546, 1561, 1577, 1591, 1607, 1621, 1638, 1658, 1671, 1687, 1701, 1718, 1735, 1752, 1767, 1781, 1795, 1806, 1818, 1831, 1848, 1861, 1872, 1885, 1897, 1906, 1913, 1925, 1941, 1959, 1977, 1992, 2009, 2028, 2042, 2062, 2074, 2098, 2121, 2139, 2161, 2180}
-)
-
-func (i ErrorCode) String() string {
-       switch {
-       case i == -1:
-               return _ErrorCode_name_0
-       case 1 <= i && i <= 146:
-               i -= 1
-               return _ErrorCode_name_1[_ErrorCode_index_1[i]:_ErrorCode_index_1[i+1]]
-       default:
-               return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
-       }
-}
diff --git a/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/objectpath.go b/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/objectpath.go
deleted file mode 100644 (file)
index 5e96e89..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2023 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package typesinternal
-
-import "go/types"
-
-// This file contains back doors that allow gopls to avoid method sorting when
-// using the objectpath package.
-//
-// This is performance-critical in certain repositories, but changing the
-// behavior of the objectpath package is still being discussed in
-// golang/go#61443. If we decide to remove the sorting in objectpath we can
-// simply delete these back doors. Otherwise, we should add a new API to
-// objectpath that allows controlling the sorting.
-
-// SkipEncoderMethodSorting marks enc (which must be an *objectpath.Encoder) as
-// not requiring sorted methods.
-var SkipEncoderMethodSorting func(enc interface{})
-
-// ObjectpathObject is like objectpath.Object, but allows suppressing method
-// sorting.
-var ObjectpathObject func(pkg *types.Package, p string, skipMethodSorting bool) (types.Object, error)
diff --git a/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/types.go b/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/types.go
deleted file mode 100644 (file)
index ce7d435..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2020 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Package typesinternal provides access to internal go/types APIs that are not
-// yet exported.
-package typesinternal
-
-import (
-       "go/token"
-       "go/types"
-       "reflect"
-       "unsafe"
-)
-
-func SetUsesCgo(conf *types.Config) bool {
-       v := reflect.ValueOf(conf).Elem()
-
-       f := v.FieldByName("go115UsesCgo")
-       if !f.IsValid() {
-               f = v.FieldByName("UsesCgo")
-               if !f.IsValid() {
-                       return false
-               }
-       }
-
-       addr := unsafe.Pointer(f.UnsafeAddr())
-       *(*bool)(addr) = true
-
-       return true
-}
-
-// ReadGo116ErrorData extracts additional information from types.Error values
-// generated by Go version 1.16 and later: the error code, start position, and
-// end position. If all positions are valid, start <= err.Pos <= end.
-//
-// If the data could not be read, the final result parameter will be false.
-func ReadGo116ErrorData(err types.Error) (code ErrorCode, start, end token.Pos, ok bool) {
-       var data [3]int
-       // By coincidence all of these fields are ints, which simplifies things.
-       v := reflect.ValueOf(err)
-       for i, name := range []string{"go116code", "go116start", "go116end"} {
-               f := v.FieldByName(name)
-               if !f.IsValid() {
-                       return 0, 0, 0, false
-               }
-               data[i] = int(f.Int())
-       }
-       return ErrorCode(data[0]), token.Pos(data[1]), token.Pos(data[2]), true
-}
-
-var SetGoVersion = func(conf *types.Config, version string) bool { return false }
diff --git a/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/types_118.go b/src/cmd/vendor/golang.org/x/tools/internal/typesinternal/types_118.go
deleted file mode 100644 (file)
index a42b072..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2021 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build go1.18
-// +build go1.18
-
-package typesinternal
-
-import (
-       "go/types"
-)
-
-func init() {
-       SetGoVersion = func(conf *types.Config, version string) bool {
-               conf.GoVersion = version
-               return true
-       }
-}
index 47b6663be48a84bd16537221675b6ce494a75483..d08a039a1e5227b5e0ba6acf75aeb5b9f6b25f22 100644 (file)
@@ -17,14 +17,14 @@ github.com/google/pprof/third_party/svgpan
 # github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab
 ## explicit; go 1.13
 github.com/ianlancetaylor/demangle
-# golang.org/x/arch v0.4.0
-## explicit; go 1.17
+# golang.org/x/arch v0.5.1-0.20231011141335-a6bdeed49307
+## explicit; go 1.18
 golang.org/x/arch/arm/armasm
 golang.org/x/arch/arm64/arm64asm
 golang.org/x/arch/ppc64/ppc64asm
 golang.org/x/arch/x86/x86asm
-# golang.org/x/mod v0.12.0
-## explicit; go 1.17
+# golang.org/x/mod v0.13.0
+## explicit; go 1.18
 golang.org/x/mod/internal/lazyregexp
 golang.org/x/mod/modfile
 golang.org/x/mod/module
@@ -34,18 +34,18 @@ golang.org/x/mod/sumdb/dirhash
 golang.org/x/mod/sumdb/note
 golang.org/x/mod/sumdb/tlog
 golang.org/x/mod/zip
-# golang.org/x/sync v0.3.0
-## explicit; go 1.17
+# golang.org/x/sync v0.4.1-0.20231011140417-10739b037d36
+## explicit; go 1.18
 golang.org/x/sync/semaphore
-# golang.org/x/sys v0.13.0
-## explicit; go 1.17
+# golang.org/x/sys v0.13.1-0.20231011215430-1bfbee0e20e3
+## explicit; go 1.18
 golang.org/x/sys/plan9
 golang.org/x/sys/unix
 golang.org/x/sys/windows
-# golang.org/x/term v0.13.0
-## explicit; go 1.17
+# golang.org/x/term v0.13.1-0.20231011140651-6a610bc55bff
+## explicit; go 1.18
 golang.org/x/term
-# golang.org/x/tools v0.13.1-0.20230920233436-f9b8da7b22be
+# golang.org/x/tools v0.14.1-0.20231019165902-71f6a46884ab
 ## explicit; go 1.18
 golang.org/x/tools/cmd/bisect
 golang.org/x/tools/cover
@@ -95,4 +95,3 @@ golang.org/x/tools/go/types/typeutil
 golang.org/x/tools/internal/bisect
 golang.org/x/tools/internal/facts
 golang.org/x/tools/internal/typeparams
-golang.org/x/tools/internal/typesinternal
index 8f7dd5c0b6993238d65125cdda6d09d3e7aaadac..7116fd3d724946c30b74f3c9d4f8cf4f2c8897bf 100644 (file)
@@ -3,11 +3,11 @@ module std
 go 1.22
 
 require (
-       golang.org/x/crypto v0.14.0
-       golang.org/x/net v0.17.0
+       golang.org/x/crypto v0.14.1-0.20231011220222-8779cbd1c995
+       golang.org/x/net v0.17.1-0.20231011215812-d23d9bc54922
 )
 
 require (
-       golang.org/x/sys v0.13.0 // indirect
-       golang.org/x/text v0.13.0 // indirect
+       golang.org/x/sys v0.13.1-0.20231011215430-1bfbee0e20e3 // indirect
+       golang.org/x/text v0.13.1-0.20231011215848-6c97a165dd66 // indirect
 )
index 22511da608a07bacbb5de1bc6150e0ddc765adf0..bcaeab575880dc6229c8432edc442904394d4f18 100644 (file)
@@ -1,8 +1,8 @@
-golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc=
-golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4=
-golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=
-golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
-golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
-golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
-golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
+golang.org/x/crypto v0.14.1-0.20231011220222-8779cbd1c995 h1:fwu25/DhiXr/++jtzz2gHfC/FL/FimAGVxczaK4pjR8=
+golang.org/x/crypto v0.14.1-0.20231011220222-8779cbd1c995/go.mod h1:aSyBXtGhRzSMdne9jbl3+PPMVS0IgOWF6Llc+HB5uUU=
+golang.org/x/net v0.17.1-0.20231011215812-d23d9bc54922 h1:5dPkjItO/mhqL4dWOB/ERHdeNKAe0YXhUnCOLpn/nwI=
+golang.org/x/net v0.17.1-0.20231011215812-d23d9bc54922/go.mod h1:ctp6Rq0w6YZwLQMXSCn4tot1uuoj9E9vKYJV26guPn4=
+golang.org/x/sys v0.13.1-0.20231011215430-1bfbee0e20e3 h1:G9se7UpoI67yWrFY0IIFGf6H3nwLLUZFDBCyOJwWeSc=
+golang.org/x/sys v0.13.1-0.20231011215430-1bfbee0e20e3/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/text v0.13.1-0.20231011215848-6c97a165dd66 h1:9Dyvhe9/DDm3upTpNNwowKgum0eUka4TBRU6uHiINKo=
+golang.org/x/text v0.13.1-0.20231011215848-6c97a165dd66/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
index 54ac12f598ebcbe2b562c56883abbd4883e3fb70..83f0bc096609724281a65c2b8ba36b61e66ae392 100644 (file)
@@ -1,5 +1,4 @@
 //go:build !nethttpomithttp2
-// +build !nethttpomithttp2
 
 // Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.
 //   $ bundle -o=h2_bundle.go -prefix=http2 -tags=!nethttpomithttp2 golang.org/x/net/http2
index 5dfacbb98395488ddeec6e6bb847d84e8ea9ec9f..661ea132e028d1b25326b0dd6a790f382a6dbc3e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 package chacha20
 
index f1f66230d1c23942ca7779c5a0473353af3e504d..7dd2638e88ada9e1251a40d5fae679275b62fe50 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 #include "textflag.h"
 
index 02ff3d05e9aecde90072497f92e3f14b9cb2b83b..db42e6676ab35b735626c5bee7ce4630d450975d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (!arm64 && !s390x && !ppc64le) || !gc || purego
-// +build !arm64,!s390x,!ppc64le !gc purego
 
 package chacha20
 
index da420b2e97b03c13318b66fc62eb45b418739579..3a4287f9900e40622ca39fc2e3580fb9190b07fc 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 package chacha20
 
index 5c0fed26f85027845e4acaaa7dda6699fa670c25..66aebae25885f166412ee417bdaf76e27b974fe0 100644 (file)
@@ -20,7 +20,6 @@
 // due to the calling conventions and initialization of constants.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 #include "textflag.h"
 
index 4652247b8a637eca0c036a66b4b7511e1870eeaa..683ccfd1c35c6293f4255c93ed5a20842c643644 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 package chacha20
 
index f3ef5a019d9593e4d70ce876f48f3a74562d245e..1eda91a3d4706b67593a8030475e234d94cde605 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 #include "go_asm.h"
 #include "textflag.h"
index 0c408c57094ccbb1240e25dff2ed425676228493..50695a14f62d871ecf1d40b7e32951e7ac7a7d49 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 package chacha20poly1305
 
index 867c181a14c07411be6f31accc1cd85d5fdc615e..541d696b67e5b1e7ef74e9b5acf5b3f801d14b2a 100644 (file)
@@ -5,7 +5,6 @@
 // This file was originally from https://golang.org/cl/24717 by Vlad Krasnov of CloudFlare.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 #include "textflag.h"
 // General register allocation
index f832b33d45f208983ff50c1e6ef74a46935245e0..34e6ab1df886f43861a89f05c842fef0da49a236 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !amd64 || !gc || purego
-// +build !amd64 !gc purego
 
 package chacha20poly1305
 
index 69c17f822b9a130ea001e6de50944316ce2ef1cf..551ff0c353f8429af4dbd0f9c3b81f77c63ea1a0 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !purego
-// +build !purego
 
 // Package alias implements memory aliasing tests.
 package alias
index 4775b0a43843706ff16114031684d20e7f1104ef..6fe61b5c6ec0cba569930d00a2d20a88a2a71d23 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build purego
-// +build purego
 
 // Package alias implements memory aliasing tests.
 package alias
index 45b5c966b2be38e4e7a05bd9f454625d99d555d2..d33c8890fc53ecb4a961eaa6ee165f88050ed910 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !go1.13
-// +build !go1.13
 
 package poly1305
 
index ed52b3418ab537859539f0ed6ca1916e01a4ca61..495c1fa69725b6acbcaec5680c8d6bddb47e5ca7 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build go1.13
-// +build go1.13
 
 package poly1305
 
index f184b67d98db2903033de12f9f82dbe9ab35577e..333da285b32a34f2c085b394da5ce2fea6d31f7c 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (!amd64 && !ppc64le && !s390x) || !gc || purego
-// +build !amd64,!ppc64le,!s390x !gc purego
 
 package poly1305
 
index 6d522333f29e86155e57ac4db1f6cdc6b77278fd..164cd47d322a32b893375165bce1e14d9dd3c1c9 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 package poly1305
 
index 1d74f0f88189b152f06e8f581474a70a8b4a8b0c..e0d3c64756692b68aa1179398fdbc03cde0113a2 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 #include "textflag.h"
 
index 4a069941a6ef9bdda4ec4758f402f8e4973e13e2..4aec4874b507e887af5cd578396aab8cc90e41d5 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 package poly1305
 
index 58422aad230570fa1b3292a95e1332d50a965042..d2ca5deeb9f56e9c2e5c5c2eb2b321957debdc92 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 #include "textflag.h"
 
index ec95966889691d2d0911277b8fceba1bb716d2f9..e1d033a4915ac78b32b650af7850091235092a7e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 package poly1305
 
index aa9e0494c909d8ec768719524c5d46277859f670..0fe3a7c21750e29f2d11a375512c982568a40ac2 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc && !purego
-// +build gc,!purego
 
 #include "textflag.h"
 
index b6b4f9c197302ba2c3d0a9f6f79c4dca0d38da28..42987ab7c5feab037ae91321c105b90d6723db42 100644 (file)
@@ -751,6 +751,9 @@ func (p *Parser) AllAnswers() ([]Resource, error) {
 }
 
 // SkipAnswer skips a single Answer Resource.
+//
+// It does not perform a complete validation of the resource header, which means
+// it may return a nil error when the [AnswerHeader] would actually return an error.
 func (p *Parser) SkipAnswer() error {
        return p.skipResource(sectionAnswers)
 }
@@ -801,6 +804,9 @@ func (p *Parser) AllAuthorities() ([]Resource, error) {
 }
 
 // SkipAuthority skips a single Authority Resource.
+//
+// It does not perform a complete validation of the resource header, which means
+// it may return a nil error when the [AuthorityHeader] would actually return an error.
 func (p *Parser) SkipAuthority() error {
        return p.skipResource(sectionAuthorities)
 }
@@ -851,6 +857,9 @@ func (p *Parser) AllAdditionals() ([]Resource, error) {
 }
 
 // SkipAdditional skips a single Additional Resource.
+//
+// It does not perform a complete validation of the resource header, which means
+// it may return a nil error when the [AdditionalHeader] would actually return an error.
 func (p *Parser) SkipAdditional() error {
        return p.skipResource(sectionAdditionals)
 }
index c5c4338dbed47ebc8e608d12559b98d850471b62..712f1ad839f270f24a4bcbf9d6988f1915d75a55 100644 (file)
@@ -5,7 +5,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build go1.18
-// +build go1.18
 
 package idna
 
index 64ccf85febb661eef1780e23362131f780dc3044..7b371788473a53d6b411cf81d9db21e185592822 100644 (file)
@@ -5,7 +5,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build go1.10
-// +build go1.10
 
 // Package idna implements IDNA2008 using the compatibility processing
 // defined by UTS (Unicode Technical Standard) #46, which defines a standard to
index ee1698cefbd8fa5a03710a2dd1a17726c16021ab..cc6a892a4a3cba9d5cb1cc57187ddf60f1ab6200 100644 (file)
@@ -5,7 +5,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !go1.10
-// +build !go1.10
 
 // Package idna implements IDNA2008 using the compatibility processing
 // defined by UTS (Unicode Technical Standard) #46, which defines a standard to
index 3aaccab1c5a0e49559727d1f0dbd4823d62d0c24..40e74bb3d2ac1e9c2b3777cb1731790b346ebac7 100644 (file)
@@ -5,7 +5,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !go1.18
-// +build !go1.18
 
 package idna
 
index d1d62ef459bb730ff5c6ff70c91d0289b8c4c40b..c6c2bf10a60a1fe8cc0c4c0af34fb360181689ba 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.10 && !go1.13
-// +build go1.10,!go1.13
 
 package idna
 
index 167efba71256cd1696d175013b5bfb9f16348524..76789393cc0c7e787588a7482e3480d0f7e62bab 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.13 && !go1.14
-// +build go1.13,!go1.14
 
 package idna
 
index ab40f7bcc3b81235e6868d5ac016802eb336efe1..0600cd2ae547f6e185cac977f1468400539e695d 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.14 && !go1.16
-// +build go1.14,!go1.16
 
 package idna
 
index 66701eadfb37c701ce6855f6735ba6a1e82959cc..2fb768ef6d9a059dc2e9d83bac79788da5eaa2bb 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.16 && !go1.21
-// +build go1.16,!go1.21
 
 package idna
 
index 40033778f01f3aee71e08d7067ba627c22510b6e..5ff05fe1afca7733895eefeb7f6280edd39502a6 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.21
-// +build go1.21
 
 package idna
 
index 4074b5332e3e3451eeb50793ab57aecd36a6485d..0f25e84ca2076f29d7d7f20382e33bd169d383ae 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build !go1.10
-// +build !go1.10
 
 package idna
 
index bb63f904b379afd6cc9d3844230ce31214bfeaf6..8a75b9667334e82dd58fce84f46333ebbcc77b35 100644 (file)
@@ -5,7 +5,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !go1.16
-// +build !go1.16
 
 package idna
 
index 7d68a8dc13cbbc17987f297701cd734fd6f96432..fa45bb90745beec81d30786d82eaa68bea8f8b2c 100644 (file)
@@ -5,7 +5,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build go1.16
-// +build go1.16
 
 package idna
 
index 8eaddb508dcd98e0285b003ccf6f5708846f3171..0ed62a2c4cf1287250624c7188e1b37707d92987 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build solaris
-// +build solaris
 
 package lif
 
index f31ca3ad0726c9c315a42c6ba83480d8047cce3c..8a6c456061672c9b70e975bf14433d6190161b8e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build solaris
-// +build solaris
 
 package lif
 
index f1fce48b34c764ff86e3ac5cbf0f4b64931f2b5d..e9f2a9e0ed4b124a7bb7cf230eb40278e1898b3d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build solaris
-// +build solaris
 
 // Package lif provides basic functions for the manipulation of
 // logical network interfaces and interface addresses on Solaris.
index 00b78545b517ce94f5cd289e7f27675e4ef90822..d0c615a0b33f0a7f9e9acbf9aa5fe542d8fb3cc9 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build solaris
-// +build solaris
 
 package lif
 
index d0b532d9dc95e0d2ccc82f7c825cbed05d7e9642..caba2fe90da24075f5dd3ff868a4cb632bf91518 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build solaris
-// +build solaris
 
 package lif
 
index 8d03b4aa92895e54a330fba79468e8694eae31e0..329a65fe63b81dbb5e3c54f46df9080e9ba24ca1 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build solaris
-// +build solaris
 
 package lif
 
index 6e3a9312b9a065e17a8275e08ca9bc4c63c8097e..1725b6aa1889a972f521a59ec04cb48e63963654 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
-// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package nettest
 
index b1cb8b2f3b12da1c1eeedb7c0bc4d37e75125cdb..9ba269d02055a78873f26d551f5fb2333d639acc 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package nettest
 
index 5a3cc065493065ac359b66a492c09bbf054f4430..5443d672236c2add5f2e7bbeffaa4a5dc2f9c0b7 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 package route
 
index a5e28f1e9cd6ca3a32c396096bb35c52b317006c..db3f7e0c2a5ed43bb3cd2212f169c038188155f2 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 package route
 
index 90ab4ca3d8e6f2717e0306c51588b4ba9260dcc7..49d79791e01bb68824761d3781931121575b6a51 100644 (file)
@@ -3,6 +3,5 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin && go1.12
-// +build darwin,go1.12
 
 // This exists solely so we can linkname in symbols from syscall.
index 9e9407830c59e6228aca9fbc9fecb93fd16f74d7..0aa70555ca6aefafb964a49e12ea1997f58d2b8d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 package route
 
index 8282bfe9e229d5668d53ebbd8b45c2724cc226ef..70614c1b1a17ef3b9c733f957317c04b05a7efa2 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build dragonfly || freebsd || netbsd
-// +build dragonfly freebsd netbsd
 
 package route
 
index 903a196346ba6e899ff5d2a7f2907eaa46293666..be1bf2652e675a5b21b8e002e57fb53fb5e19fe8 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || netbsd
-// +build darwin dragonfly netbsd
 
 package route
 
index dd0b214baa99a4b9d41783f606166d4740344a4f..2ee37b9c749aef3425b55039d6d4dd993753f7e1 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd
-// +build darwin dragonfly freebsd
 
 package route
 
index 456a8363fec9dd708175a1f09ea9cfcc35520b31..dc8bfc5b3aa728592678da4023c11270c4a9e4a4 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 package route
 
index 3ab5bcdc011996e6d96f31157e81a3260dea966a..ca2ce2b88764cb93958e4b9a6f9ca1f6b71c4cf4 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 // Package route provides basic functions for the manipulation of
 // packet routing facilities on BSD variants.
index d6ee42f1b1d1d3e7722ff8958f0488bac02f83a2..e273fe39ab32e1946a8a5e90f89e0596711be0c3 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd
-// +build darwin dragonfly freebsd netbsd
 
 package route
 
index 7c75574f187ed587dc736643428089237a340ab3..fcebee58ec6da273d817cd11e73e2ba1b0ca3048 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 package route
 
index 68d37c9621cba76eb64a299a18e0e6ff585cdd41..0ed53750a22f8a92e6f870ff91f6d6ee40783352 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || netbsd || openbsd
-// +build darwin dragonfly freebsd netbsd openbsd
 
 package route
 
index db9171c2e4913da5a3e2fa1f18b3a3340b545913..269e173ca46941da5e6b8b737502b86a82d3152e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index 8aaeef545a76bee1f012a9fe4f02d65150b187ce..9bf0c32eb6add508376c74375833d533cc0e7c2a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix
-// +build aix
 
 package cpu
 
index c61f95a05a73c4a7b51ebf0c7f088d711514fb86..fcb9a3888205b3354344deb8c06e430bb92685f3 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index ccf542a73da87b9da870e840fa21d5423c5e1ed0..a8acd3e3285d81e7fe5a67708a682f3314515925 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 package cpu
 
index 0af2f248412d5541eff2178327242351d8ac3ba5..c8ae6ddc156f50b564d2398f8fb6286a8602e5f0 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 package cpu
 
index fa7cdb9bcd5fa46a70730c36e9502d5ab9b7393a..910728fb163f36695c04e99064c4e5adf09a160c 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (386 || amd64 || amd64p32) && gc
-// +build 386 amd64 amd64p32
-// +build gc
 
 package cpu
 
index 2aff31891162e82fdb8669bec0f5145e2821dbf6..7f1946780bd305c1d17491b40bc4062ea32d228d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gccgo
-// +build gccgo
 
 package cpu
 
index 4bfbda61993df172c27bdb795f26b56dd007b548..9526d2ce3a957e675e79b7e9084860934fbc3c57 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gccgo
-// +build gccgo
 
 package cpu
 
index 6cc73109f5954b67ee428605897d447dd42ee51f..3f73a05dcf328b92c22ed7aa3b62c7abe792fdd4 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (386 || amd64 || amd64p32) && gccgo
-// +build 386 amd64 amd64p32
-// +build gccgo
 
 #include <cpuid.h>
 #include <stdint.h>
index 863d415ab4987c21623b1b873a80c902335e6c9e..99c60fe9f9c657795eaaf6cf85863114f58bb191 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (386 || amd64 || amd64p32) && gccgo
-// +build 386 amd64 amd64p32
-// +build gccgo
 
 package cpu
 
index 159a686f6f7a9226d2af484264aa272a75ec2728..743eb54354b598b61a295d11e04a3f3f95b4b9df 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !386 && !amd64 && !amd64p32 && !arm64
-// +build !386,!amd64,!amd64p32,!arm64
 
 package cpu
 
index 6000db4cdd1b32a326b533fc608bd54a6eefd421..4686c1d541d888a71ef645882666639daeda9e6e 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (mips64 || mips64le)
-// +build linux
-// +build mips64 mips64le
 
 package cpu
 
index f4992b1a59388afe57b25cd150e7d4058cd8843c..cd63e73355734ca8a12f992c5db23c002a0b6166 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x
-// +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x
 
 package cpu
 
index 021356d6deb05e7cc40be27cfe6d09936be8e1f0..197188e67f34368bdcfae683cd73a32fbf22c054 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && (ppc64 || ppc64le)
-// +build linux
-// +build ppc64 ppc64le
 
 package cpu
 
index 0f57b05bdbe5d0d19abe3f24ba2cff4971dd6e82..558635850c7860085e2b14ce20d01cf2aa39ab3c 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build loong64
-// +build loong64
 
 package cpu
 
index f4063c66423b09803b30d1cb61a5786a011342ef..fedb00cc4cb9f1dd8fc7fcc78a8bd148b0898b71 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build mips64 || mips64le
-// +build mips64 mips64le
 
 package cpu
 
index 07c4e36d8f55de95b22081073514e03b0eb639fa..ffb4ec7eb39e57d8230c0fa4c787543aec7deadc 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build mips || mipsle
-// +build mips mipsle
 
 package cpu
 
index d7b4fb4ccc24fb6d6f5979b936b2184f057ad685..e9ecf2a45674ac5e93d418e8e17b949613d9af72 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !linux && arm
-// +build !linux,arm
 
 package cpu
 
index f3cde129b6348876511de9942c37f5fdd0e14e73..5341e7f88d7155dfe85293dc40d5aa412bc637c0 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !linux && !netbsd && !openbsd && arm64
-// +build !linux,!netbsd,!openbsd,arm64
 
 package cpu
 
index 0dafe9644a5a18cfc3e8319dedbaddf336a76fb8..5f8f2419ab85556e9c104d95e9f04efacaad9562 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !linux && (mips64 || mips64le)
-// +build !linux
-// +build mips64 mips64le
 
 package cpu
 
index 060d46b6eacc6dd969faccff54a817682cf7f94d..89608fba276300b0ae828d968a4ee53aa2e590d6 100644 (file)
@@ -3,9 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !aix && !linux && (ppc64 || ppc64le)
-// +build !aix
-// +build !linux
-// +build ppc64 ppc64le
 
 package cpu
 
index dd10eb79feefa88588aa818a1b2e7b777c4c4dc9..5ab87808f710956e0703c3a96dbf4a22db833e54 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !linux && riscv64
-// +build !linux,riscv64
 
 package cpu
 
index 4e8acd16583ddcbc0fc75f268c1754abe6dff86e..c14f12b14942161d412c89d14e212cfbec6905a1 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ppc64 || ppc64le
-// +build ppc64 ppc64le
 
 package cpu
 
index ff7da60eb8d7d881e49b714e1a2a4b009176349a..7f0c79c004b44a57b821bdf405363148da434314 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build riscv64
-// +build riscv64
 
 package cpu
 
index 96f81e20971705fd804cb4597f979fb4f5bcca89..1fb4b701334c529f3e08c56b21ede39a9e77bb06 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gc
-// +build gc
 
 #include "textflag.h"
 
index 7747d888a6929f4f67d3f14c435e2ac3331de9bd..384787ea3062384428ab4c7a51a664f5b42efc1f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build wasm
-// +build wasm
 
 package cpu
 
index 2dcde8285d59b495a3793552f32b25c3fe2c048d..c29f5e4c5a6e4ef36f32964e99910cb710205f97 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build 386 || amd64 || amd64p32
-// +build 386 amd64 amd64p32
 
 package cpu
 
index 39acab2ff5c2030410a6d45c72dd0372d9723acf..7d7ba33efb85559b3dded691773f12342163fdd6 100644 (file)
@@ -3,8 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build (386 || amd64 || amd64p32) && gc
-// +build 386 amd64 amd64p32
-// +build gc
 
 #include "textflag.h"
 
index 93ce03a34605b6f4167aeab1754a5e4fda8f209f..7fe04b0a13b1ae86405617a94a06e047d39ed173 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64
-// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64
 
 package cpu
 
index 55db853efbec4e889f8c6b16f3b4463e1b28a9b5..48eccc4c79963855c4026e37a594755f1cd85c4f 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm
-// +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh wasm
 
 package cpu
 
index d87bd6b3eb05d36d8eef305aa72213cd165f551a..4cd64c7042bcc702b4c7ca840559df41b86c8cc0 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build linux && arm64
-// +build linux,arm64
 
 package cpu
 
index b975ea2a04ef24b920f2bf0e51e3a3950d1c7c41..4c9788ea8ee88a5071ca70fa6d45096b2e20613a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build go1.21
-// +build go1.21
 
 package cpu
 
index 96134157a10d18881e5b7fd9db35d5b3a2fc0952..1b9ccb091a57b0288929f832bd0defdb6ad9e960 100644 (file)
@@ -9,7 +9,6 @@
 // gccgo's libgo and thus must not used a CGo method.
 
 //go:build aix && gccgo
-// +build aix,gccgo
 
 package cpu
 
index 904be42ffdce1bc6d7351305cef046f14faa0543..e8b6cdbe9a7c8b62a50d04e727ffc19bd43146dd 100644 (file)
@@ -7,7 +7,6 @@
 // (See golang.org/issue/32102)
 
 //go:build aix && ppc64 && gc
-// +build aix,ppc64,gc
 
 package cpu
 
index 8a7392c4a162fc46fae4ba0f332ff0ccf132c0e7..784bb8808764908fed34f5dc37ebdd8af58a17e7 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build go1.10
-// +build go1.10
 
 package bidirule
 
index bb0a920018c8f1b52cdac1fb1fccef23edab20f7..8e1e9439552854aac8f80295f9195f261f68be07 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !go1.10
-// +build !go1.10
 
 package bidirule
 
index 42fa8d72cec004940ea8e126979a4e5ee09c7ee5..d2bd71181d91a6864554d1650f473fac922a65dc 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.10 && !go1.13
-// +build go1.10,!go1.13
 
 package bidi
 
index 56a0e1ea2165e4cc8f087abd53953e849f140dd0..f76bdca273530c8b7cd622e601b9a81de868d873 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.13 && !go1.14
-// +build go1.13,!go1.14
 
 package bidi
 
index baacf32b43c310593f1c176f9b4619a2007e826d..3aa2c3bdf8c3b02c70a696ab9c2eff5d81d537d7 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.14 && !go1.16
-// +build go1.14,!go1.16
 
 package bidi
 
index ffadb7bebdbe8f63e36f97862d59452fec395156..a7137579069baf05e8eebdd1baf98fee10342da1 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.16 && !go1.21
-// +build go1.16,!go1.21
 
 package bidi
 
index 92cce5802c6a5585e73a949523fad14086e308ad..f15746f7df5bf6d8e39233d3bc9f17c057bc1de3 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.21
-// +build go1.21
 
 package bidi
 
index f517fdb202a5cfb6e57fa527fb7270c27b6c095a..c164d37917586fd788c9c84b2860fdfa28aefc6c 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build !go1.10
-// +build !go1.10
 
 package bidi
 
index f5a0788277ffd15f6b820905e3cca0f89746049e..1af161c7563e52a8865c4d6951ce3e74b476da2d 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.10 && !go1.13
-// +build go1.10,!go1.13
 
 package norm
 
index cb7239c4377d47eb325ad8443b66384526e0ffd1..eb73ecc373881dda630eeaee1d36669fac1e369b 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.13 && !go1.14
-// +build go1.13,!go1.14
 
 package norm
 
index 11b27330017d823b3971c6bbba612b106283e0a1..276cb8d8c0451bf54b001426f406862ffb6fa968 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.14 && !go1.16
-// +build go1.14,!go1.16
 
 package norm
 
index f65785e8ac7fca142e0360b8b10d8e22617673cf..0cceffd731b002e95bed47833416d484c3264d13 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.16 && !go1.21
-// +build go1.16,!go1.21
 
 package norm
 
index e1858b879db7e044146e87720b16a2ff21222c2c..b0819e42d09bc7f380bda18d19c9a89c86347c0c 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build go1.21
-// +build go1.21
 
 package norm
 
index 0175eae50aa68e064d309cfef981dab0e7daec96..bf65457d9b492ac70abbec7789d07d0012892a71 100644 (file)
@@ -1,7 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
 //go:build !go1.10
-// +build !go1.10
 
 package norm
 
index bc4eb872eb84956c4dd56a9327ac1238c897a084..5680dfb8c13ae471e63deb5b9a8f43155041bb5b 100644 (file)
@@ -1,5 +1,5 @@
-# golang.org/x/crypto v0.14.0
-## explicit; go 1.17
+# golang.org/x/crypto v0.14.1-0.20231011220222-8779cbd1c995
+## explicit; go 1.18
 golang.org/x/crypto/chacha20
 golang.org/x/crypto/chacha20poly1305
 golang.org/x/crypto/cryptobyte
@@ -7,8 +7,8 @@ golang.org/x/crypto/cryptobyte/asn1
 golang.org/x/crypto/hkdf
 golang.org/x/crypto/internal/alias
 golang.org/x/crypto/internal/poly1305
-# golang.org/x/net v0.17.0
-## explicit; go 1.17
+# golang.org/x/net v0.17.1-0.20231011215812-d23d9bc54922
+## explicit; go 1.18
 golang.org/x/net/dns/dnsmessage
 golang.org/x/net/http/httpguts
 golang.org/x/net/http/httpproxy
@@ -17,11 +17,11 @@ golang.org/x/net/idna
 golang.org/x/net/lif
 golang.org/x/net/nettest
 golang.org/x/net/route
-# golang.org/x/sys v0.13.0
-## explicit; go 1.17
+# golang.org/x/sys v0.13.1-0.20231011215430-1bfbee0e20e3
+## explicit; go 1.18
 golang.org/x/sys/cpu
-# golang.org/x/text v0.13.0
-## explicit; go 1.17
+# golang.org/x/text v0.13.1-0.20231011215848-6c97a165dd66
+## explicit; go 1.18
 golang.org/x/text/secure/bidirule
 golang.org/x/text/transform
 golang.org/x/text/unicode/bidi