From 8da2be3cd01a27830f7b2209f30850b1e1c83f00 Mon Sep 17 00:00:00 2001 From: gojkovicmatija99 Date: Mon, 9 Mar 2026 22:52:34 +0100 Subject: cmd/compile: remove loop variable capture workarounds Since Go 1.22, loop variables have per-iteration scope, making the x := x this pattern unnecessary for goroutine capture. No issue required for this trivial cleanup. Change-Id: I00d98522537fc2b9a6b4d598c8aa21b447628d41 Reviewed-on: https://go-review.googlesource.com/c/go/+/753400 Auto-Submit: Robert Griesemer LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Reviewed-by: Robert Griesemer --- src/cmd/compile/internal/noder/noder.go | 1 - 1 file changed, 1 deletion(-) (limited to 'src/cmd/compile/internal/noder/noder.go') diff --git a/src/cmd/compile/internal/noder/noder.go b/src/cmd/compile/internal/noder/noder.go index 79a9078333..973d917784 100644 --- a/src/cmd/compile/internal/noder/noder.go +++ b/src/cmd/compile/internal/noder/noder.go @@ -41,7 +41,6 @@ func LoadPackage(filenames []string) { // Move the entire syntax processing logic into a separate goroutine to avoid blocking on the "sem". go func() { for i, filename := range filenames { - filename := filename p := noders[i] sem <- struct{}{} go func() { -- cgit v1.3