Skip to content

More standard derives for Error#277

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
BP-WG:fix/error-derive
Feb 10, 2021
Merged

More standard derives for Error#277
apoelstra merged 1 commit intorust-bitcoin:masterfrom
BP-WG:fix/error-derive

Conversation

@dr-orlovsky
Copy link
Copy Markdown
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

Copy link
Copy Markdown
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

Copy link
Copy Markdown
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
@dr-orlovsky
Copy link
Copy Markdown
Contributor Author

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

@Kixunil
Copy link
Copy Markdown
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?

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.

4 participants