[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] checking avraamisvi/pool against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/avraamisvi/pool on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", 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-14/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" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cf4cdb4568ca4bd6d311b4d90b567dd193dd7c6c63352c584d51a8f72a44231 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3cf4cdb4568ca4bd6d311b4d90b567dd193dd7c6c63352c584d51a8f72a44231", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cf4cdb4568ca4bd6d311b4d90b567dd193dd7c6c63352c584d51a8f72a44231", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cf4cdb4568ca4bd6d311b4d90b567dd193dd7c6c63352c584d51a8f72a44231", kill_on_drop: false }` [INFO] [stdout] 3cf4cdb4568ca4bd6d311b4d90b567dd193dd7c6c63352c584d51a8f72a44231 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 168bdd87c4d625428a71c1091274156faf810c2e1119d2b78afae8a9c9a55e68 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "168bdd87c4d625428a71c1091274156faf810c2e1119d2b78afae8a9c9a55e68", kill_on_drop: false }` [INFO] [stderr] Checking 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] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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` [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] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: build failed [INFO] running `Command { std: "docker" "inspect" "168bdd87c4d625428a71c1091274156faf810c2e1119d2b78afae8a9c9a55e68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "168bdd87c4d625428a71c1091274156faf810c2e1119d2b78afae8a9c9a55e68", kill_on_drop: false }` [INFO] [stdout] 168bdd87c4d625428a71c1091274156faf810c2e1119d2b78afae8a9c9a55e68