Open uhthomas opened 2 years ago
@uhthomas Give me a code to reproduce it.
I got sources from github.com/protocolbuffers/protobuf-go and call loopointer but it did not panic.
$ go vet -vettool ./looppointer ./...
go: downloading github.com/google/go-cmp v0.5.5
# google.golang.org/protobuf/internal/impl_test
internal/impl/legacy_file_test.go:460:25: taking a pointer for the loop variable tt
internal/impl/legacy_file_test.go:460:35: taking a pointer for the loop variable tt
@mhindery if you have a code to reproduce, could you give me it?
Looks like it panics on https://pkg.go.dev/google.golang.org/protobuf.