[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] testing jonathan-lemos/filediff against 1.95.0 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathan-lemos%2Ffilediff" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/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-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jonathan-lemos/filediff on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded proc-macro2 v1.0.17
[INFO] [stderr]   Downloaded serde_derive v1.0.110
[INFO] [stderr]   Downloaded argparse v0.2.2
[INFO] [stderr]   Downloaded ryu v1.0.4
[INFO] [stderr]   Downloaded syn v1.0.25
[INFO] [stderr]   Downloaded serde v1.0.110
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cc970b3ebffa976c99c2a7170b79e48a7504414443a4bb7de9d7f593bfa287b6
[INFO] running `Command { std: "docker" "start" "-a" "cc970b3ebffa976c99c2a7170b79e48a7504414443a4bb7de9d7f593bfa287b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cc970b3ebffa976c99c2a7170b79e48a7504414443a4bb7de9d7f593bfa287b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc970b3ebffa976c99c2a7170b79e48a7504414443a4bb7de9d7f593bfa287b6", kill_on_drop: false }`
[INFO] [stdout] cc970b3ebffa976c99c2a7170b79e48a7504414443a4bb7de9d7f593bfa287b6
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 53aad3f33c4eb9e1aa8c08826b81bb8b482a2019a1f2cd5ddc02215e169720b0
[INFO] running `Command { std: "docker" "start" "-a" "53aad3f33c4eb9e1aa8c08826b81bb8b482a2019a1f2cd5ddc02215e169720b0", 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]    Compiling itoa v0.4.5
[INFO] [stderr]    Compiling argparse v0.2.2
[INFO] [stderr]    Compiling quote v1.0.6
[INFO] [stderr]    Compiling serde_derive v1.0.110
[INFO] [stderr]    Compiling serde_json v1.0.53
[INFO] [stderr]    Compiling 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)]` (part of `#[warn(unused)]`) 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] 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)]` (part of `#[warn(unused)]`) 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] 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] running `Command { std: "docker" "inspect" "53aad3f33c4eb9e1aa8c08826b81bb8b482a2019a1f2cd5ddc02215e169720b0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "53aad3f33c4eb9e1aa8c08826b81bb8b482a2019a1f2cd5ddc02215e169720b0", kill_on_drop: false }`
[INFO] [stdout] 53aad3f33c4eb9e1aa8c08826b81bb8b482a2019a1f2cd5ddc02215e169720b0
