pchickey opened PR #2760 from pch/wiggle_error_reporting
to main
:
With the latest renovation to witx, wiggle no longer generates code that calls the
GuestErrorConversion
trait to transform aGuestError
into the function's error type. Instead, wiggle will trap execution if aGuestError
is thrown in generated code.This PR removes generation of the
GuestErrorConversion
trait. Users can delete their impls of it - they are dead code.I also fixed up the Display impl of the
GuestError::InFunc
variant to be more useful, and deletedGuestError::InDataField
because it was also dead code.
<!--Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
pchickey requested alexcrichton for a review on PR #2760.
alexcrichton submitted PR Review.
pchickey updated PR #2760 from pch/wiggle_error_reporting
to main
.
pchickey updated PR #2760 from pch/wiggle_error_reporting
to main
.
pchickey updated PR #2760 from pch/wiggle_error_reporting
to main
.
pchickey merged PR #2760.
Last updated: Nov 22 2024 at 16:03 UTC