[tools] internal/typesinternal: suppress jsonv2 warning

0 views
Skip to first unread message

Madeline Kalil (Gerrit)

unread,
Aug 10, 2026, 5:42:32 PM (12 hours ago) Aug 10
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Alex Putman, golang...@luci-project-accounts.iam.gserviceaccount.com, golang-co...@googlegroups.com

Madeline Kalil submitted the change

Change information

Commit message:
internal/typesinternal: suppress jsonv2 warning

The GOEXPERIMENT=jsonv2 added in Go1.25 allows
imports of encoding/json/v2 and encoding/json/jsontext.

If the go version is at least 1.25, we should suppress
"too new" warnings for symbols in these packages
to avoid a false positive (since we don't know the specific
build tags when determining the too new symbols).

Fixes golang/go#80691
Change-Id: Id4f35e00c561f49d367da9e122c2bbc960c7f440
Reviewed-by: Alex Putman <apu...@golang.org>
Files:
  • A gopls/internal/test/marker/testdata/diagnostics/stdversion_jsonv2.txt
  • M internal/typesinternal/toonew.go
Change size: S
Delta: 2 files changed, 28 insertions(+), 0 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: Id4f35e00c561f49d367da9e122c2bbc960c7f440
Gerrit-Change-Number: 812840
Gerrit-PatchSet: 2
Gerrit-Owner: Madeline Kalil <mka...@google.com>
Gerrit-Reviewer: Alex Putman <apu...@golang.org>
Gerrit-Reviewer: Madeline Kalil <mka...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages