cmd/vet: do not report variable capture for loop variables with the new lifetime rules #63888
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
This issue tracks support in x/tools/go/analysis/passes/loopclosure for the new loop variable lifetime rules of https://go.dev/issue/60078, available now behind GOEXPERIMENT=loopvar and likely on for language versions >= 1.22.
Marking as a release blocker as this will make cmd/vet would report a large number of false positives due to the new language feature.
The text was updated successfully, but these errors were encountered: