[INFO] cloning repository https://github.com/lastvoidtemplar/kdtree [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lastvoidtemplar/kdtree" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flastvoidtemplar%2Fkdtree", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flastvoidtemplar%2Fkdtree'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f8987d3b6f674d34c2d9563528c2409d1ff3877 [INFO] checking lastvoidtemplar/kdtree against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flastvoidtemplar%2Fkdtree" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lastvoidtemplar/kdtree [INFO] finished tweaking git repo https://github.com/lastvoidtemplar/kdtree [INFO] tweaked toml for git repo https://github.com/lastvoidtemplar/kdtree written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lastvoidtemplar/kdtree on toolchain 87f2ecc56b5f6032b075c8934ebc77f28d57183c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lastvoidtemplar/kdtree already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e342318073190a37632400f2e41e32a30438d9cc410ba16637c739543171e54 [INFO] running `Command { std: "docker" "start" "-a" "9e342318073190a37632400f2e41e32a30438d9cc410ba16637c739543171e54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e342318073190a37632400f2e41e32a30438d9cc410ba16637c739543171e54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e342318073190a37632400f2e41e32a30438d9cc410ba16637c739543171e54", kill_on_drop: false }` [INFO] [stdout] 9e342318073190a37632400f2e41e32a30438d9cc410ba16637c739543171e54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8764cd717b5735c6ce93944ad69fee638e86c680f00ed6a6c93d432f4a3a1f2a [INFO] running `Command { std: "docker" "start" "-a" "8764cd717b5735c6ce93944ad69fee638e86c680f00ed6a6c93d432f4a3a1f2a", kill_on_drop: false }` [INFO] [stderr] Checking kdtree v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/lib.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/kdtree.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PairDistanceValue` is never constructed [INFO] [stdout] --> src/kdtree.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct PairDistanceValue [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KDTree` is never constructed [INFO] [stdout] --> src/kdtree.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct KDTree [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `partition`, `quick_selection`, `build_node`, `find_k_nearest_neighbors`, and `knn` are never used [INFO] [stdout] --> src/kdtree.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 63 | / impl KDTree [INFO] [stdout] 64 | | where [INFO] [stdout] 65 | | T: Clone, [INFO] [stdout] 66 | | D: PartialOrd, [INFO] [stdout] 67 | | FMap: Fn(&T) -> D, [INFO] [stdout] 68 | | FDist: Fn(&T, &T) -> D, [INFO] [stdout] 69 | | FRadius: Fn(&D, &D) -> D, [INFO] [stdout] | |_____________________________- associated items in this implementation [INFO] [stdout] 70 | { [INFO] [stdout] 71 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn partition(data: &mut [T], dimension: &FMap) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn quick_selection<'a>(data: &'a mut [T], dimension: &FMap, ind: usize) -> &'a T { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn build_node( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn find_k_nearest_neighbors(&self, target: &T, k: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | fn knn( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | let dimensions = vec![|p: &Point| p.x, |p: &Point| p.y]; [INFO] [stdout] | ^^^^^-----------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | the expected closure [INFO] [stdout] | expected `[{closure@lib.rs:25:31}; _]`, found `[fn(&Point) -> f64; 2]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[{closure@src/lib.rs:25:31: 25:42}; _]` [INFO] [stdout] found array `[for<'a> fn(&'a Point) -> f64; 2]` [INFO] [stdout] help: the return type of this call is `[for<'a> fn(&'a Point) -> f64; 2]` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | let dimensions = vec![|p: &Point| p.x, |p: &Point| p.y]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | let dimensions = vec![|p: &Point| p.x, |p: &Point| p.y]; [INFO] [stdout] | ^^^^^-----------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | the expected closure [INFO] [stdout] | expected `[{closure@lib.rs:63:31}; _]`, found `[fn(&Point) -> f64; 2]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[{closure@src/lib.rs:63:31: 63:42}; _]` [INFO] [stdout] found array `[for<'a> fn(&'a Point) -> f64; 2]` [INFO] [stdout] help: the return type of this call is `[for<'a> fn(&'a Point) -> f64; 2]` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | let dimensions = vec![|p: &Point| p.x, |p: &Point| p.y]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:103:26 [INFO] [stdout] | [INFO] [stdout] 103 | let dimensions = vec![|p: &Point| p.x, |p: &Point| p.y]; [INFO] [stdout] | ^^^^^-----------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | the expected closure [INFO] [stdout] | expected `[{closure@lib.rs:103:31}; _]`, found `[fn(&Point) -> f64; 2]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[{closure@src/lib.rs:103:31: 103:42}; _]` [INFO] [stdout] found array `[for<'a> fn(&'a Point) -> f64; 2]` [INFO] [stdout] help: the return type of this call is `[for<'a> fn(&'a Point) -> f64; 2]` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:103:26 [INFO] [stdout] | [INFO] [stdout] 103 | let dimensions = vec![|p: &Point| p.x, |p: &Point| p.y]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kdtree` (lib test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "8764cd717b5735c6ce93944ad69fee638e86c680f00ed6a6c93d432f4a3a1f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8764cd717b5735c6ce93944ad69fee638e86c680f00ed6a6c93d432f4a3a1f2a", kill_on_drop: false }` [INFO] [stdout] 8764cd717b5735c6ce93944ad69fee638e86c680f00ed6a6c93d432f4a3a1f2a