Stream: git-wasmtime

Topic: wasmtime / PR #2705 Update version for fs-set-times to 3.1


view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 08:03):

jlb6740 opened PR #2705 from update-fs-set-times-version-to-3.1 to main:

Received a compile error:

Compiling wasi-cap-std-sync v0.23.0 (/home/jlbirch/wasmtime_jlb6740/crates/wasi-common/cap-std-sync)
error[E0599]: the method set_times exists for struct cap_std::fs::File, but its trait bounds were not satisfied
--> crates/wasi-common/cap-std-sync/src/file.rs:84:14
|
84 | .set_times(convert_systimespec(atime), convert_systimespec(mtime))?;
| ^^^^^^^^^ method cannot be called on cap_std::fs::File due to unsatisfied trait bounds
|
::: /home/jlbirch/.cargo/registry/src/github.com-1ecc6299db9ec823/cap-std-0.13.7/src/fs/file.rs:32:1
|
32 | pub struct File {
| ---------------
| |
| doesn't satisfy _: unsafe_io::unsafe_handle::AsUnsafeFile
| doesn't satisfy cap_std::fs::File: SetTimes
|
= note: the following trait bounds were not satisfied:
cap_std::fs::File: unsafe_io::unsafe_handle::AsUnsafeFile
which is required by cap_std::fs::File: SetTimes
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a use for it:
use fs_set_times::set_times::SetTimes;

warning: unused import: SetTimes
--> crates/wasi-common/cap-std-sync/src/file.rs:2:20
|
2 | use fs_set_times::{SetTimes, SystemTimeSpec};
| ^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try rustc --explain E0599.
error: could not compile wasi-cap-std-sync

I believe this version bump is the correct solution .. though there is a chance this could just be my system after some recent updates to my environment.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 08:04):

jlb6740 requested sunfishcode for a review on PR #2705.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 08:04):

jlb6740 requested pchickey and sunfishcode for a review on PR #2705.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 08:11):

jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1 to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 08:26):

jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1 to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 08:29):

jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1 to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 17:50):

jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1 to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 18:02):

jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1 to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 18:10):

jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1 to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 19:36):

sunfishcode submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 04 2021 at 19:36):

sunfishcode merged PR #2705.


Last updated: Dec 23 2024 at 12:05 UTC