alexcrichton opened PR #5238 from prepare-winch-update
to main
:
This commit prepares the
winch
crate for updatingwasm-tools
, notably changing a bit about how the visitation of operators works. This moves the function body and wasm validator out of theCodeGen
structure and into parameters threaded into the emission of the actual function.Additionally the
VisitOperator
implementation was updated to remove the explicit calls to the validator, favoring instead a macro-generated solution to guarantee that all validation happens before any translation proceeds. This means that theVisitOperator for CodeGen
impl is now infallible and the various methods have been inlined into the trait methods as well as removing theResult<_>
.Finally this commit updates translation to call
validator.finish(..)
which is required to perform the final validation steps of the function body.<!--
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.
-->
saulecabrera submitted PR review.
saulecabrera submitted PR review.
alexcrichton merged PR #5238.
Last updated: Dec 23 2024 at 13:07 UTC