Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: false positive copylocks check on len(array) and cap(array) #18374
The commit bd9aa98 introduced false positive for
var a sync.Mutex // vet incorrectly emits 'function call copies lock value: sync.Mutex' on the following lines: n := len(a) m := cap(a)
The commit bd9aa98 was introduced in go1.8, so this false positive should be fixed in go1.8 too.
I'll send the corresponding CL fixing this issue in a few minutes.