go/src
Ian Lance Taylor 003a68bc7f cmd/vet: remove copylock warning about result types and calls
Don't issue a copylock warning about a result type; the function may
return a composite literal with a zero value, which is OK.

Don't issue a copylock warning about a function call on the RHS, or an
indirection of a function call; the function may return a composite
literal with a zero value, which is OK.

Updates #16227.

Change-Id: I94f0e066bbfbca5d4f8ba96106210083e36694a2
Reviewed-on: https://go-review.googlesource.com/24711
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2016-07-04 03:23:23 +00:00
..
archive
bufio
builtin
bytes bytes: use Run method for benchmarks 2016-06-03 07:03:03 +00:00
cmd cmd/vet: remove copylock warning about result types and calls 2016-07-04 03:23:23 +00:00
compress compress/flate: don't ignore dict in Reader.Reset 2016-06-27 21:28:34 +00:00
container all: fixed a handful of typos 2016-05-24 21:18:03 +00:00
context context: cancel the context in ExampleWithTimeout, with explanation 2016-06-30 19:56:02 +00:00
crypto crypto/ecdsa: Update documentation for Sign 2016-06-29 18:44:36 +00:00
database/sql database/sql: deflake TestPendingConnsAfterErr and fix races, panics 2016-06-28 21:37:53 +00:00
debug debug/pe: handle files with no string table 2016-06-19 05:18:09 +00:00
encoding encoding/gob: avoid allocating string for map key 2016-06-28 01:50:48 +00:00
errors
expvar expvar: slightly expand documentation for Var's String method 2016-05-19 04:20:47 +00:00
flag flag: recognize "0s" as the zero value for a flag.Duration 2016-05-31 23:45:47 +00:00
fmt
go cmd/compile: don't lose //go:nointerface pragma in export data 2016-07-01 19:20:11 +00:00
hash hash/crc64: Use slicing by 8. 2016-05-18 14:38:04 +00:00
html html/template: update security model link 2016-06-23 04:30:07 +00:00
image
index/suffixarray
internal internal/trace: err if binary is not supplied for old trace 2016-06-16 16:22:03 +00:00
io io: use SeekStart, SeekCurrent, and SeekEnd in io.Seeker documentation 2016-05-29 06:52:45 +00:00
log
math math/rand: fix io.Reader implementation 2016-06-27 22:18:09 +00:00
mime
net net/http: update bundled http2 2016-06-30 23:21:30 +00:00
os os/exec: start checking for context cancelation in Start 2016-06-30 16:35:56 +00:00
path path/filepath: prevent infinite recursion on Windows on UNC input 2016-05-31 00:11:32 +00:00
reflect reflect, runtime: optimize Name method 2016-06-28 12:28:05 +00:00
regexp unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00
runtime runtime/internal/sys: implement Ctz and Bswap in assembly for 386 2016-06-30 19:35:44 +00:00
sort
strconv strconv: clarify doc for Atoi return type 2016-06-28 18:16:25 +00:00
strings strings: fix and reenable amd64 Index for 17-31 byte strings 2016-05-27 22:57:32 +00:00
sync sync: document that RWMutex read locks may not be held recursively 2016-05-31 00:22:56 +00:00
syscall syscall: fix missing use of use function in Getfsstat 2016-07-04 03:17:02 +00:00
testing testing: document that logs are dumped to standard output 2016-06-23 04:31:19 +00:00
text text/template: clarify the default formatting used for values 2016-06-21 02:15:44 +00:00
time time: update documentation for Duration.String regarding the zero value 2016-06-24 19:41:45 +00:00
unicode unicode: upgrade to version 9.0.0 2016-06-28 15:08:11 +00:00
unsafe
vendor/golang.org/x/net vendor: update vendored route 2016-06-02 00:59:46 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
make.bat build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
make.rc build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
run.bat build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
run.rc build: unset GOBIN during build 2016-05-19 18:40:53 +00:00