]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.20] all: make safe for new vet analyzer
authorHeschi Kreinick <heschi@google.com>
Wed, 21 Jun 2023 20:40:48 +0000 (16:40 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 21 Jun 2023 21:25:57 +0000 (21:25 +0000)
commitc32f1afb4147a7380d9c2efa8503434198190b3a
tree12af8009d16c5af33d50d1ada86d6abd0312d388
parentc7b145655b0e7feeff65bee202eda849fa3e3452
[release-branch.go1.20] all: make safe for new vet analyzer

The unused analyzer handles dot imports now, so a few tests
have picked up vet errors. This CL errors like:

context/x_test.go:524:47: result of context.WithValue call not used

This is a manual cherry-pick of CL 493598.

Updates #60058
Fixes #60927

Change-Id: I92906ef7967e14a85fa974e6307fd689e3ff3dba
Reviewed-on: https://go-review.googlesource.com/c/go/+/504977
Auto-Submit: Heschi Kreinick <heschi@google.com>
TryBot-Bypass: Heschi Kreinick <heschi@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/context/context_test.go
src/fmt/fmt_test.go