alisomay opened issue #6674:
Steps to Reproduce
cargo init temp_project --bin
- Add
wasmtime-wasi = "=10.0.1"
as a dependency- Run
cargo build
Expected Results
Successful build.
Actual Results
Blocking waiting for file lock on build directory Compiling log v0.4.19 Compiling indexmap v1.9.3 Compiling rustix v0.37.21 Compiling crc32fast v1.3.2 Compiling memchr v2.5.0 Compiling hashbrown v0.13.2 Compiling pulldown-cmark v0.8.0 Compiling wasmtime-jit-debug v10.0.1 Compiling psm v0.1.21 Compiling witx v0.9.1 Compiling tracing v0.1.37 Compiling wasmparser v0.107.0 Compiling gimli v0.27.3 Compiling object v0.30.4 Compiling wit-parser v0.8.0 Compiling wiggle-generate v10.0.1 Compiling wasmtime-fiber v10.0.1 Compiling memfd v0.6.3 Compiling wasmtime-wit-bindgen v10.0.1 Compiling wiggle-macro v10.0.1 Compiling wasmtime-component-macro v10.0.1 Compiling addr2line v0.19.0 Compiling wasmtime-types v10.0.1 Compiling wasmprinter v0.2.59 Compiling wasmtime-environ v10.0.1 Compiling wasmtime-runtime v10.0.1 Compiling wasmtime-jit v10.0.1 Compiling wasmtime v10.0.1 Compiling wiggle v10.0.1 Compiling wasi-common v10.0.1 Compiling wasi-cap-std-sync v10.0.1 Compiling wasmtime-wasi v10.0.1 error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:408:26 | 408 | atim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:409:26 | 409 | mtim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:414:26 | 414 | atim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:415:26 | 415 | mtim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` For more information about this error, try `rustc --explain E0631`. error: could not compile `wasmtime-wasi` (lib) due to 4 previous errors
Versions and Environment
- Rust
1.70
stable-aarch64-apple-darwin
Wasmtime version or commit:
10.0.1
Operating system: MacOS Ventura 13.0.1 (M1 Max)
Architecture:
stable-aarch64-apple-darwin
Extra Info
This started to happen after a
cargo clean
.
Then I've made a brand new project to test if it is because of my environment and the results were the same.
alisomay edited issue #6674:
Steps to Reproduce
cargo init temp_project --bin
- Add
wasmtime-wasi = "=10.0.1"
as a dependency- Run
cargo build
Expected Results
Successful build.
Actual Results
Blocking waiting for file lock on build directory Compiling log v0.4.19 Compiling indexmap v1.9.3 Compiling rustix v0.37.21 Compiling crc32fast v1.3.2 Compiling memchr v2.5.0 Compiling hashbrown v0.13.2 Compiling pulldown-cmark v0.8.0 Compiling wasmtime-jit-debug v10.0.1 Compiling psm v0.1.21 Compiling witx v0.9.1 Compiling tracing v0.1.37 Compiling wasmparser v0.107.0 Compiling gimli v0.27.3 Compiling object v0.30.4 Compiling wit-parser v0.8.0 Compiling wiggle-generate v10.0.1 Compiling wasmtime-fiber v10.0.1 Compiling memfd v0.6.3 Compiling wasmtime-wit-bindgen v10.0.1 Compiling wiggle-macro v10.0.1 Compiling wasmtime-component-macro v10.0.1 Compiling addr2line v0.19.0 Compiling wasmtime-types v10.0.1 Compiling wasmprinter v0.2.59 Compiling wasmtime-environ v10.0.1 Compiling wasmtime-runtime v10.0.1 Compiling wasmtime-jit v10.0.1 Compiling wasmtime v10.0.1 Compiling wiggle v10.0.1 Compiling wasi-common v10.0.1 Compiling wasi-cap-std-sync v10.0.1 Compiling wasmtime-wasi v10.0.1 error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:408:26 | 408 | atim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:409:26 | 409 | mtim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:414:26 | 414 | atim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:415:26 | 415 | mtim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` For more information about this error, try `rustc --explain E0631`. error: could not compile `wasmtime-wasi` (lib) due to 4 previous errors
Versions and Environment
- Rust
1.70
stable-aarch64-apple-darwin
Wasmtime version or commit:
10.0.1
Operating system: MacOS Ventura 13.0.1 (M1 Max)
Architecture:
stable-aarch64-apple-darwin
Extra Info
This started to happen after a
cargo clean
.
Then I've made a brand new project to test if it is because of my environment and the results were the same.
The errors do not resolve when it is added as a git dependency either.
wasmtime-wasi = { git = "https://github.com/bytecodealliance/wasmtime.git" }
alisomay edited issue #6674:
Steps to Reproduce
cargo init temp_project --bin
- Add
wasmtime-wasi = "=10.0.1"
as a dependency- Run
cargo build
Expected Results
Successful build.
Actual Results
Blocking waiting for file lock on build directory Compiling log v0.4.19 Compiling indexmap v1.9.3 Compiling rustix v0.37.21 Compiling crc32fast v1.3.2 Compiling memchr v2.5.0 Compiling hashbrown v0.13.2 Compiling pulldown-cmark v0.8.0 Compiling wasmtime-jit-debug v10.0.1 Compiling psm v0.1.21 Compiling witx v0.9.1 Compiling tracing v0.1.37 Compiling wasmparser v0.107.0 Compiling gimli v0.27.3 Compiling object v0.30.4 Compiling wit-parser v0.8.0 Compiling wiggle-generate v10.0.1 Compiling wasmtime-fiber v10.0.1 Compiling memfd v0.6.3 Compiling wasmtime-wit-bindgen v10.0.1 Compiling wiggle-macro v10.0.1 Compiling wasmtime-component-macro v10.0.1 Compiling addr2line v0.19.0 Compiling wasmtime-types v10.0.1 Compiling wasmprinter v0.2.59 Compiling wasmtime-environ v10.0.1 Compiling wasmtime-runtime v10.0.1 Compiling wasmtime-jit v10.0.1 Compiling wasmtime v10.0.1 Compiling wiggle v10.0.1 Compiling wasi-common v10.0.1 Compiling wasi-cap-std-sync v10.0.1 Compiling wasmtime-wasi v10.0.1 error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:408:26 | 408 | atim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:409:26 | 409 | mtim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:414:26 | 414 | atim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:415:26 | 415 | mtim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` For more information about this error, try `rustc --explain E0631`. error: could not compile `wasmtime-wasi` (lib) due to 4 previous errors
Versions and Environment
- Rust
1.70
stable-aarch64-apple-darwin
Wasmtime version or commit:
10.0.1
Operating system: MacOS Ventura 13.0.1 (M1 Max)
Architecture:
stable-aarch64-apple-darwin
Extra Info
This started to happen after a
cargo clean
.
Then I've made a brand new project to test if it is because of my environment and the results were the same.
The errors do not resolve when it is added as a git dependency either.
wasmtime-wasi = { git = "https://github.com/bytecodealliance/wasmtime.git" }
10.0.0
also throws the same compiler error.
alisomay commented on issue #6674:
A workaround is pinning.
[dependencies] wasmtime-wasi = "=10.0.1" cap-fs-ext = "=1.0.15" cap-primitives = "=1.0.15" cap-std = "=1.0.15"
cap-x
1.0.16
and up is the issue.When we run
cargo clean
orupdate
the transative dependency goes above1.0.16
.I still leave it open since the maintainers would update to
1.0.16
and above incap
dependencies.
alisomay edited a comment on issue #6674:
A workaround is pinning.
[dependencies] wasmtime-wasi = "=10.0.1" cap-fs-ext = "=1.0.15" cap-primitives = "=1.0.15" cap-std = "=1.0.15"
cap-x
1.0.16
and up is the issue.When we run
cargo clean
orupdate
the transative dependency goes above1.0.15
.I still leave it open since the maintainers would update to
1.0.16
and above incap
dependencies.
alisomay edited a comment on issue #6674:
A workaround is pinning.
[dependencies] wasmtime-wasi = "=10.0.1" cap-fs-ext = "=1.0.15" cap-primitives = "=1.0.15" cap-std = "=1.0.15"
cap-x
1.0.16
and up is the issue.When we run
cargo clean
orupdate
the transative dependency goes above1.0.15
.I still leave it open since the maintainers would update to
1.0.16
and above incap
dependencies.
alexcrichton commented on issue #6674:
@sunfishcode it seems likely this may be caused by the 1.0.16 release of cap-std crates yesterday, would you be able to take a look into this?
alexcrichton commented on issue #6674:
I opened https://github.com/bytecodealliance/cap-std/issues/324 for some more details here.
alexcrichton commented on issue #6674:
With yanks this should now be resolved, thanks for the report!
alexcrichton closed issue #6674:
Steps to Reproduce
cargo init temp_project --bin
- Add
wasmtime-wasi = "=10.0.1"
as a dependency- Run
cargo build
Expected Results
Successful build.
Actual Results
Blocking waiting for file lock on build directory Compiling log v0.4.19 Compiling indexmap v1.9.3 Compiling rustix v0.37.21 Compiling crc32fast v1.3.2 Compiling memchr v2.5.0 Compiling hashbrown v0.13.2 Compiling pulldown-cmark v0.8.0 Compiling wasmtime-jit-debug v10.0.1 Compiling psm v0.1.21 Compiling witx v0.9.1 Compiling tracing v0.1.37 Compiling wasmparser v0.107.0 Compiling gimli v0.27.3 Compiling object v0.30.4 Compiling wit-parser v0.8.0 Compiling wiggle-generate v10.0.1 Compiling wasmtime-fiber v10.0.1 Compiling memfd v0.6.3 Compiling wasmtime-wit-bindgen v10.0.1 Compiling wiggle-macro v10.0.1 Compiling wasmtime-component-macro v10.0.1 Compiling addr2line v0.19.0 Compiling wasmtime-types v10.0.1 Compiling wasmprinter v0.2.59 Compiling wasmtime-environ v10.0.1 Compiling wasmtime-runtime v10.0.1 Compiling wasmtime-jit v10.0.1 Compiling wasmtime v10.0.1 Compiling wiggle v10.0.1 Compiling wasi-common v10.0.1 Compiling wasi-cap-std-sync v10.0.1 Compiling wasmtime-wasi v10.0.1 error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:408:26 | 408 | atim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:409:26 | 409 | mtim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:414:26 | 414 | atim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` error[E0631]: type mismatch in function arguments --> /Users/vallahiboyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-wasi-10.0.1/src/preview2/preview2/filesystem.rs:415:26 | 415 | mtim.map(cap_fs_ext::SystemTimeSpec::from_std), | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | | | expected due to this | | found signature defined here | required by a bound introduced by this call | = note: expected function signature `fn(fs_set_times::SystemTimeSpec) -> _` found function signature `fn(fs_set_times::system_time_spec::SystemTimeSpec) -> _` note: required by a bound in `std::option::Option::<T>::map` --> /Users/vallahiboyle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1095:12 | 1095 | F: ~const FnOnce(T) -> U, | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map` For more information about this error, try `rustc --explain E0631`. error: could not compile `wasmtime-wasi` (lib) due to 4 previous errors
Versions and Environment
- Rust
1.70
stable-aarch64-apple-darwin
Wasmtime version or commit:
10.0.1
Operating system: MacOS Ventura 13.0.1 (M1 Max)
Architecture:
stable-aarch64-apple-darwin
Extra Info
This started to happen after a
cargo clean
.
Then I've made a brand new project to test if it is because of my environment and the results were the same.
The errors do not resolve when it is added as a git dependency either.
wasmtime-wasi = { git = "https://github.com/bytecodealliance/wasmtime.git" }
10.0.0
also throws the same compiler error.
Last updated: Nov 22 2024 at 17:03 UTC