[INFO] updating cached repository https://github.com/avraamisvi/pool
[INFO] running `"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"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 9b381692f3b11f221aad9134e2961d10fa37ecf6
[INFO] checking avraamisvi/pool against master#209b2be09fcaff937480d1fbbe8b31646e361c7a for pr-70917
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Favraamisvi%2Fpool" "/workspace/builds/worker-2/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/avraamisvi/pool on toolchain 209b2be09fcaff937480d1fbbe8b31646e361c7a
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "read-manifest" "--manifest-path" "Cargo.toml"`
[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-2/source/Cargo.toml
[INFO] crate git repo https://github.com/avraamisvi/pool already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "/opt/rustwide/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stdout] 479236455f8d212feaa4804731814bfcbfae54f92c27f862316c9a15089b8ae1
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `"docker" "start" "-a" "479236455f8d212feaa4804731814bfcbfae54f92c27f862316c9a15089b8ae1"`
[INFO] [stderr]     Checking pool v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/main.rs:49:11
[INFO] [stderr]    |
[INFO] [stderr] 49 |         if(self.count == 0) {
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable expression
[INFO] [stderr]   --> src/main.rs:78:9
[INFO] [stderr]    |
[INFO] [stderr] 53 |             return self.in_use.last().clone();
[INFO] [stderr]    |             --------------------------------- any code following this expression is unreachable
[INFO] [stderr] ...
[INFO] [stderr] 78 |         Option::None
[INFO] [stderr]    |         ^^^^^^^^^^^^ unreachable expression
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unreachable_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:50:37
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 50 |             let entry = Entry{data: self.call_closure(&self.factory)};
[INFO] [stderr]    |                                     ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:51:13
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 51 |             self.in_use.push(Arc::new(entry));
[INFO] [stderr]    |             ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `self.available` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:55:26
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 55 |             return match self.available.pop() {
[INFO] [stderr]    |                          ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:59:52
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 59 |                             let entry = Entry{data:self.call_closure(&self.factory)};
[INFO] [stderr]    |                                                    ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:61:29
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 61 |                             self.in_use.push(Arc::new(entry));
[INFO] [stderr]    |                             ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:63:29
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 63 |                             self.increase();
[INFO] [stderr]    |                             ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:71:25
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 71 |                         self.in_use.push(arc_entry);
[INFO] [stderr]    |                         ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 7 previous errors
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0596`.
[INFO] [stderr] error: could not compile `pool`.
[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] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]   --> src/main.rs:49:11
[INFO] [stderr]    |
[INFO] [stderr] 49 |         if(self.count == 0) {
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable expression
[INFO] [stderr]   --> src/main.rs:78:9
[INFO] [stderr]    |
[INFO] [stderr] 53 |             return self.in_use.last().clone();
[INFO] [stderr]    |             --------------------------------- any code following this expression is unreachable
[INFO] [stderr] ...
[INFO] [stderr] 78 |         Option::None
[INFO] [stderr]    |         ^^^^^^^^^^^^ unreachable expression
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unreachable_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:50:37
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 50 |             let entry = Entry{data: self.call_closure(&self.factory)};
[INFO] [stderr]    |                                     ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:51:13
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 51 |             self.in_use.push(Arc::new(entry));
[INFO] [stderr]    |             ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `self.available` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:55:26
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 55 |             return match self.available.pop() {
[INFO] [stderr]    |                          ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:59:52
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 59 |                             let entry = Entry{data:self.call_closure(&self.factory)};
[INFO] [stderr]    |                                                    ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:61:29
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 61 |                             self.in_use.push(Arc::new(entry));
[INFO] [stderr]    |                             ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:63:29
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 63 |                             self.increase();
[INFO] [stderr]    |                             ^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error[E0596]: cannot borrow `self.in_use` as mutable, as it is behind a `&` reference
[INFO] [stderr]   --> src/main.rs:71:25
[INFO] [stderr]    |
[INFO] [stderr] 47 |     pub fn get(&self) -> Option<&Arc<Entry<T>>> {
[INFO] [stderr]    |                ----- help: consider changing this to be a mutable reference: `&mut self`
[INFO] [stderr] ...
[INFO] [stderr] 71 |                         self.in_use.push(arc_entry);
[INFO] [stderr]    |                         ^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 7 previous errors
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0596`.
[INFO] [stderr] error: could not compile `pool`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "479236455f8d212feaa4804731814bfcbfae54f92c27f862316c9a15089b8ae1"`
[INFO] running `"docker" "rm" "-f" "479236455f8d212feaa4804731814bfcbfae54f92c27f862316c9a15089b8ae1"`
[INFO] [stdout] 479236455f8d212feaa4804731814bfcbfae54f92c27f862316c9a15089b8ae1
