[INFO] cloning repository https://github.com/default-g/rust-exercism [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/default-g/rust-exercism" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdefault-g%2Frust-exercism", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdefault-g%2Frust-exercism'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb126b458f53d9cb51ed8b26537a454e1eeee3ea [INFO] checking default-g/rust-exercism against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdefault-g%2Frust-exercism" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/default-g/rust-exercism [INFO] finished tweaking git repo https://github.com/default-g/rust-exercism [INFO] tweaked toml for git repo https://github.com/default-g/rust-exercism written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/default-g/rust-exercism 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/default-g/rust-exercism 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 6a2756fd65f117b570d1b355cb1e5fd8e993d8ada9db3256dc815d09e1fb4b47 [INFO] running `Command { std: "docker" "start" "-a" "6a2756fd65f117b570d1b355cb1e5fd8e993d8ada9db3256dc815d09e1fb4b47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a2756fd65f117b570d1b355cb1e5fd8e993d8ada9db3256dc815d09e1fb4b47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a2756fd65f117b570d1b355cb1e5fd8e993d8ada9db3256dc815d09e1fb4b47", kill_on_drop: false }` [INFO] [stdout] 6a2756fd65f117b570d1b355cb1e5fd8e993d8ada9db3256dc815d09e1fb4b47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 70569991aec7c8239947c5b65db4a33fdf97210cac18f4de2740bfd82fe3fbc1 [INFO] running `Command { std: "docker" "start" "-a" "70569991aec7c8239947c5b65db4a33fdf97210cac18f4de2740bfd82fe3fbc1", kill_on_drop: false }` [INFO] [stderr] Checking fmt v0.1.0 [INFO] [stderr] Checking time v0.3.31 [INFO] [stderr] Checking rust-exercism v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `ptr::null` [INFO] [stdout] --> src/tasks/poker.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, str::FromStr, ptr::null, cmp::Ordering}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdout` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::stdout; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tasks::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tasks::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `ptr::null` [INFO] [stdout] --> src/tasks/poker.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, str::FromStr, ptr::null, cmp::Ordering}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::stdout` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::stdout; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tasks::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tasks::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tasks/poker.rs:186:28 [INFO] [stdout] | [INFO] [stdout] 186 | let winning_variants = vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 187 | | five_of_a_kind, [INFO] [stdout] 188 | | straigh_of_flush, [INFO] [stdout] 189 | | four_of_a_kind, [INFO] [stdout] ... | [INFO] [stdout] 192 | | straigh, [INFO] [stdout] 193 | | ]; [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____expected `[fn(...) -> bool {five_of_a_kind}; _]`, found `[fn(Vec) -> bool; 6]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[fn(Vec) -> bool {five_of_a_kind}; _]` [INFO] [stdout] found array `[fn(Vec) -> bool; 6]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `five_of_a_kind as fn(Vec) -> bool` [INFO] [stdout] help: the return type of this call is `[fn(Vec) -> bool; 6]` due to the type of the argument passed [INFO] [stdout] --> src/tasks/poker.rs:186:28 [INFO] [stdout] | [INFO] [stdout] 186 | let winning_variants = vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 187 | | five_of_a_kind, [INFO] [stdout] 188 | | straigh_of_flush, [INFO] [stdout] 189 | | four_of_a_kind, [INFO] [stdout] ... | [INFO] [stdout] 192 | | straigh, [INFO] [stdout] 193 | | ]; [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] warning: unused variable: `hand` [INFO] [stdout] --> src/tasks/poker.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | fn two_pair(hand: Vec) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hand` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hand` [INFO] [stdout] --> src/tasks/poker.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | fn one_pair(hand: Vec) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hand` [INFO] [stdout] --> src/tasks/poker.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | fn high_card(hand: Vec) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `a` is assigned to, but never used [INFO] [stdout] --> src/main.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | fn add_1(mut a: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_a` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `a` is never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | a += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [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-exercism` (bin "rust-exercism" test) due to 1 previous error; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tasks/poker.rs:186:28 [INFO] [stdout] | [INFO] [stdout] 186 | let winning_variants = vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 187 | | five_of_a_kind, [INFO] [stdout] 188 | | straigh_of_flush, [INFO] [stdout] 189 | | four_of_a_kind, [INFO] [stdout] ... | [INFO] [stdout] 192 | | straigh, [INFO] [stdout] 193 | | ]; [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |_____expected `[fn(...) -> bool {five_of_a_kind}; _]`, found `[fn(Vec) -> bool; 6]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[fn(Vec) -> bool {five_of_a_kind}; _]` [INFO] [stdout] found array `[fn(Vec) -> bool; 6]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `five_of_a_kind as fn(Vec) -> bool` [INFO] [stdout] help: the return type of this call is `[fn(Vec) -> bool; 6]` due to the type of the argument passed [INFO] [stdout] --> src/tasks/poker.rs:186:28 [INFO] [stdout] | [INFO] [stdout] 186 | let winning_variants = vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 187 | | five_of_a_kind, [INFO] [stdout] 188 | | straigh_of_flush, [INFO] [stdout] 189 | | four_of_a_kind, [INFO] [stdout] ... | [INFO] [stdout] 192 | | straigh, [INFO] [stdout] 193 | | ]; [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] warning: unused variable: `hand` [INFO] [stdout] --> src/tasks/poker.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | fn two_pair(hand: Vec) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hand` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hand` [INFO] [stdout] --> src/tasks/poker.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | fn one_pair(hand: Vec) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hand` [INFO] [stdout] --> src/tasks/poker.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | fn high_card(hand: Vec) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `a` is assigned to, but never used [INFO] [stdout] --> src/main.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | fn add_1(mut a: i32) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_a` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `a` is never read [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | a += 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [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-exercism` (bin "rust-exercism") due to 1 previous error; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "70569991aec7c8239947c5b65db4a33fdf97210cac18f4de2740bfd82fe3fbc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70569991aec7c8239947c5b65db4a33fdf97210cac18f4de2740bfd82fe3fbc1", kill_on_drop: false }` [INFO] [stdout] 70569991aec7c8239947c5b65db4a33fdf97210cac18f4de2740bfd82fe3fbc1