[INFO] updating cached repository https://github.com/miguel-lattuada/rustcache [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] 185125fafa5ec84a96d7b392ae2106399506a798 [INFO] testing miguel-lattuada/rustcache against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiguel-lattuada%2Frustcache" "/workspace/builds/worker-5/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miguel-lattuada/rustcache on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/miguel-lattuada/rustcache [INFO] removed workspace from git repo https://github.com/miguel-lattuada/rustcache [INFO] finished tweaking git repo https://github.com/miguel-lattuada/rustcache [INFO] tweaked toml for git repo https://github.com/miguel-lattuada/rustcache written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/miguel-lattuada/rustcache already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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=warn" "-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" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b51ad28b062f3b1c0a705c7279c1696346cec9411824c7ecfdd37f0f1c2e92a3 [INFO] running `"docker" "start" "-a" "b51ad28b062f3b1c0a705c7279c1696346cec9411824c7ecfdd37f0f1c2e92a3"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling rustcache v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused variable: `memory` [INFO] [stderr] --> src/main.rs:49:36 [INFO] [stderr] | [INFO] [stderr] 49 | pool.execute(move |memory: &SharedMemory| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_memory` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0507]: cannot move out of `self.channel.1` which is behind a shared reference [INFO] [stderr] --> src/threadpool.rs:45:45 [INFO] [stderr] | [INFO] [stderr] 45 | let work_load = Arc::new(Mutex::new(self.channel.1)); [INFO] [stderr] | ^^^^^^^^^^^^^^ move occurs because `self.channel.1` has type `std::sync::mpsc::Receiver std::ops::FnOnce(&'r shared::SharedMemory) + std::marker::Send>>`, which does not implement the `Copy` trait [INFO] [stderr] [INFO] [stderr] error[E0507]: cannot move out of `self.config.shared_memory` which is behind a shared reference [INFO] [stderr] --> src/threadpool.rs:46:42 [INFO] [stderr] | [INFO] [stderr] 46 | let memory = Arc::new(Mutex::new(self.config.shared_memory)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.config.shared_memory` has type `shared::SharedMemory`, which does not implement the `Copy` trait [INFO] [stderr] [INFO] [stderr] error[E0597]: `lock` does not live long enough [INFO] [stderr] --> src/threadpool.rs:69:23 [INFO] [stderr] | [INFO] [stderr] 67 | let memory = { [INFO] [stderr] | ------ borrow later stored here [INFO] [stderr] 68 | let lock = shared_memory_clone.lock().unwrap(); [INFO] [stderr] 69 | &*lock [INFO] [stderr] | ^^^^ borrowed value does not live long enough [INFO] [stderr] 70 | }; [INFO] [stderr] | - `lock` dropped here while still borrowed [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `self.threads` as mutable, as it is behind a `&` reference [INFO] [stderr] --> src/threadpool.rs:60:13 [INFO] [stderr] | [INFO] [stderr] 51 | &self, [INFO] [stderr] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stderr] ... [INFO] [stderr] 60 | self.threads.push(spawn(move || { [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 4 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0507, E0596, E0597. [INFO] [stderr] For more information about an error, try `rustc --explain E0507`. [INFO] [stderr] error: could not compile `rustcache`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "b51ad28b062f3b1c0a705c7279c1696346cec9411824c7ecfdd37f0f1c2e92a3"` [INFO] running `"docker" "rm" "-f" "b51ad28b062f3b1c0a705c7279c1696346cec9411824c7ecfdd37f0f1c2e92a3"` [INFO] [stdout] b51ad28b062f3b1c0a705c7279c1696346cec9411824c7ecfdd37f0f1c2e92a3