Skip to content

Commit 1e71a49

Browse files
committed
support callback-less (AKA stackful) async lifts
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent d3afd51 commit 1e71a49

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

crates/core/src/abi.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,9 @@ impl<'a, B: Bindgen> Generator<'a, B> {
965965
});
966966
self.stack.pop().unwrap()
967967
}
968-
AbiVariant::GuestImportAsync | AbiVariant::GuestExportAsync => {
968+
AbiVariant::GuestImportAsync
969+
| AbiVariant::GuestExportAsync
970+
| AbiVariant::GuestExportAsyncStackful => {
969971
unreachable!()
970972
}
971973
};
@@ -1037,7 +1039,9 @@ impl<'a, B: Bindgen> Generator<'a, B> {
10371039
// the result is stored
10381040
AbiVariant::GuestExport => self.stack.pop().unwrap(),
10391041

1040-
AbiVariant::GuestImportAsync | AbiVariant::GuestExportAsync => {
1042+
AbiVariant::GuestImportAsync
1043+
| AbiVariant::GuestExportAsync
1044+
| AbiVariant::GuestExportAsyncStackful => {
10411045
unreachable!()
10421046
}
10431047
};
@@ -1175,7 +1179,9 @@ impl<'a, B: Bindgen> Generator<'a, B> {
11751179
self.stack.push(ptr);
11761180
}
11771181

1178-
AbiVariant::GuestImportAsync | AbiVariant::GuestExportAsync => {
1182+
AbiVariant::GuestImportAsync
1183+
| AbiVariant::GuestExportAsync
1184+
| AbiVariant::GuestExportAsyncStackful => {
11791185
unreachable!()
11801186
}
11811187
}

0 commit comments

Comments
 (0)