Skip to content

Conversation

@knz
Copy link
Contributor

@knz knz commented Sep 20, 2022

Found while investigating cockroachdb/cockroach#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.

Inspired from https://go-review.googlesource.com/c/go/+/175260


This change is Reviewable

@knz knz requested review from nvb and yuzefovich September 20, 2022 14:12
If an error struct implements `error` by value and the struct is
incomparable, the previous implementation of `Is` would panic. This
patch fixes it.

Inspired from https://go-review.googlesource.com/c/go/+/175260
Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nvanbenschoten)

@knz knz merged commit d402f91 into cockroachdb:master Sep 20, 2022
@knz knz deleted the 20220920-comp branch September 20, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants