Skip to content

Commit 283fce2

Browse files
adonovangopherbot
authored andcommitted
x/tools: drop go1.18 support
Updates golang/go#64407 Change-Id: I247a7ff7f07613674f8e31e4cb9c5a68762d2203 Reviewed-on: https://go-review.googlesource.com/c/tools/+/567418 Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 7f348c7 commit 283fce2

File tree

118 files changed

+186
-1584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+186
-1584
lines changed

cmd/bisect/main_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
"testing"
1818

1919
"golang.org/x/tools/internal/bisect"
20-
"golang.org/x/tools/internal/compat"
2120
"golang.org/x/tools/internal/diffp"
2221
"golang.org/x/tools/txtar"
2322
)
@@ -82,7 +81,7 @@ func Test(t *testing.T) {
8281
have[color] = true
8382
}
8483
if m.ShouldReport(uint64(i)) {
85-
out = compat.Appendf(out, "%s %s\n", color, bisect.Marker(uint64(i)))
84+
out = fmt.Appendf(out, "%s %s\n", color, bisect.Marker(uint64(i)))
8685
}
8786
}
8887
err = nil

copyright/copyright.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build go1.18
6-
// +build go1.18
7-
85
// Package copyright checks that files have the correct copyright notices.
96
package copyright
107

copyright/copyright_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build go1.18
6-
// +build go1.18
7-
85
package copyright
96

107
import (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module golang.org/x/tools
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/yuin/goldmark v1.4.13

go/analysis/passes/asmdecl/arches_go118.go

Lines changed: 0 additions & 12 deletions
This file was deleted.

go/analysis/passes/asmdecl/arches_go119.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

go/analysis/passes/asmdecl/asmdecl.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ var (
9696
asmArchRISCV64 = asmArch{name: "riscv64", bigEndian: false, stack: "SP", lr: true, retRegs: []string{"X10", "F10"}}
9797
asmArchS390X = asmArch{name: "s390x", bigEndian: true, stack: "R15", lr: true}
9898
asmArchWasm = asmArch{name: "wasm", bigEndian: false, stack: "SP", lr: false}
99+
asmArchLoong64 = asmArch{name: "loong64", bigEndian: false, stack: "R3", lr: true}
99100

100101
arches = []*asmArch{
101102
&asmArch386,
@@ -111,11 +112,11 @@ var (
111112
&asmArchRISCV64,
112113
&asmArchS390X,
113114
&asmArchWasm,
115+
&asmArchLoong64,
114116
}
115117
)
116118

117119
func init() {
118-
arches = append(arches, additionalArches()...)
119120
for _, arch := range arches {
120121
arch.sizes = types.SizesFor("gc", arch.name)
121122
if arch.sizes == nil {

go/analysis/passes/assign/testdata/src/typeparams/typeparams.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
// This file contains tests for the useless-assignment checker.
66

7-
//go:build go1.18
8-
97
package testdata
108

119
import "math/rand"

go/analysis/passes/assign/testdata/src/typeparams/typeparams.go.golden

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
// This file contains tests for the useless-assignment checker.
66

7-
//go:build go1.18
8-
97
package testdata
108

119
import "math/rand"

go/analysis/passes/bools/testdata/src/typeparams/typeparams.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
// This file contains tests for the bool checker.
66

7-
//go:build go1.18
8-
97
package typeparams
108

119
type T[P interface{ ~int }] struct {

0 commit comments

Comments
 (0)