[INFO] cloning repository https://github.com/sha0coder/logic-evolver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sha0coder/logic-evolver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Flogic-evolver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Flogic-evolver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c7178f3fec2b0e15d7e3a03347f65a08cb33d036 [INFO] checking sha0coder/logic-evolver against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Flogic-evolver" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sha0coder/logic-evolver on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sha0coder/logic-evolver [INFO] finished tweaking git repo https://github.com/sha0coder/logic-evolver [INFO] tweaked toml for git repo https://github.com/sha0coder/logic-evolver written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/sha0coder/logic-evolver already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56bc879e426680482c72169baf3723c5df3b522c23c1c03795c84f888c0369dc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "56bc879e426680482c72169baf3723c5df3b522c23c1c03795c84f888c0369dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56bc879e426680482c72169baf3723c5df3b522c23c1c03795c84f888c0369dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56bc879e426680482c72169baf3723c5df3b522c23c1c03795c84f888c0369dc", kill_on_drop: false }` [INFO] [stdout] 56bc879e426680482c72169baf3723c5df3b522c23c1c03795c84f888c0369dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6626db2ee54daaa780cf264d987bcba91b4211e3a7faaf87ede2cf2a92440a2e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6626db2ee54daaa780cf264d987bcba91b4211e3a7faaf87ede2cf2a92440a2e", kill_on_drop: false }` [INFO] [stderr] Checking logic-evolver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:182:16 [INFO] [stdout] | [INFO] [stdout] 182 | if (self.debugMode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cpu.rs:210:23 [INFO] [stdout] | [INFO] [stdout] 210 | _ => {;} [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:213:16 [INFO] [stdout] | [INFO] [stdout] 213 | if (self.debugMode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:278:16 [INFO] [stdout] | [INFO] [stdout] 278 | if (self.get_rand(100) < prob) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:279:20 [INFO] [stdout] | [INFO] [stdout] 279 | if (self.get_rand(100) < 75) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:280:24 [INFO] [stdout] | [INFO] [stdout] 280 | if (self.get_rand(100) < 55) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:313:20 [INFO] [stdout] | [INFO] [stdout] 313 | if (self.get_rand(100)<50) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/ga.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::Instruction` [INFO] [stdout] --> src/ga.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use cpu::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | if (ftv.len() == 5) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 98 | if (!ftv.contains(&k)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | if (falta.len()<5) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 117 | if (falta.len() == 1 && tv.contains(&falta[0])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | if (falta.len() == 2 && tv.contains(&falta[0]) && tv.contains(&falta[1])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | if (falta.len() == 2 && (tv.contains(&falta[0]) || tv.contains(&falta[1]))) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 134 | if (falta.len() == 3 && tv.contains(&falta[0]) && tv.contains(&falta[1]) && tv.contains(&falta[2])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:140:24 [INFO] [stdout] | [INFO] [stdout] 140 | if (falta.len() == 3 && (tv.contains(&falta[0]) || tv.contains(&falta[1]) || tv.contains(&falta[2]))) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:146:24 [INFO] [stdout] | [INFO] [stdout] 146 | if (falta.len() == 4) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::Instruction` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use cpu::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | if (cpu.result() == 3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | if (cpu.result() == 4) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | if (cpu.result() == 3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | if (cpu.result() == 6) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | if (cpu.result() == 8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:182:16 [INFO] [stdout] | [INFO] [stdout] 182 | if (self.debugMode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cpu.rs:210:23 [INFO] [stdout] | [INFO] [stdout] 210 | _ => {;} [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:213:16 [INFO] [stdout] | [INFO] [stdout] 213 | if (self.debugMode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:278:16 [INFO] [stdout] | [INFO] [stdout] 278 | if (self.get_rand(100) < prob) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:279:20 [INFO] [stdout] | [INFO] [stdout] 279 | if (self.get_rand(100) < 75) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:280:24 [INFO] [stdout] | [INFO] [stdout] 280 | if (self.get_rand(100) < 55) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/cpu.rs:313:20 [INFO] [stdout] | [INFO] [stdout] 313 | if (self.get_rand(100)<50) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/ga.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::Instruction` [INFO] [stdout] --> src/ga.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use cpu::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | if (ftv.len() == 5) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 98 | if (!ftv.contains(&k)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | if (falta.len()<5) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 117 | if (falta.len() == 1 && tv.contains(&falta[0])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | if (falta.len() == 2 && tv.contains(&falta[0]) && tv.contains(&falta[1])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | if (falta.len() == 2 && (tv.contains(&falta[0]) || tv.contains(&falta[1]))) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:134:24 [INFO] [stdout] | [INFO] [stdout] 134 | if (falta.len() == 3 && tv.contains(&falta[0]) && tv.contains(&falta[1]) && tv.contains(&falta[2])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:140:24 [INFO] [stdout] | [INFO] [stdout] 140 | if (falta.len() == 3 && (tv.contains(&falta[0]) || tv.contains(&falta[1]) || tv.contains(&falta[2]))) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ga.rs:146:24 [INFO] [stdout] | [INFO] [stdout] 146 | if (falta.len() == 4) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::Instruction` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use cpu::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | if (cpu.result() == 3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | if (cpu.result() == 4) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | if (cpu.result() == 3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | if (cpu.result() == 6) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | if (cpu.result() == 8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ga.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let i: usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/ga.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let j: usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/ga.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let k: u8 = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/ga.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let i: usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/ga.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let j: usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/ga.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let k: u8 = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut sorted = self.sort(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | let mut pmother = &self.population[sorted[j]]; [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/ga.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | let mut vchilds = father.crossover2(mum); [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/ga.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | let mut vchilds = father.crossover2(mum); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_a` [INFO] [stdout] --> src/cpu.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_a(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_b` [INFO] [stdout] --> src/cpu.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_b(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_opcode` [INFO] [stdout] --> src/cpu.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `params` [INFO] [stdout] --> src/cpu.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | params: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `debug` [INFO] [stdout] --> src/cpu.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn debug(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_params` [INFO] [stdout] --> src/cpu.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn init_params(&mut self, p: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_var` [INFO] [stdout] --> src/cpu.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn get_var(&self, i: usize) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_instruction` [INFO] [stdout] --> src/cpu.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn add_instruction(&mut self, i: Instruction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `instructions` [INFO] [stdout] --> src/cpu.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn instructions(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/cpu.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn load(&mut self, code: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/cpu.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mutation_probability` [INFO] [stdout] --> src/ga.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | mutation_probability: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sz` [INFO] [stdout] --> src/ga.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | sz: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `operandA` should have a snake case name [INFO] [stdout] --> src/cpu.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(opcode:u8, operandA:usize, operandB:usize) -> Instruction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `operand_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `operandB` should have a snake case name [INFO] [stdout] --> src/cpu.rs:22:43 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(opcode:u8, operandA:usize, operandB:usize) -> Instruction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `operand_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `debugMode` should have a snake case name [INFO] [stdout] --> src/cpu.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | debugMode: bool [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `debug_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut sorted = self.sort(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:114:25 [INFO] [stdout] | [INFO] [stdout] 114 | let mut pmother = &self.population[sorted[j]]; [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/ga.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | let mut vchilds = father.crossover2(mum); [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/ga.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | let mut vchilds = father.crossover2(mum); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_a` [INFO] [stdout] --> src/cpu.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_a(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_b` [INFO] [stdout] --> src/cpu.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_b(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_opcode` [INFO] [stdout] --> src/cpu.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `params` [INFO] [stdout] --> src/cpu.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | params: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `debug` [INFO] [stdout] --> src/cpu.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn debug(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_params` [INFO] [stdout] --> src/cpu.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn init_params(&mut self, p: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_var` [INFO] [stdout] --> src/cpu.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn get_var(&self, i: usize) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_instruction` [INFO] [stdout] --> src/cpu.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn add_instruction(&mut self, i: Instruction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `instructions` [INFO] [stdout] --> src/cpu.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn instructions(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/cpu.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn load(&mut self, code: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/cpu.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mutation_probability` [INFO] [stdout] --> src/ga.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | mutation_probability: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sz` [INFO] [stdout] --> src/ga.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | sz: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `operandA` should have a snake case name [INFO] [stdout] --> src/cpu.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(opcode:u8, operandA:usize, operandB:usize) -> Instruction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `operand_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `operandB` should have a snake case name [INFO] [stdout] --> src/cpu.rs:22:43 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(opcode:u8, operandA:usize, operandB:usize) -> Instruction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `operand_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `debugMode` should have a snake case name [INFO] [stdout] --> src/cpu.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | debugMode: bool [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `debug_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "6626db2ee54daaa780cf264d987bcba91b4211e3a7faaf87ede2cf2a92440a2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6626db2ee54daaa780cf264d987bcba91b4211e3a7faaf87ede2cf2a92440a2e", kill_on_drop: false }` [INFO] [stdout] 6626db2ee54daaa780cf264d987bcba91b4211e3a7faaf87ede2cf2a92440a2e