Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/analysis/passes/unsafeptr: add tests using generics
Unlike with some other analyzers, it did not seem worthwhile to consider a type parameter's type set when looking for incorrect conversions to unsafe.Pointer. There's probably no reason to have a type parameter with uintptr structural type. Add some sanity-check tests for the behavior of this analyzer with respect to generic code. Updates golang/go#48704 Change-Id: Ibc3180c6eba9c2c88ea2220b1c84cd27971a6700 Reviewed-on: https://go-review.googlesource.com/c/tools/+/360174 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
- Loading branch information