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

[types] Add macro to auto-derive TryFrom for VM errors #4656

Closed
wants to merge 1 commit into from

Conversation

tzakian
Copy link
Contributor

@tzakian tzakian commented Jun 22, 2020

Inspired by: rust-lang/rfcs#2783 (comment) that allowed the implementation of TryFrom for an enum, this implements this with some slight changes: In particular to have proper error messages, and to allow testing of the try-from that is derived from it to make sure that it is behaving as expected.

Copy link

@dariorussi-zz dariorussi-zz left a comment

Choose a reason for hiding this comment

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

accepting though I would like to hear others.
I am not sure about this but anything works for me ;)

@tzakian
Copy link
Contributor Author

tzakian commented Jun 24, 2020

@bors-libra r=dariorussi

@bors-libra
Copy link
Contributor

📌 Commit 633b27d has been approved by dariorussi

@bors-libra
Copy link
Contributor

⌛ Testing commit 633b27d with merge 82567cb...

@github-actions
Copy link

Cluster Test Result

all up : 1318 TPS, 3428 ms latency, 4150 ms p99 latency, no expired txns

Repro cmd:

./scripts/cti --tag land_82567cbf --run bench

@bors-libra
Copy link
Contributor

☀️ Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: dariorussi
Pushing 82567cb to master...

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.

None yet

3 participants