[INFO] cloning repository https://github.com/rgrativol/lotto6 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rgrativol/lotto6" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frgrativol%2Flotto6", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frgrativol%2Flotto6'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1cf9ca4ab5aff21d0c62abfae4dde01b617cc309 [INFO] checking rgrativol/lotto6 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frgrativol%2Flotto6" "/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/rgrativol/lotto6 [INFO] finished tweaking git repo https://github.com/rgrativol/lotto6 [INFO] tweaked toml for git repo https://github.com/rgrativol/lotto6 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rgrativol/lotto6 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rgrativol/lotto6 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fde17d6ce6f7cf70a303a863ef23522bf20ec1b6cca6384bcd0972a4bf713703 [INFO] running `Command { std: "docker" "start" "-a" "fde17d6ce6f7cf70a303a863ef23522bf20ec1b6cca6384bcd0972a4bf713703", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fde17d6ce6f7cf70a303a863ef23522bf20ec1b6cca6384bcd0972a4bf713703", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fde17d6ce6f7cf70a303a863ef23522bf20ec1b6cca6384bcd0972a4bf713703", kill_on_drop: false }` [INFO] [stdout] fde17d6ce6f7cf70a303a863ef23522bf20ec1b6cca6384bcd0972a4bf713703 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5ac8418db046962191b94364d06182fad0e53ce4acf1219500f5d388fb405c3 [INFO] running `Command { std: "docker" "start" "-a" "d5ac8418db046962191b94364d06182fad0e53ce4acf1219500f5d388fb405c3", kill_on_drop: false }` [INFO] [stderr] Checking lotto6 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | fn frequency(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | fn most_overdue_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | fn most_common_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | fn least_often_picked_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | fn most_common_pair(draws: &Vec) -> Vec<(u8,u8, u32)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | fn most_common_triplets(draws: &Vec) -> Vec<(u8, u8, u8, u32)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let draws = load_csv(csv_path); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `n_bonus` is never read [INFO] [stdout] --> src/models.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Draw { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | n_bonus: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Draw` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DrawSummary` is never used [INFO] [stdout] --> src/stats.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type DrawSummary = (u8, u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `frequency` is never used [INFO] [stdout] --> src/stats.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn frequency(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_overdue_numbers` is never used [INFO] [stdout] --> src/stats.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn most_overdue_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_common_numbers` is never used [INFO] [stdout] --> src/stats.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn most_common_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `least_often_picked_numbers` is never used [INFO] [stdout] --> src/stats.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn least_often_picked_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_common_pair` is never used [INFO] [stdout] --> src/stats.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn most_common_pair(draws: &Vec) -> Vec<(u8,u8, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_common_triplets` is never used [INFO] [stdout] --> src/stats.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn most_common_triplets(draws: &Vec) -> Vec<(u8, u8, u8, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrequencyStack` is never constructed [INFO] [stdout] --> src/frequency_stack.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct FrequencyStack{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push` and `pop` are never used [INFO] [stdout] --> src/frequency_stack.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl FrequencyStack{ [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 9 | fn push(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn pop(&self){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | fn frequency(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | fn most_overdue_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | fn most_common_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | fn least_often_picked_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | fn most_common_pair(draws: &Vec) -> Vec<(u8,u8, u32)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/stats.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | fn most_common_triplets(draws: &Vec) -> Vec<(u8, u8, u8, u32)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draws` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let draws = load_csv(csv_path); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_draws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `n_bonus` is never read [INFO] [stdout] --> src/models.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Draw { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | n_bonus: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Draw` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DrawSummary` is never used [INFO] [stdout] --> src/stats.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type DrawSummary = (u8, u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `frequency` is never used [INFO] [stdout] --> src/stats.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn frequency(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_overdue_numbers` is never used [INFO] [stdout] --> src/stats.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn most_overdue_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_common_numbers` is never used [INFO] [stdout] --> src/stats.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn most_common_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `least_often_picked_numbers` is never used [INFO] [stdout] --> src/stats.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn least_often_picked_numbers(draws: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_common_pair` is never used [INFO] [stdout] --> src/stats.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn most_common_pair(draws: &Vec) -> Vec<(u8,u8, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_common_triplets` is never used [INFO] [stdout] --> src/stats.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn most_common_triplets(draws: &Vec) -> Vec<(u8, u8, u8, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FrequencyStack` is never constructed [INFO] [stdout] --> src/frequency_stack.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct FrequencyStack{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push` and `pop` are never used [INFO] [stdout] --> src/frequency_stack.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl FrequencyStack{ [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 9 | fn push(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn pop(&self){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "d5ac8418db046962191b94364d06182fad0e53ce4acf1219500f5d388fb405c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5ac8418db046962191b94364d06182fad0e53ce4acf1219500f5d388fb405c3", kill_on_drop: false }` [INFO] [stdout] d5ac8418db046962191b94364d06182fad0e53ce4acf1219500f5d388fb405c3