[INFO] cloning repository https://github.com/durki007/pea-genetic
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/durki007/pea-genetic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdurki007%2Fpea-genetic", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdurki007%2Fpea-genetic'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3b4f2c6e619c3ed2458f8c8234c71a29ab92fd40
[INFO] checking durki007/pea-genetic against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdurki007%2Fpea-genetic" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/durki007/pea-genetic
[INFO] finished tweaking git repo https://github.com/durki007/pea-genetic
[INFO] tweaked toml for git repo https://github.com/durki007/pea-genetic written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/durki007/pea-genetic on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/durki007/pea-genetic 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6389d9684571a26419cb0add955507308cd5ccc201ae4d9bf57f8131fe24edca
[INFO] running `Command { std: "docker" "start" "-a" "6389d9684571a26419cb0add955507308cd5ccc201ae4d9bf57f8131fe24edca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6389d9684571a26419cb0add955507308cd5ccc201ae4d9bf57f8131fe24edca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6389d9684571a26419cb0add955507308cd5ccc201ae4d9bf57f8131fe24edca", kill_on_drop: false }`
[INFO] [stdout] 6389d9684571a26419cb0add955507308cd5ccc201ae4d9bf57f8131fe24edca
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b7e598e11b56d6e8668a8b876091ec7324f9842e509bcb8c8cdf30f3092e16bd
[INFO] running `Command { std: "docker" "start" "-a" "b7e598e11b56d6e8668a8b876091ec7324f9842e509bcb8c8cdf30f3092e16bd", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.76
[INFO] [stderr]    Compiling libc v0.2.152
[INFO] [stderr]    Compiling serde v1.0.195
[INFO] [stderr]     Checking clap_lex v0.6.0
[INFO] [stderr]    Compiling serde_json v1.0.111
[INFO] [stderr]     Checking anstream v0.6.7
[INFO] [stderr]     Checking clap_builder v4.4.16
[INFO] [stderr]     Checking getrandom v0.2.12
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling serde_derive v1.0.195
[INFO] [stderr]    Compiling clap_derive v4.4.7
[INFO] [stderr]     Checking clap v4.4.16
[INFO] [stderr]     Checking pea-genetic v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/genetic.rs:154:9
[INFO] [stdout]     |
[INFO] [stdout] 154 |     for i in 0..swap_count {
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/genetic.rs:213:9
[INFO] [stdout]     |
[INFO] [stdout] 213 |     let mut child: Vec<Option<usize>> = vec![None; parent1.len()];
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/genetic.rs:214:9
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let mut cycle = 0;
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/genetic.rs:215:9
[INFO] [stdout]     |
[INFO] [stdout] 215 |     let mut current = 0;
[INFO] [stdout]     |         ----^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `parent2`
[INFO] [stdout]    --> src/genetic.rs:212:42
[INFO] [stdout]     |
[INFO] [stdout] 212 | fn cycle_crossover(parent1: &Vec<usize>, parent2: &Vec<usize>, _params: &GAParameters) -> Vec<usize> {
[INFO] [stdout]     |                                          ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cycle`
[INFO] [stdout]    --> src/genetic.rs:214:9
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let mut cycle = 0;
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/genetic.rs:154:9
[INFO] [stdout]     |
[INFO] [stdout] 154 |     for i in 0..swap_count {
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/genetic.rs:213:9
[INFO] [stdout]     |
[INFO] [stdout] 213 |     let mut child: Vec<Option<usize>> = vec![None; parent1.len()];
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/genetic.rs:214:9
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let mut cycle = 0;
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/genetic.rs:215:9
[INFO] [stdout]     |
[INFO] [stdout] 215 |     let mut current = 0;
[INFO] [stdout]     |         ----^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `parent2`
[INFO] [stdout]    --> src/genetic.rs:212:42
[INFO] [stdout]     |
[INFO] [stdout] 212 | fn cycle_crossover(parent1: &Vec<usize>, parent2: &Vec<usize>, _params: &GAParameters) -> Vec<usize> {
[INFO] [stdout]     |                                          ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cycle`
[INFO] [stdout]    --> src/genetic.rs:214:9
[INFO] [stdout]     |
[INFO] [stdout] 214 |     let mut cycle = 0;
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cycle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<usize, Infallible>
[INFO] [stdout]   --> src/graph.rs:16:40
[INFO] [stdout]    |
[INFO] [stdout] 16 |             gr.adj_matrix.push(vec![0; size.try_into().unwrap()]);
[INFO] [stdout]    |                                        ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&usize` instead of cloning the inner type
[INFO] [stdout]    --> src/genetic.rs:202:55
[INFO] [stdout]     |
[INFO] [stdout] 202 |     parent2.iter().filter(|x| !child.contains(&Some(*x.clone()))).for_each(|x| unused.push(*x));
[INFO] [stdout]     |                                                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<usize, Infallible>
[INFO] [stdout]   --> src/graph.rs:16:40
[INFO] [stdout]    |
[INFO] [stdout] 16 |             gr.adj_matrix.push(vec![0; size.try_into().unwrap()]);
[INFO] [stdout]    |                                        ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: requested on the command line with `-D unmustuse-in-always-ok`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&usize` instead of cloning the inner type
[INFO] [stdout]    --> src/genetic.rs:202:55
[INFO] [stdout]     |
[INFO] [stdout] 202 |     parent2.iter().filter(|x| !child.contains(&Some(*x.clone()))).for_each(|x| unused.push(*x));
[INFO] [stdout]     |                                                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pea-genetic` (bin "pea-genetic" test) due to 1 previous error; 7 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `pea-genetic` (bin "pea-genetic") due to 1 previous error; 7 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "b7e598e11b56d6e8668a8b876091ec7324f9842e509bcb8c8cdf30f3092e16bd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b7e598e11b56d6e8668a8b876091ec7324f9842e509bcb8c8cdf30f3092e16bd", kill_on_drop: false }`
[INFO] [stdout] b7e598e11b56d6e8668a8b876091ec7324f9842e509bcb8c8cdf30f3092e16bd
