diff --git a/src/cmd/dist/buildtool.go b/src/cmd/dist/buildtool.go index d1094f49fd023..09fa44e42919f 100644 --- a/src/cmd/dist/buildtool.go +++ b/src/cmd/dist/buildtool.go @@ -312,9 +312,6 @@ var ( func bootstrapFixImports(srcFile string) string { text := readfile(srcFile) - if !strings.Contains(srcFile, "/cmd/") && !strings.Contains(srcFile, `\cmd\`) { - text = regexp.MustCompile(`\bany\b`).ReplaceAllString(text, "interface{}") - } lines := strings.SplitAfter(text, "\n") inBlock := false inComment := false