cmd/vet: false positives with new fmt verbs %x/%X for floating-point and complex numbers #34993
Comments
I believe the fix is trivial. I'll send a CL for x/tools and then re-vendor the copy in src/cmd after that's merged. |
Change https://golang.org/cl/202041 mentions this issue: |
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Oct 18, 2019
These verbs are supported as of Go 1.13. Updates golang/go#34993 Change-Id: Ib7892e45b51073e3771bebb652a8fe3a1c6ae3c6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/202041 Run-TryBot: Caleb Spare <cespare@gmail.com> Reviewed-by: Alan Donovan <adonovan@google.com>
Change https://golang.org/cl/202083 mentions this issue: |
Change https://golang.org/cl/237942 mentions this issue: |
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Jun 15, 2020
…oat/complex types These verbs are supported as of Go 1.13. Updates golang/go#34993. For golang/go#39287. Change-Id: Ib7892e45b51073e3771bebb652a8fe3a1c6ae3c6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/202041 Run-TryBot: Caleb Spare <cespare@gmail.com> Reviewed-by: Alan Donovan <adonovan@google.com> (cherry picked from commit 04252ec) Reviewed-on: https://go-review.googlesource.com/c/tools/+/237942 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think vet has been updated for the new %x and %X verbs for floating-point and complex numbers.
I checked with Go 1.13 and tip. Here's a demo:
https://play.golang.org/p/-cexq-umzUo
Code:
Output:
The text was updated successfully, but these errors were encountered: