Skip to content

Commit 5628443

Browse files
dmitshurgopherbot
authored andcommitted
gopls/internal/test/marker: remove runtime.GOROOT from format.txt case
The runtime.GOROOT function is about to be marked as deprecated, which will generate a diagnostic that isn't expected in format.txt test case. Pick another hopefully somewhat future-proof identifier, since dealing with this doesn't seem to be in scope of this test case. For golang/go#51473. Change-Id: I54d7ed0b43860bcd41938328211797a0cdd60e36 Reviewed-on: https://go-review.googlesource.com/c/tools/+/564275 Auto-Submit: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 6d9ecf2 commit 5628443

File tree

1 file changed

+2
-2
lines changed
  • gopls/internal/test/marker/testdata/format

1 file changed

+2
-2
lines changed

gopls/internal/test/marker/testdata/format/format.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func hello() {
4343
}
4444

4545
func hi() {
46-
runtime.GOROOT()
46+
runtime.NumCPU()
4747
fmt.Printf("")
4848

4949
log.Printf("")
@@ -63,7 +63,7 @@ func hello() {
6363
}
6464

6565
func hi() {
66-
runtime.GOROOT()
66+
runtime.NumCPU()
6767
fmt.Printf("")
6868

6969
log.Printf("")

0 commit comments

Comments
 (0)