Skip to content

Commit 88dee90

Browse files
cuonglmgopherbot
authored andcommitted
cmd/dist: do not rewrite "any" -> "interface{}"
Since go1.22, generic can now be used when building bootstrap toolchain. Updates #54265 Updates #64751 Change-Id: I93209fc23c92114d37ef36787ea2b520de3ed89d Reviewed-on: https://go-review.googlesource.com/c/go/+/609915 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Cuong Manh Le <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 4448313 commit 88dee90

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cmd/dist/buildtool.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,6 @@ var (
312312

313313
func bootstrapFixImports(srcFile string) string {
314314
text := readfile(srcFile)
315-
if !strings.Contains(srcFile, "/cmd/") && !strings.Contains(srcFile, `\cmd\`) {
316-
text = regexp.MustCompile(`\bany\b`).ReplaceAllString(text, "interface{}")
317-
}
318315
lines := strings.SplitAfter(text, "\n")
319316
inBlock := false
320317
inComment := false

0 commit comments

Comments
 (0)