-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/vet: false positives with new fmt verbs %x/%X for floating-point and complex numbers #34993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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: |
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 <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
Change https://golang.org/cl/202083 mentions this issue: |
Change https://golang.org/cl/237942 mentions this issue: |
…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 <[email protected]> Reviewed-by: Alan Donovan <[email protected]> (cherry picked from commit 04252ec) Reviewed-on: https://go-review.googlesource.com/c/tools/+/237942 Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
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: