joeshaw opened issue #5202:
Test Case
Add
tracing: falseto thefrom_witx!()definition incrates/wiggle/tests/atoms_async.rsSteps to Reproduce
cargo test -p wiggleExpected Results
Successful test run
Actual Results
error[E0728]: `await` is only allowed inside `async` functions and blocks --> crates/wiggle/tests/atoms_async.rs:8:1 | 8 | / wiggle::from_witx!({ 9 | | witx: ["$CARGO_MANIFEST_DIR/tests/atoms.witx"], 10 | | async: *, 11 | | tracing: false, 12 | | }); | | ^ | | | | |__only allowed inside `async` functions and blocks | this is not `async` | = note: this error originates in the macro `wiggle::from_witx` (in Nightly builds, run with -Z macro-backtrace for more info)Versions and Environment
Wasmtime version or commit: Current HEAD, 387426e7f.
Operating system: macOS 12.6
Architecture: x86_64
joeshaw labeled issue #5202:
Test Case
Add
tracing: falseto thefrom_witx!()definition incrates/wiggle/tests/atoms_async.rsSteps to Reproduce
cargo test -p wiggleExpected Results
Successful test run
Actual Results
error[E0728]: `await` is only allowed inside `async` functions and blocks --> crates/wiggle/tests/atoms_async.rs:8:1 | 8 | / wiggle::from_witx!({ 9 | | witx: ["$CARGO_MANIFEST_DIR/tests/atoms.witx"], 10 | | async: *, 11 | | tracing: false, 12 | | }); | | ^ | | | | |__only allowed inside `async` functions and blocks | this is not `async` | = note: this error originates in the macro `wiggle::from_witx` (in Nightly builds, run with -Z macro-backtrace for more info)Versions and Environment
Wasmtime version or commit: Current HEAD, 387426e7f.
Operating system: macOS 12.6
Architecture: x86_64
pchickey closed issue #5202:
Test Case
Add
tracing: falseto thefrom_witx!()definition incrates/wiggle/tests/atoms_async.rsSteps to Reproduce
cargo test -p wiggleExpected Results
Successful test run
Actual Results
error[E0728]: `await` is only allowed inside `async` functions and blocks --> crates/wiggle/tests/atoms_async.rs:8:1 | 8 | / wiggle::from_witx!({ 9 | | witx: ["$CARGO_MANIFEST_DIR/tests/atoms.witx"], 10 | | async: *, 11 | | tracing: false, 12 | | }); | | ^ | | | | |__only allowed inside `async` functions and blocks | this is not `async` | = note: this error originates in the macro `wiggle::from_witx` (in Nightly builds, run with -Z macro-backtrace for more info)Versions and Environment
Wasmtime version or commit: Current HEAD, 387426e7f.
Operating system: macOS 12.6
Architecture: x86_64
Last updated: Dec 06 2025 at 06:05 UTC