[INFO] cloning repository https://github.com/avraamisvi/pool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/avraamisvi/pool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9b381692f3b11f221aad9134e2961d10fa37ecf6 [INFO] testing avraamisvi/pool against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool" "/workspace/builds/worker-91/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-91/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/avraamisvi/pool on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/avraamisvi/pool [INFO] finished tweaking git repo https://github.com/avraamisvi/pool [INFO] tweaked toml for git repo https://github.com/avraamisvi/pool written to /workspace/builds/worker-91/source/Cargo.toml [INFO] crate git repo https://github.com/avraamisvi/pool already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90c8d3f065a4223c58a523a6e1f17812322d975ea50ef68aadcb0cf6fbfe41ec [INFO] running `Command { std: "docker" "start" "-a" "90c8d3f065a4223c58a523a6e1f17812322d975ea50ef68aadcb0cf6fbfe41ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90c8d3f065a4223c58a523a6e1f17812322d975ea50ef68aadcb0cf6fbfe41ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90c8d3f065a4223c58a523a6e1f17812322d975ea50ef68aadcb0cf6fbfe41ec", kill_on_drop: false }` [INFO] [stdout] 90c8d3f065a4223c58a523a6e1f17812322d975ea50ef68aadcb0cf6fbfe41ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c4540fc9964d847899ddc8cef357e9163e3fb7b3e91e39ffab4456d9f50717ad [INFO] running `Command { std: "docker" "start" "-a" "c4540fc9964d847899ddc8cef357e9163e3fb7b3e91e39ffab4456d9f50717ad", kill_on_drop: false }` [INFO] [stderr] Compiling pool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | if(self.count == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 49 - if(self.count == 0) { [INFO] [stdout] 49 + if self.count == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 53 | return self.in_use.last().clone(); [INFO] [stdout] | --------------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 78 | Option::None [INFO] [stdout] | ^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(&self) -> Option<&Arc>> { [INFO] [stdout] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stdout] ... [INFO] [stdout] 50 | let entry = Entry{data: self.call_closure(&self.factory)}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(&self) -> Option<&Arc>> { [INFO] [stdout] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stdout] ... [INFO] [stdout] 51 | self.in_use.push(Arc::new(entry)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.available` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:55:26 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(&self) -> Option<&Arc>> { [INFO] [stdout] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stdout] ... [INFO] [stdout] 55 | return match self.available.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:59:52 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(&self) -> Option<&Arc>> { [INFO] [stdout] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stdout] ... [INFO] [stdout] 59 | let entry = Entry{data:self.call_closure(&self.factory)}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(&self) -> Option<&Arc>> { [INFO] [stdout] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stdout] ... [INFO] [stdout] 61 | self.in_use.push(Arc::new(entry)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(&self) -> Option<&Arc>> { [INFO] [stdout] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stdout] ... [INFO] [stdout] 63 | self.increase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get(&self) -> Option<&Arc>> { [INFO] [stdout] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stdout] ... [INFO] [stdout] 71 | self.in_use.push(arc_entry); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pool` due to 8 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c4540fc9964d847899ddc8cef357e9163e3fb7b3e91e39ffab4456d9f50717ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4540fc9964d847899ddc8cef357e9163e3fb7b3e91e39ffab4456d9f50717ad", kill_on_drop: false }` [INFO] [stdout] c4540fc9964d847899ddc8cef357e9163e3fb7b3e91e39ffab4456d9f50717ad