Skip to content

Commit 177b88a

Browse files
alexcrichtonbongjunj
authored andcommitted
Fix a typo in the bounds of InstancePre::instantiate_async (bytecodealliance#11451)
The refactoring in bytecodealliance#10760 mistakenly switched the input argument to not be constrained with the same `T` as the store of the `InstancePre` itself.
1 parent 1a17230 commit 177b88a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/wasmtime/src/runtime/instance.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,11 @@ impl<T: 'static> InstancePre<T> {
853853
#[cfg(feature = "async")]
854854
pub async fn instantiate_async(
855855
&self,
856-
mut store: impl AsContextMut<Data: Send>,
857-
) -> Result<Instance> {
856+
mut store: impl AsContextMut<Data = T>,
857+
) -> Result<Instance>
858+
where
859+
T: Send,
860+
{
858861
let mut store = store.as_context_mut();
859862
let imports = pre_instantiate_raw(
860863
&mut store.0,

0 commit comments

Comments
 (0)