[INFO] fetching crate docchi_fs 0.8.0... [INFO] checking docchi_fs-0.8.0 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] extracting crate docchi_fs 0.8.0 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate docchi_fs 0.8.0 on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate docchi_fs 0.8.0 [INFO] finished tweaking crates.io crate docchi_fs 0.8.0 [INFO] tweaked toml for crates.io crate docchi_fs 0.8.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 49 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded metrohash v1.0.7 [INFO] [stderr] Downloaded docchi_compaction v0.8.0 [INFO] [stderr] Downloaded docchi_diff v0.8.0 [INFO] [stderr] Downloaded docchi_json5 v0.8.0 [INFO] [stderr] Downloaded docchi_archiver2 v0.8.0 [INFO] [stderr] Downloaded docchi_core v0.8.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5df9bc58b26da38fb1cd8fd52993d49756a8614f9eaba0b9649e0b59d291fdf [INFO] running `Command { std: "docker" "start" "-a" "c5df9bc58b26da38fb1cd8fd52993d49756a8614f9eaba0b9649e0b59d291fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5df9bc58b26da38fb1cd8fd52993d49756a8614f9eaba0b9649e0b59d291fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5df9bc58b26da38fb1cd8fd52993d49756a8614f9eaba0b9649e0b59d291fdf", kill_on_drop: false }` [INFO] [stdout] c5df9bc58b26da38fb1cd8fd52993d49756a8614f9eaba0b9649e0b59d291fdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3039b0d8bbeafbaf2c8328f40d21a344921708fd20197a9620efe74f8e9b31bb [INFO] running `Command { std: "docker" "start" "-a" "3039b0d8bbeafbaf2c8328f40d21a344921708fd20197a9620efe74f8e9b31bb", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling snap v1.1.1 [INFO] [stderr] Checking with_capacity_safe v0.4.2 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking metrohash v1.0.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking docchi_json5 v0.8.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking docchi_compaction v0.8.0 [INFO] [stderr] Checking docchi_archiver2 v0.8.0 [INFO] [stderr] Checking docchi_core v0.8.0 [INFO] [stderr] Checking docchi_diff v0.8.0 [INFO] [stderr] Checking docchi_fs v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `tempfile` [INFO] [stdout] --> src/test_fs/save_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tempfile::tempdir; [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `tempfile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/test_simple_history/test_simple_diff_files.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/test_simple_history/test_cumulative_limit_nth.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/test_simple_history/test_cumulative_limit_count.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/test_simple_history/test_max_phase0.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/test_simple_history/test_max_phase0_with_cumu.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/test_simple_history/test_load_and_save.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_data.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_fs/save_test.rs:39:33 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_test() -> FsResult<()> { [INFO] [stdout] | ------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 39 | let b = get_bool(p, "b")?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_fs/save_test.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_test() -> FsResult<()> { [INFO] [stdout] | ------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 59 | let i = get_int(p, "int")?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_fs/save_test.rs:70:33 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_test() -> FsResult<()> { [INFO] [stdout] | ------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 70 | let b = get_bool(p, "b")?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_fs/save_test.rs:73:34 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_test() -> FsResult<()> { [INFO] [stdout] | ------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 73 | let i = get_int(p, "int")?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_fs/save_test.rs:76:36 [INFO] [stdout] | [INFO] [stdout] 17 | fn save_test() -> FsResult<()> { [INFO] [stdout] | ------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 76 | let a = get_int(p, "added")?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_data.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn mutate(&mut self, num : u8) -> FsResult<()>{ [INFO] [stdout] | --------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 31 | if *self.bytes.get(index)? == 0{ break; } [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_data.rs:36:52 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn mutate(&mut self, num : u8) -> FsResult<()>{ [INFO] [stdout] | --------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 36 | *self.bytes.get_mut(index + n as usize)? = num; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `FsError` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_data.rs:69:78 [INFO] [stdout] | [INFO] [stdout] 69 | Err(anyhow!("error index {} is out of bound len {}", index, len))? [INFO] [stdout] | ^ the trait `From` is not implemented for `FsError` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `FsError` implements `From<&str>` [INFO] [stdout] `FsError` implements `From` [INFO] [stdout] `FsError` implements `From` [INFO] [stdout] `FsError` implements `From` [INFO] [stdout] `FsError` implements `From` [INFO] [stdout] `FsError` implements `From` [INFO] [stdout] `FsError` implements `From` [INFO] [stdout] `FsError` implements `From` [INFO] [stdout] `FsError` implements `From` [INFO] [stdout] = note: required for `Result<(), FsError>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_diff.rs:46:30 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn decode_kvals(kvals : &[KVal]) -> FsResult{ [INFO] [stdout] | --------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 45 | let mut iter = kvals.iter(); [INFO] [stdout] 46 | let len = iter.next()?.as_i64()? as usize; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_diff.rs:46:40 [INFO] [stdout] | [INFO] [stdout] 44 | pub(crate) fn decode_kvals(kvals : &[KVal]) -> FsResult{ [INFO] [stdout] | --------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 45 | let mut iter = kvals.iter(); [INFO] [stdout] 46 | let len = iter.next()?.as_i64()? as usize; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_diff.rs:76:32 [INFO] [stdout] | [INFO] [stdout] 75 | pub(crate) fn read<'a>(iter : &mut impl Iterator) -> FsResult{ [INFO] [stdout] | ---------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 76 | let index = iter.next()?.as_i64()? as usize; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_diff.rs:76:42 [INFO] [stdout] | [INFO] [stdout] 75 | pub(crate) fn read<'a>(iter : &mut impl Iterator) -> FsResult{ [INFO] [stdout] | ---------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 76 | let index = iter.next()?.as_i64()? as usize; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_diff.rs:77:32 [INFO] [stdout] | [INFO] [stdout] 75 | pub(crate) fn read<'a>(iter : &mut impl Iterator) -> FsResult{ [INFO] [stdout] | ---------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 76 | let index = iter.next()?.as_i64()? as usize; [INFO] [stdout] 77 | let value = iter.next()?.as_i64()? as u8; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/test_simple_history/simple_diff/sd_diff.rs:77:42 [INFO] [stdout] | [INFO] [stdout] 75 | pub(crate) fn read<'a>(iter : &mut impl Iterator) -> FsResult{ [INFO] [stdout] | ---------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] 76 | let index = iter.next()?.as_i64()? as usize; [INFO] [stdout] 77 | let value = iter.next()?.as_i64()? as u8; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_simple_history/show_dir_contents_history.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn show_dir_contents_history

>(path : P) -> FsResult>{ [INFO] [stdout] | ---------------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 13 | let name = entry.path().file_name()?.to_string_lossy().to_string(); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result, FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/test_simple_history/test_simple_diff_files.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_simple_history/test_simple_diff_files.rs:45:58 [INFO] [stdout] | [INFO] [stdout] 14 | fn test_simple_diff_files() -> FsResult<()> { [INFO] [stdout] | ------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 45 | let loaded = load(&history.newest_file_path(&dir)?, &history, cache.create_root(), &mut cache, &op)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/test_simple_history/test_cumulative_limit_nth.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_simple_history/history2/create_file_history2.rs:13:48 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) fn create_file_history2(dir_path : &Path, hint_max_phase : Option) -> FsResult{ [INFO] [stdout] | -------------------------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 13 | let filename = entry.path().file_name()?.to_string_lossy().to_string(); [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/test_simple_history/test_cumulative_limit_count.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/test_simple_history/test_max_phase0.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_simple_history/test_max_phase0.rs:42:57 [INFO] [stdout] | [INFO] [stdout] 13 | fn test_max_phase0() -> FsResult<()> { [INFO] [stdout] | ------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 42 | let newest_path = history.newest_file_path(&dir)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/test_simple_history/test_max_phase0_with_cumu.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_simple_history/test_max_phase0_with_cumu.rs:42:58 [INFO] [stdout] | [INFO] [stdout] 14 | fn test_max_phase0_with_cumu() -> FsResult<()> { [INFO] [stdout] | ---------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 42 | let loaded = load(&history.newest_file_path(&dir)?, &history, cache.create_root(), &mut cache,&op)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rand` [INFO] [stdout] --> src/test_simple_history/test_load_and_save.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_simple_history/test_load_and_save.rs:42:58 [INFO] [stdout] | [INFO] [stdout] 15 | fn test_load_and_save() -> FsResult<()> { [INFO] [stdout] | --------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 42 | let loaded = load(&history.newest_file_path(&dir)?, &history, cache.create_root(), &mut cache, &op)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/test_simple_history/test_load_and_save.rs:63:58 [INFO] [stdout] | [INFO] [stdout] 15 | fn test_load_and_save() -> FsResult<()> { [INFO] [stdout] | --------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 63 | let loaded = load(&history.newest_file_path(&dir)?, &history, cache.create_root(), &mut cache, &op)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), FsError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), FsError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `docchi_fs` (lib test) due to 35 previous errors [INFO] running `Command { std: "docker" "inspect" "3039b0d8bbeafbaf2c8328f40d21a344921708fd20197a9620efe74f8e9b31bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3039b0d8bbeafbaf2c8328f40d21a344921708fd20197a9620efe74f8e9b31bb", kill_on_drop: false }` [INFO] [stdout] 3039b0d8bbeafbaf2c8328f40d21a344921708fd20197a9620efe74f8e9b31bb