Closed sevein closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
3c851dd
) 45.30% compared to head (2ff601c
) 45.29%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
In preparation for the go1.22 release, this pull request removes the copy of the loop variable that we used to need to prevent sharing in per-iteration closures or goroutines. I haven't found yet a tool that can remove these automatically, for now I find them in vscode using
\b(\w+)\s*:=\s*\1\b$
. Or:I'll keep this as a draft until go1.22 is released.
Context: https://go.dev/wiki/LoopvarExperiment.