]> Cypherpunks repositories - gostls13.git/commit
cmd/go: move switch-only code from select.go to switch.go
authorRuss Cox <rsc@golang.org>
Mon, 5 Jun 2023 02:49:28 +0000 (22:49 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jun 2023 19:22:34 +0000 (19:22 +0000)
commite23273ddd4145d41dd6a6b90b4ca5729aa200db8
tree78ae52f92db6bf36e85cd2a79cca7d0852791a66
parent35268a996052ca8716caf94467c2ed61140f3862
cmd/go: move switch-only code from select.go to switch.go

Move NewerToolchain and related code from select.go to switch.go
because it is only used for the Switch operation, not for Select.
This is a separate CL containing only the code move, separate
from any other changes.

For #57001.

Change-Id: I41cf0629b41fd55c30a1e799d857c06039ee99b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/500798
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/toolchain/select.go
src/cmd/go/internal/toolchain/switch.go