From 4bfc3a9d14c0b3bfcfe4ce987e47cda6720785a2 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 11 Nov 2025 14:48:22 -0500 Subject: std,cmd: go fix -any std cmd This change mechanically replaces all occurrences of interface{} by 'any' (where deemed safe by the 'any' modernizer) throughout std and cmd, minus their vendor trees. Since this fix is relatively numerous, it gets its own CL. Also, 'go generate go/types'. Change-Id: I14a6b52856c3291c1d27935409bca8d5fd4242a2 Reviewed-on: https://go-review.googlesource.com/c/go/+/719702 Commit-Queue: Alan Donovan Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Auto-Submit: Alan Donovan --- src/encoding/gob/encoder_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/encoding') diff --git a/src/encoding/gob/encoder_test.go b/src/encoding/gob/encoder_test.go index 3ee43fbc94..3810685cbd 100644 --- a/src/encoding/gob/encoder_test.go +++ b/src/encoding/gob/encoder_test.go @@ -1274,7 +1274,7 @@ func TestDecoderOverflow(t *testing.T) { 0x12, 0xff, 0xff, 0x2, 0x2, 0x20, 0x0, 0xf8, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x20, 0x20, 0x20, 0x20, 0x20, })) - var r interface{} + var r any err := dec.Decode(r) if err == nil { t.Fatalf("expected an error") -- cgit v1.3