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 methodset_times
exists for structcap_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 oncap_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 satisfycap_std::fs::File: SetTimes
|
= note: the following trait bounds were not satisfied:
cap_std::fs::File: unsafe_io::unsafe_handle::AsUnsafeFile
which is required bycap_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 ause
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 defaulterror: aborting due to previous error; 1 warning emitted
For more information about this error, try
rustc --explain E0599
.
error: could not compilewasi-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.
jlb6740 requested sunfishcode for a review on PR #2705.
jlb6740 requested pchickey and sunfishcode for a review on PR #2705.
jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1
to main
.
jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1
to main
.
jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1
to main
.
jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1
to main
.
jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1
to main
.
jlb6740 updated PR #2705 from update-fs-set-times-version-to-3.1
to main
.
sunfishcode submitted PR Review.
sunfishcode merged PR #2705.
Last updated: Nov 22 2024 at 16:03 UTC