Skip to content
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

More standard derives for Error #277

Merged
merged 1 commit into from Feb 10, 2021

Conversation

dr-orlovsky
Copy link
Contributor

According to the discussion in rust-bitcoin/rust-bitcoin#555

This PR is required for further work on error types derives in rust-bitcoin

@dr-orlovsky dr-orlovsky added this to Ready for review in Derive unification Jan 30, 2021
Copy link
Contributor

@sgeisler sgeisler left a comment

Choose a reason for hiding this comment

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

utACK 519857c

Derive unification automation moved this from Ready for review to Merge Ready Feb 10, 2021
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ack 519857c

@apoelstra apoelstra merged commit 3bff596 into rust-bitcoin:master Feb 10, 2021
Derive unification automation moved this from Merge Ready to Done Feb 10, 2021
@dr-orlovsky
Copy link
Contributor Author

We need a new minor release in order to unblock rust-bitcoin/rust-bitcoin#559

@Kixunil
Copy link
Collaborator

Kixunil commented Feb 10, 2022

Shit, I didn't see this. 😞 I don't think over-promising traits on error types is a good idea. We don't know which variants will come in the future. This is mainly concerning for Copy but also Ord/PartialOrd are weird - what does it mean to order errors? Is reordering variants a breaking change then?

Eq/PartialEq are on the edge in my mind but I think acceptable.

Can we remove Copy, Ord, PartialOrd and stick to it?

Derive unification automation moved this from Done to Merge Ready Apr 1, 2022
Derive unification automation moved this from Merge Ready to Done Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants