[INFO] updating cached repository https://github.com/avraamisvi/pool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9b381692f3b11f221aad9134e2961d10fa37ecf6 [INFO] testing avraamisvi/pool against try#03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/avraamisvi/pool on toolchain 03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "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-1/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" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72e23e19aca754802486a6f5e4e468f4ab1fa03d3c7118ca46c7ff41f9696fee [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" "72e23e19aca754802486a6f5e4e468f4ab1fa03d3c7118ca46c7ff41f9696fee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72e23e19aca754802486a6f5e4e468f4ab1fa03d3c7118ca46c7ff41f9696fee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72e23e19aca754802486a6f5e4e468f4ab1fa03d3c7118ca46c7ff41f9696fee", kill_on_drop: false }` [INFO] [stdout] 72e23e19aca754802486a6f5e4e468f4ab1fa03d3c7118ca46c7ff41f9696fee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56b4c7278d7c1f84f94631d971bb53315d0ba95464dd6360c36026129f18c353 [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" "56b4c7278d7c1f84f94631d971bb53315d0ba95464dd6360c36026129f18c353", 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] | ^^^^^^^^^^^^^^^^^ 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] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "56b4c7278d7c1f84f94631d971bb53315d0ba95464dd6360c36026129f18c353", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56b4c7278d7c1f84f94631d971bb53315d0ba95464dd6360c36026129f18c353", kill_on_drop: false }` [INFO] [stdout] 56b4c7278d7c1f84f94631d971bb53315d0ba95464dd6360c36026129f18c353