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

VisitOperator: implement delegates for Box<VisitOperator> #883

Merged

Conversation

nagisa
Copy link
Contributor

@nagisa nagisa commented Jan 20, 2023

This is also fine because Box implements DerefMut. Pretty useful for people (like me) who have a Box<dyn VisitOperator>, but can't use &dyn because of the borrowck limitations around how it handles HRTBs.

@nagisa
Copy link
Contributor Author

nagisa commented Jan 20, 2023

It would be awesome to have a wasmparser release once this lands.

This is also fine because `Box` implements DerefMut. Pretty useful for
people (like me) who have a `Box<dyn VisitOperator`, but can't use
`&dyn` because of the borrowck limitations around how it handles HRTBs.
@nagisa nagisa force-pushed the visit-operator-default-impl-for-box branch from 19b6e9d to 70239bb Compare January 20, 2023 17:47
@alexcrichton alexcrichton enabled auto-merge (squash) January 20, 2023 17:55
@alexcrichton alexcrichton merged commit 9a51f6d into bytecodealliance:main Jan 20, 2023
@alexcrichton
Copy link
Member

Sure yeah I can publish today. I think #882 will want a publish shortly after merging as well so I'll get that too.

@nagisa nagisa deleted the visit-operator-default-impl-for-box branch January 20, 2023 18:34
@alexcrichton alexcrichton mentioned this pull request Jan 20, 2023
@alexcrichton
Copy link
Member

I stepped over myself a bit during publication but these crates are now all published on crates.io

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.

2 participants