[INFO] updating cached repository avraamisvi/pool [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/avraamisvi/pool [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/avraamisvi/pool" "work/ex/beta-1.38-1/sources/1.37.0/gh/avraamisvi/pool"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/avraamisvi/pool'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/avraamisvi/pool" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/avraamisvi/pool"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/avraamisvi/pool'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 9b381692f3b11f221aad9134e2961d10fa37ecf6 [INFO] sha for GitHub repo avraamisvi/pool: 9b381692f3b11f221aad9134e2961d10fa37ecf6 [INFO] validating manifest of avraamisvi/pool on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of avraamisvi/pool on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing avraamisvi/pool [INFO] finished frobbing avraamisvi/pool [INFO] frobbed toml for avraamisvi/pool written to work/ex/beta-1.38-1/sources/1.37.0/gh/avraamisvi/pool/Cargo.toml [INFO] started frobbing avraamisvi/pool [INFO] finished frobbing avraamisvi/pool [INFO] frobbed toml for avraamisvi/pool written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/avraamisvi/pool/Cargo.toml [INFO] crate avraamisvi/pool already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing avraamisvi/pool against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-6/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/avraamisvi/pool:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "build" "--frozen"` [INFO] [stdout] d725e784cc31b243c7fda73ea891e65d75ddc8e5583378f3d6265ad249bf7a4c [INFO] running `"docker" "start" "-a" "d725e784cc31b243c7fda73ea891e65d75ddc8e5583378f3d6265ad249bf7a4c"` [INFO] [stderr] Compiling pool v0.1.0 (/opt/crater/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] 78 | Option::None [INFO] [stderr] | ^^^^^^^^^^^^ [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>> { [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>> { [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>> { [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>> { [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>> { [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>> { [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>> { [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" "d725e784cc31b243c7fda73ea891e65d75ddc8e5583378f3d6265ad249bf7a4c"` [INFO] running `"docker" "rm" "-f" "d725e784cc31b243c7fda73ea891e65d75ddc8e5583378f3d6265ad249bf7a4c"` [INFO] [stdout] d725e784cc31b243c7fda73ea891e65d75ddc8e5583378f3d6265ad249bf7a4c