[INFO] cloning repository https://github.com/Carglass/youlex-git [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Carglass/youlex-git" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarglass%2Fyoulex-git"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarglass%2Fyoulex-git'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 40a368f45f67dd21a480bc3c1b4dcfa809a37faa [INFO] testing Carglass/youlex-git against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarglass%2Fyoulex-git" "/workspace/builds/worker-4/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Carglass/youlex-git 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/Carglass/youlex-git [INFO] finished tweaking git repo https://github.com/Carglass/youlex-git [INFO] tweaked toml for git repo https://github.com/Carglass/youlex-git written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/Carglass/youlex-git 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-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] 3fd7c6fae40a2c6a5336c8d615b0d2df17c6e10801bd28f4e50adbe330c2717e [INFO] running `"docker" "start" "-a" "3fd7c6fae40a2c6a5336c8d615b0d2df17c6e10801bd28f4e50adbe330c2717e"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling syn v1.0.18 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Compiling cc v1.0.52 [INFO] [stderr] Compiling openssl-sys v0.9.55 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling libssh2-sys v0.2.17 [INFO] [stderr] Compiling libgit2-sys v0.12.5+1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling git2 v0.13.5 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling serde_json v1.0.52 [INFO] [stderr] Compiling youlex-git v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused variable: `node` [INFO] [stderr] --> src/main.rs:121:34 [INFO] [stderr] | [INFO] [stderr] 121 | let node_callback = |node: Node, info_array: Vec<(git2::Oid, i32)>| -> (git2::Oid, i32) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `root` [INFO] [stderr] --> src/main.rs:118:21 [INFO] [stderr] | [INFO] [stderr] 118 | if let Some(root) = &self.contents { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `node_callback` [INFO] [stderr] --> src/main.rs:121:17 [INFO] [stderr] | [INFO] [stderr] 121 | let node_callback = |node: Node, info_array: Vec<(git2::Oid, i32)>| -> (git2::Oid, i32) { [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_callback` [INFO] [stderr] [INFO] [stderr] error[E0382]: use of moved value: `self_callback` [INFO] [stderr] --> src/main.rs:32:69 [INFO] [stderr] | [INFO] [stderr] 18 | fn walk(&self, self_callback: C, leaf_callback: D) -> E [INFO] [stderr] | ------------- move occurs because `self_callback` has type `C`, which does not implement the `Copy` trait [INFO] [stderr] ... [INFO] [stderr] 32 | TreeItem::Node(node) => children_res.push(node.walk(self_callback, leaf_callback)), [INFO] [stderr] | ^^^^^^^^^^^^^ value moved here, in previous iteration of loop [INFO] [stderr] | [INFO] [stderr] help: consider further restricting this bound [INFO] [stderr] | [INFO] [stderr] 20 | C: Fn(&Node, Vec) -> E + Copy, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0382]: borrow of moved value: `leaf_callback` [INFO] [stderr] --> src/main.rs:34:59 [INFO] [stderr] | [INFO] [stderr] 18 | fn walk(&self, self_callback: C, leaf_callback: D) -> E [INFO] [stderr] | ------------- move occurs because `leaf_callback` has type `D`, which does not implement the `Copy` trait [INFO] [stderr] ... [INFO] [stderr] 32 | TreeItem::Node(node) => children_res.push(node.walk(self_callback, leaf_callback)), [INFO] [stderr] | ------------- value moved here, in previous iteration of loop [INFO] [stderr] 33 | // execute leaf callback on a leaf, push the result into our vec [INFO] [stderr] 34 | TreeItem::Leaf(leaf) => children_res.push(leaf_callback(&leaf)), [INFO] [stderr] | ^^^^^^^^^^^^^ value borrowed here after move [INFO] [stderr] | [INFO] [stderr] help: consider further restricting this bound [INFO] [stderr] | [INFO] [stderr] 21 | D: Fn(&Leaf) -> E + Copy, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0594]: cannot assign to `self.contents` which is behind a `&` reference [INFO] [stderr] --> src/main.rs:113:9 [INFO] [stderr] | [INFO] [stderr] 112 | fn push_contents(&self, node: Node) { [INFO] [stderr] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stderr] 113 | self.contents = Some(node); [INFO] [stderr] | ^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be written [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0382, E0594. [INFO] [stderr] For more information about an error, try `rustc --explain E0382`. [INFO] [stderr] error: could not compile `youlex-git`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "3fd7c6fae40a2c6a5336c8d615b0d2df17c6e10801bd28f4e50adbe330c2717e"` [INFO] running `"docker" "rm" "-f" "3fd7c6fae40a2c6a5336c8d615b0d2df17c6e10801bd28f4e50adbe330c2717e"` [INFO] [stdout] 3fd7c6fae40a2c6a5336c8d615b0d2df17c6e10801bd28f4e50adbe330c2717e