[INFO] cloning repository https://github.com/lochyj/rust-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lochyj/rust-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flochyj%2Frust-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flochyj%2Frust-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2e546cb9eab38727d22b7c864165d7e89258c7f6 [INFO] testing lochyj/rust-chess against master#1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 for pr-154065-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flochyj%2Frust-chess" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lochyj/rust-chess [INFO] finished tweaking git repo https://github.com/lochyj/rust-chess [INFO] tweaked toml for git repo https://github.com/lochyj/rust-chess written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lochyj/rust-chess on toolchain 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lochyj/rust-chess 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" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7187ea7417f46d444156f8183538d5f3377e1a7e5ef31ee25c6a4246328ffb83 [INFO] running `Command { std: "docker" "start" "-a" "7187ea7417f46d444156f8183538d5f3377e1a7e5ef31ee25c6a4246328ffb83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7187ea7417f46d444156f8183538d5f3377e1a7e5ef31ee25c6a4246328ffb83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7187ea7417f46d444156f8183538d5f3377e1a7e5ef31ee25c6a4246328ffb83", kill_on_drop: false }` [INFO] [stdout] 7187ea7417f46d444156f8183538d5f3377e1a7e5ef31ee25c6a4246328ffb83 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cadddb7a17ec371e761ac9f664b02222d78a99b45d8d013425d67aa64f266334 [INFO] running `Command { std: "docker" "start" "-a" "cadddb7a17ec371e761ac9f664b02222d78a99b45d8d013425d67aa64f266334", kill_on_drop: false }` [INFO] [stderr] Compiling rust-chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | Pawn = "p", [INFO] [stdout] | ^^^ expected `isize`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: enum variant discriminant can only be of a primitive type compatible with the enum's `repr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | Knight = "n", [INFO] [stdout] | ^^^ expected `isize`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: enum variant discriminant can only be of a primitive type compatible with the enum's `repr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | Bishop = "b", [INFO] [stdout] | ^^^ expected `isize`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: enum variant discriminant can only be of a primitive type compatible with the enum's `repr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | Rook = "r", [INFO] [stdout] | ^^^ expected `isize`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: enum variant discriminant can only be of a primitive type compatible with the enum's `repr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | Queen = "q", [INFO] [stdout] | ^^^ expected `isize`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: enum variant discriminant can only be of a primitive type compatible with the enum's `repr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | King = "k", [INFO] [stdout] | ^^^ expected `isize`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: enum variant discriminant can only be of a primitive type compatible with the enum's `repr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Blank = "", [INFO] [stdout] | ^^ expected `isize`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: enum variant discriminant can only be of a primitive type compatible with the enum's `repr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn fen_to_board(locations: &str) -> Vec<((i32, i32), &str)> { [INFO] [stdout] | ----------------------- expected `Vec<((i32, i32), &str)>` because of return type [INFO] [stdout] ... [INFO] [stdout] 29 | return &result; [INFO] [stdout] | ^^^^^^^ expected `Vec<((i32, i32), &str)>`, found `&Vec<((usize, usize), &String)>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<((i32, i32), &str)>` [INFO] [stdout] found reference `&Vec<((usize, usize), &String)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-chess` (bin "rust-chess") due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "cadddb7a17ec371e761ac9f664b02222d78a99b45d8d013425d67aa64f266334", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cadddb7a17ec371e761ac9f664b02222d78a99b45d8d013425d67aa64f266334", kill_on_drop: false }` [INFO] [stdout] cadddb7a17ec371e761ac9f664b02222d78a99b45d8d013425d67aa64f266334