[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 master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a 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-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/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-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/durki007/pea-genetic on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "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" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4d87fc2ff73da562c0354c06c74f555b7114f694eda5a2cc759f1c93a8b9f863
[INFO] running `Command { std: "docker" "start" "-a" "4d87fc2ff73da562c0354c06c74f555b7114f694eda5a2cc759f1c93a8b9f863", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4d87fc2ff73da562c0354c06c74f555b7114f694eda5a2cc759f1c93a8b9f863", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4d87fc2ff73da562c0354c06c74f555b7114f694eda5a2cc759f1c93a8b9f863", kill_on_drop: false }`
[INFO] [stdout] 4d87fc2ff73da562c0354c06c74f555b7114f694eda5a2cc759f1c93a8b9f863
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] efcc3aceac2d520fcff150b985adaa35cbce806f951e17c456df5a676834ea50
[INFO] running `Command { std: "docker" "start" "-a" "efcc3aceac2d520fcff150b985adaa35cbce806f951e17c456df5a676834ea50", 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]    Compiling syn v2.0.48
[INFO] [stderr]     Checking rand_chacha v0.3.1
[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: 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] 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: 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]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.50s
[INFO] running `Command { std: "docker" "inspect" "efcc3aceac2d520fcff150b985adaa35cbce806f951e17c456df5a676834ea50", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "efcc3aceac2d520fcff150b985adaa35cbce806f951e17c456df5a676834ea50", kill_on_drop: false }`
[INFO] [stdout] efcc3aceac2d520fcff150b985adaa35cbce806f951e17c456df5a676834ea50
