Instance is Send even if it contains !Send host functions #1074
Labels
bug
Something isn't working
📦 lib-deprecated
About the deprecated crates
🔈soundness
Bugs causing an unsound API
Describe the bug
In
wasmer-runtime
0.11, Instance is alwaysSend
, but it can contain host functions which are notSend
.Steps to reproduce
Here's an example program that sends an instance containing a non-Send value (Rc) to another thread:
Expected behavior
It should not compile.
Actual behavior
It does compile.
Additional context
The implementations of ExternalFunction need to add a
+ Send
to theFn
type parameter.The text was updated successfully, but these errors were encountered: