ci: bump to go 1.23 (#453)

Upgrade to Go 1.23.

Upgrade also requires bumping `golangci-lint` to v1.62.2, and upgrading
third-party test versions for some failing cases.
This commit is contained in:
Michael McLoughlin
2024-12-22 19:01:48 -05:00
committed by GitHub
parent 3b84ecd27b
commit b985ff5775
31 changed files with 88 additions and 100 deletions

View File

@@ -78,7 +78,7 @@ func TestAllocatorPriority(t *testing.T) {
a.Add(x[i].ID())
}
for i := 0; i < n; i++ {
for i := range n {
for j := i + 1; j < n; j++ {
a.AddInterference(x[i].ID(), x[j].ID())
}

View File

@@ -39,7 +39,7 @@ func CFG(fn *ir.Function) error {
n := len(is)
// Populate successors.
for i := 0; i < n; i++ {
for i := range n {
cur := is[i]
var nxt *ir.Instruction
if i+1 < n {

View File

@@ -120,7 +120,7 @@ func TestAllocateRegistersBasePointerDeprioritized(t *testing.T) {
ctx.SignatureExpr("func() uint64")
x := make([]reg.GPVirtual, n)
for i := 0; i < n; i++ {
for i := range n {
x[i] = ctx.GP64()
ctx.MOVQ(operand.U64(i), x[i])
}