]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: extend copylocks to anonymous functions
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 13 Jun 2015 02:49:45 +0000 (19:49 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 13 Jun 2015 03:07:43 +0000 (03:07 +0000)
commitff8f3f0fa126c71059f53f81be3b87237fb55546
tree516563c2d40782f04872767dc0bd31019a8c35fe
parentcb2d02c8032aee0e253eb1091556408cbf205f41
cmd/vet: extend copylocks to anonymous functions

Running -copylocks over a large corpus generates 1507 warnings.
Of those, only 3 are from the new anonymous function check,
but they are all bugs.

Fixes #10927.

Change-Id: I2672f6871036bed711beec5f88bc39aa8b3b6a94
Reviewed-on: https://go-review.googlesource.com/11051
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/vet/copylock.go
src/cmd/vet/testdata/copylock_func.go