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.
The text was updated successfully, but these errors were encountered: