Closed knz closed 1 year ago
Found while investigating https://github.com/cockroachdb/cockroach/issues/87555
If an error struct implements error by value and the struct is incomparable, the previous implementation of Is would panic. This patch fixes it.
error
Is
Inspired from https://go-review.googlesource.com/c/go/+/175260
This change is
Found while investigating https://github.com/cockroachdb/cockroach/issues/87555
If an error struct implements
error
by value and the struct is incomparable, the previous implementation ofIs
would panic. This patch fixes it.Inspired from https://go-review.googlesource.com/c/go/+/175260
This change is![Reviewable](https://reviewable.io/review_button.svg)