x/tools/go/analysis/passes/copylock: allows assignment of composite literal with a "lock" #43044
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
The copylocks checker does not complain about
but does complain about
(as expected).
nonCopyableType
looks something like:where
sync.NoCopy
ishttps://github.com/google/gvisor/blob/a97ceec01bc464c9efa5d8140906c46f637e9002/pkg/sync/nocopy.go#L22
I think this is because of
go/src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go
Line 74 in e10c94a
The text was updated successfully, but these errors were encountered: