[INFO] cloning repository https://github.com/hkapp/hakarl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hkapp/hakarl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhkapp%2Fhakarl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhkapp%2Fhakarl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e999bade9a7554b2b4d5d792c0fb0dedb998935 [INFO] checking hkapp/hakarl against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhkapp%2Fhakarl" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hkapp/hakarl on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hkapp/hakarl [INFO] finished tweaking git repo https://github.com/hkapp/hakarl [INFO] tweaked toml for git repo https://github.com/hkapp/hakarl written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hkapp/hakarl 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded atomic-option v0.1.2 [INFO] [stderr] Downloaded chess v3.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ecf6d75595f85529fd17255661f781dd76059656ae8a08e51d02a29472d8a9c1 [INFO] running `Command { std: "docker" "start" "-a" "ecf6d75595f85529fd17255661f781dd76059656ae8a08e51d02a29472d8a9c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ecf6d75595f85529fd17255661f781dd76059656ae8a08e51d02a29472d8a9c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecf6d75595f85529fd17255661f781dd76059656ae8a08e51d02a29472d8a9c1", kill_on_drop: false }` [INFO] [stdout] ecf6d75595f85529fd17255661f781dd76059656ae8a08e51d02a29472d8a9c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb5e26e87e0fea4eb4595ca85339046578328bad8115d4ae29f08644e4e01d29 [INFO] running `Command { std: "docker" "start" "-a" "cb5e26e87e0fea4eb4595ca85339046578328bad8115d4ae29f08644e4e01d29", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.44 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking gimli v0.22.0 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking rustc-demangle v0.1.17 [INFO] [stderr] Checking object v0.21.1 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Checking atomic-option v0.1.2 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling chess v3.1.1 [INFO] [stderr] Checking addr2line v0.13.0 [INFO] [stderr] Checking backtrace v0.3.53 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking hakarl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `chess` is imported redundantly [INFO] [stdout] --> src/pgn.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use chess::{self, ChessMove, Piece, Board, Color, Square, File}; [INFO] [stdout] | ^^^^ the item `chess` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `File` is imported redundantly [INFO] [stdout] --> src/pgn.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 1 | use chess::{self, ChessMove, Piece, Board, Color, Square, File}; [INFO] [stdout] | ---- the item `File` is already imported here [INFO] [stdout] ... [INFO] [stdout] 302 | use chess::File; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `chess` is imported redundantly [INFO] [stdout] --> src/play/astar/astarparl.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chess; [INFO] [stdout] | ^^^^^ the item `chess` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `chess` is imported redundantly [INFO] [stdout] --> src/play/astar.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chess; [INFO] [stdout] | ^^^^^ the item `chess` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sized` is imported redundantly [INFO] [stdout] --> src/play/searchtree.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::marker::Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Sized` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::iter` [INFO] [stdout] --> src/play/searchtree.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::iter; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `chess` is imported redundantly [INFO] [stdout] --> src/pgn.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use chess::{self, ChessMove, Piece, Board, Color, Square, File}; [INFO] [stdout] | ^^^^ the item `chess` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `File` is imported redundantly [INFO] [stdout] --> src/pgn.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 1 | use chess::{self, ChessMove, Piece, Board, Color, Square, File}; [INFO] [stdout] | ---- the item `File` is already imported here [INFO] [stdout] ... [INFO] [stdout] 302 | use chess::File; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `chess` is imported redundantly [INFO] [stdout] --> src/play/astar/astarparl.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chess; [INFO] [stdout] | ^^^^^ the item `chess` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `chess` is imported redundantly [INFO] [stdout] --> src/play/astar.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chess; [INFO] [stdout] | ^^^^^ the item `chess` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Sized` is imported redundantly [INFO] [stdout] --> src/play/searchtree.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::marker::Sized; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Sized` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::iter` [INFO] [stdout] --> src/play/searchtree.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::iter; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/play/searchtree.rs:215:6 [INFO] [stdout] | [INFO] [stdout] 215 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/play/searchtree.rs:250:6 [INFO] [stdout] | [INFO] [stdout] 250 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/utils/fairheap.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/play/searchtree.rs:215:6 [INFO] [stdout] | [INFO] [stdout] 215 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/play/searchtree.rs:250:6 [INFO] [stdout] | [INFO] [stdout] 250 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/utils/fairheap.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for type parameter `N` in the current scope [INFO] [stdout] --> src/play/searchtree.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn bifold(tree: N, init_value: V, process_node: FN, process_branch: FE) -> V [INFO] [stdout] | - method `clone` not found for this type parameter [INFO] [stdout] ... [INFO] [stdout] 67 | result = bifold(tree.clone()) [INFO] [stdout] | ^^^^^ method not found in `N` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `clone`, perhaps you need to restrict type parameter `N` with it: [INFO] [stdout] | [INFO] [stdout] 59 | N: SearchNode + Clone, [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> src/play/searchtree.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | result = bifold(tree.clone()) [INFO] [stdout] | ^^^^^^-------------- three arguments are missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/play/searchtree.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn bifold(tree: N, init_value: V, process_node: FN, process_branch: FE) -> V [INFO] [stdout] | ^^^^^^ ------- ------------- ---------------- ------------------ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 67 | result = bifold(tree.clone(), /* V */, /* process_node */, /* process_branch */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for type parameter `N` in the current scope [INFO] [stdout] --> src/play/searchtree.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn bifold(tree: N, init_value: V, process_node: FN, process_branch: FE) -> V [INFO] [stdout] | - method `clone` not found for this type parameter [INFO] [stdout] ... [INFO] [stdout] 67 | result = bifold(tree.clone()) [INFO] [stdout] | ^^^^^ method not found in `N` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `clone`, perhaps you need to restrict type parameter `N` with it: [INFO] [stdout] | [INFO] [stdout] 59 | N: SearchNode + Clone, [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 1 argument was supplied [INFO] [stdout] --> src/play/searchtree.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | result = bifold(tree.clone()) [INFO] [stdout] | ^^^^^^-------------- three arguments are missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/play/searchtree.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn bifold(tree: N, init_value: V, process_node: FN, process_branch: FE) -> V [INFO] [stdout] | ^^^^^^ ------- ------------- ---------------- ------------------ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 67 | result = bifold(tree.clone(), /* V */, /* process_node */, /* process_branch */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/play/searchtree.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn bifold(tree: N, init_value: V, process_node: FN, process_branch: FE) -> V [INFO] [stdout] | - expected this type parameter - expected `V` because of return type [INFO] [stdout] ... [INFO] [stdout] 65 | / for branch in tree.branches() { [INFO] [stdout] 66 | | result = process_branch(result, &tree, &branch); [INFO] [stdout] 67 | | result = bifold(tree.clone()) [INFO] [stdout] 68 | | } [INFO] [stdout] | |_____^ expected type parameter `V`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `V` [INFO] [stdout] found unit type `()` [INFO] [stdout] = note: the caller chooses a type for `V` which can be different from `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/play/searchtree.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn bifold(tree: N, init_value: V, process_node: FN, process_branch: FE) -> V [INFO] [stdout] | - expected this type parameter - expected `V` because of return type [INFO] [stdout] ... [INFO] [stdout] 65 | / for branch in tree.branches() { [INFO] [stdout] 66 | | result = process_branch(result, &tree, &branch); [INFO] [stdout] 67 | | result = bifold(tree.clone()) [INFO] [stdout] 68 | | } [INFO] [stdout] | |_____^ expected type parameter `V`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `V` [INFO] [stdout] found unit type `()` [INFO] [stdout] = note: the caller chooses a type for `V` which can be different from `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/pgn.rs:425:22 [INFO] [stdout] | [INFO] [stdout] 425 | fn parse_castle_move(s: &str) -> ParseRes { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/pgn.rs:425:22 [INFO] [stdout] | [INFO] [stdout] 425 | fn parse_castle_move(s: &str) -> ParseRes { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hakarl` (bin "hakarl") due to 4 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hakarl` (bin "hakarl" test) due to 4 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cb5e26e87e0fea4eb4595ca85339046578328bad8115d4ae29f08644e4e01d29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb5e26e87e0fea4eb4595ca85339046578328bad8115d4ae29f08644e4e01d29", kill_on_drop: false }` [INFO] [stdout] cb5e26e87e0fea4eb4595ca85339046578328bad8115d4ae29f08644e4e01d29