[INFO] cloning repository https://github.com/jonathan-lemos/filediff [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jonathan-lemos/filediff" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Ffilediff", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Ffilediff'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1bba88c631d47d7991f8b4d4f6d7aed84dbc622a [INFO] checking jonathan-lemos/filediff against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Ffilediff" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jonathan-lemos/filediff [INFO] finished tweaking git repo https://github.com/jonathan-lemos/filediff [INFO] tweaked toml for git repo https://github.com/jonathan-lemos/filediff written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jonathan-lemos/filediff on toolchain b047d5f4496a7526d91d0dddea494c05853f2a7b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jonathan-lemos/filediff already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking jonathan-lemos/filediff against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Ffilediff" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jonathan-lemos/filediff [INFO] finished tweaking git repo https://github.com/jonathan-lemos/filediff [INFO] tweaked toml for git repo https://github.com/jonathan-lemos/filediff written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jonathan-lemos/filediff on toolchain b047d5f4496a7526d91d0dddea494c05853f2a7b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jonathan-lemos/filediff already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded argparse v0.2.2 [INFO] [stderr] Downloaded syn v1.0.25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c5d02c178917b23ba34a965252ab9b1f4c83b4ee97e98cd174a95871226e0132 [INFO] running `Command { std: "docker" "start" "-a" "c5d02c178917b23ba34a965252ab9b1f4c83b4ee97e98cd174a95871226e0132", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5d02c178917b23ba34a965252ab9b1f4c83b4ee97e98cd174a95871226e0132", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5d02c178917b23ba34a965252ab9b1f4c83b4ee97e98cd174a95871226e0132", kill_on_drop: false }` [INFO] [stdout] c5d02c178917b23ba34a965252ab9b1f4c83b4ee97e98cd174a95871226e0132 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc8693ba3872ea5511fdbcaef72ae3d0cf6977e6fbc57f1c3ca11898051b1fa7 [INFO] running `Command { std: "docker" "start" "-a" "cc8693ba3872ea5511fdbcaef72ae3d0cf6977e6fbc57f1c3ca11898051b1fa7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.25 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking argparse v0.2.2 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking filediff v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/filesystem.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BorrowMut` [INFO] [stdout] --> src/filesystem.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::{BorrowMut, Borrow}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/filesystem.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BorrowMut` [INFO] [stdout] --> src/filesystem.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::{BorrowMut, Borrow}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0069]: `return;` in a function whose return type is not `()` [INFO] [stdout] --> src/filesystem.rs:66:58 [INFO] [stdout] | [INFO] [stdout] 65 | fn update_rec(&self, dir: &Directory, path: &mut Path) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<()>` because of this return type [INFO] [stdout] 66 | let list = unwrap_result_or![fs::read_dir(path), return]; [INFO] [stdout] | ^^^^^^ return type is not `()` [INFO] [stdout] | [INFO] [stdout] help: give the `return` a value of the expected type [INFO] [stdout] | [INFO] [stdout] 66 | let list = unwrap_result_or![fs::read_dir(path), return Ok(())]; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0069]: `return;` in a function whose return type is not `()` [INFO] [stdout] --> src/filesystem.rs:66:58 [INFO] [stdout] | [INFO] [stdout] 65 | fn update_rec(&self, dir: &Directory, path: &mut Path) -> Result<()> { [INFO] [stdout] | ---------- expected `Result<()>` because of this return type [INFO] [stdout] 66 | let list = unwrap_result_or![fs::read_dir(path), return]; [INFO] [stdout] | ^^^^^^ return type is not `()` [INFO] [stdout] | [INFO] [stdout] help: give the `return` a value of the expected type [INFO] [stdout] | [INFO] [stdout] 66 | let list = unwrap_result_or![fs::read_dir(path), return Ok(())]; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/filesystem.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut file = File::open(&filename)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/filesystem.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut file = File::create(&filename)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in a `&` reference as mutable [INFO] [stdout] --> src/filesystem.rs:96:42 [INFO] [stdout] | [INFO] [stdout] 96 | self.update_rec(&self.directory, &mut path) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/filesystem.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut file = File::open(&filename)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0069, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0069`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/filesystem.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut file = File::create(&filename)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in a `&` reference as mutable [INFO] [stdout] --> src/filesystem.rs:96:42 [INFO] [stdout] | [INFO] [stdout] 96 | self.update_rec(&self.directory, &mut path) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0069, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0069`. [INFO] [stdout] [INFO] [stderr] error: could not compile `filediff` (bin "filediff") due to 2 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `filediff` (bin "filediff" test) due to 2 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cc8693ba3872ea5511fdbcaef72ae3d0cf6977e6fbc57f1c3ca11898051b1fa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc8693ba3872ea5511fdbcaef72ae3d0cf6977e6fbc57f1c3ca11898051b1fa7", kill_on_drop: false }` [INFO] [stdout] cc8693ba3872ea5511fdbcaef72ae3d0cf6977e6fbc57f1c3ca11898051b1fa7