Stream: git-wasmtime

Topic: wasmtime / issue #5202 Wiggle: build failure with `tracin...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2022 at 16:50):

joeshaw opened issue #5202:

Test Case

Add tracing: false to the from_witx!() definition in crates/wiggle/tests/atoms_async.rs

Steps to Reproduce

cargo test -p wiggle

Expected 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

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2022 at 16:50):

joeshaw labeled issue #5202:

Test Case

Add tracing: false to the from_witx!() definition in crates/wiggle/tests/atoms_async.rs

Steps to Reproduce

cargo test -p wiggle

Expected 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

view this post on Zulip Wasmtime GitHub notifications bot (Nov 04 2022 at 18:43):

pchickey closed issue #5202:

Test Case

Add tracing: false to the from_witx!() definition in crates/wiggle/tests/atoms_async.rs

Steps to Reproduce

cargo test -p wiggle

Expected 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 23 2024 at 12:05 UTC