all: clean up TODO after fixing issue 44505

For #44505

Change-Id: I89220be02372b5340cb987bf2ac870a9346a8c8f
Reviewed-on: https://go-review.googlesource.com/c/go/+/421079
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
hopehook 2022-08-04 10:12:20 +08:00 committed by Matthew Dempsky
parent 39728f412d
commit 91d5ce3def
5 changed files with 11 additions and 12 deletions

View file

@ -5,13 +5,13 @@
package noder
import (
"bytes"
"fmt"
"internal/goversion"
"internal/pkgbits"
"io"
"runtime"
"sort"
"strings"
"cmd/compile/internal/base"
"cmd/compile/internal/inline"
@ -180,7 +180,7 @@ func writePkgStub(noders []*noder) string {
w.Flush()
}
var sb bytes.Buffer // TODO(mdempsky): strings.Builder after #44505 is resolved
var sb strings.Builder
pw.DumpTo(&sb)
// At this point, we're done with types2. Make sure the package is