[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#bbefc9837f4157cc09ed60e6d7b21e345d582dd9 for pr-114571-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Flogic-evolver" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sha0coder/logic-evolver on toolchain bbefc9837f4157cc09ed60e6d7b21e345d582dd9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bbefc9837f4157cc09ed60e6d7b21e345d582dd9" "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-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bbefc9837f4157cc09ed60e6d7b21e345d582dd9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking sha0coder/logic-evolver against try#2399cef65c47f346b5fa9df51f48df0acd4a9d85 for pr-114571-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Flogic-evolver" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sha0coder/logic-evolver on toolchain 2399cef65c47f346b5fa9df51f48df0acd4a9d85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "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-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "fetch" "--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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 001c270fe543743666711f827406097d34d3788ea88868e3cea363018c2c5843 [INFO] running `Command { std: "docker" "start" "-a" "001c270fe543743666711f827406097d34d3788ea88868e3cea363018c2c5843", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "001c270fe543743666711f827406097d34d3788ea88868e3cea363018c2c5843", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "001c270fe543743666711f827406097d34d3788ea88868e3cea363018c2c5843", kill_on_drop: false }` [INFO] [stdout] 001c270fe543743666711f827406097d34d3788ea88868e3cea363018c2c5843 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ea6517d28cb6b8392aae08b308b195848802edf591d01d6b64b52445e4c613a1 [INFO] running `Command { std: "docker" "start" "-a" "ea6517d28cb6b8392aae08b308b195848802edf591d01d6b64b52445e4c613a1", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.31 [INFO] [stderr] Checking rand v0.3.16 [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - if (self.debugMode) { [INFO] [stdout] 182 + if self.debugMode { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 213 - if (self.debugMode) { [INFO] [stdout] 213 + if self.debugMode { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (self.get_rand(100) < prob) { [INFO] [stdout] 278 + if self.get_rand(100) < prob { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - if (self.debugMode) { [INFO] [stdout] 182 + if self.debugMode { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 279 - if (self.get_rand(100) < 75) { [INFO] [stdout] 279 + if self.get_rand(100) < 75 { [INFO] [stdout] | [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:280:24 [INFO] [stdout] | [INFO] [stdout] 280 | if (self.get_rand(100) < 55) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if (self.get_rand(100) < 55) { [INFO] [stdout] 280 + if self.get_rand(100) < 55 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 213 - if (self.debugMode) { [INFO] [stdout] 213 + if self.debugMode { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (self.get_rand(100) < prob) { [INFO] [stdout] 278 + if self.get_rand(100) < prob { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 313 - if (self.get_rand(100)<50) { [INFO] [stdout] 313 + if self.get_rand(100)<50 { [INFO] [stdout] | [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: 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 279 - if (self.get_rand(100) < 75) { [INFO] [stdout] 279 + if self.get_rand(100) < 75 { [INFO] [stdout] | [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/cpu.rs:280:24 [INFO] [stdout] | [INFO] [stdout] 280 | if (self.get_rand(100) < 55) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if (self.get_rand(100) < 55) { [INFO] [stdout] 280 + if self.get_rand(100) < 55 { [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if (ftv.len() == 5) { [INFO] [stdout] 88 + if ftv.len() == 5 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 313 - if (self.get_rand(100)<50) { [INFO] [stdout] 313 + if self.get_rand(100)<50 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if (!ftv.contains(&k)) { [INFO] [stdout] 98 + if !ftv.contains(&k) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if (falta.len()<5) { [INFO] [stdout] 103 + if falta.len()<5 { [INFO] [stdout] | [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:117:24 [INFO] [stdout] | [INFO] [stdout] 117 | if (falta.len() == 1 && tv.contains(&falta[0])) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - if (falta.len() == 1 && tv.contains(&falta[0])) { [INFO] [stdout] 117 + if falta.len() == 1 && tv.contains(&falta[0]) { [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if (ftv.len() == 5) { [INFO] [stdout] 88 + if ftv.len() == 5 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 123 - if (falta.len() == 2 && tv.contains(&falta[0]) && tv.contains(&falta[1])) { [INFO] [stdout] 123 + if falta.len() == 2 && tv.contains(&falta[0]) && tv.contains(&falta[1]) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if (!ftv.contains(&k)) { [INFO] [stdout] 98 + if !ftv.contains(&k) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 129 - if (falta.len() == 2 && (tv.contains(&falta[0]) || tv.contains(&falta[1]))) { [INFO] [stdout] 129 + if falta.len() == 2 && (tv.contains(&falta[0]) || tv.contains(&falta[1])) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if (falta.len()<5) { [INFO] [stdout] 103 + if falta.len()<5 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (falta.len() == 3 && tv.contains(&falta[0]) && tv.contains(&falta[1]) && tv.contains(&falta[2])) { [INFO] [stdout] 134 + if falta.len() == 3 && tv.contains(&falta[0]) && tv.contains(&falta[1]) && tv.contains(&falta[2]) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - if (falta.len() == 1 && tv.contains(&falta[0])) { [INFO] [stdout] 117 + if falta.len() == 1 && tv.contains(&falta[0]) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if (falta.len() == 3 && (tv.contains(&falta[0]) || tv.contains(&falta[1]) || tv.contains(&falta[2]))) { [INFO] [stdout] 140 + if falta.len() == 3 && (tv.contains(&falta[0]) || tv.contains(&falta[1]) || tv.contains(&falta[2])) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 123 - if (falta.len() == 2 && tv.contains(&falta[0]) && tv.contains(&falta[1])) { [INFO] [stdout] 123 + if falta.len() == 2 && tv.contains(&falta[0]) && tv.contains(&falta[1]) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (falta.len() == 4) { [INFO] [stdout] 146 + if falta.len() == 4 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 129 - if (falta.len() == 2 && (tv.contains(&falta[0]) || tv.contains(&falta[1]))) { [INFO] [stdout] 129 + if falta.len() == 2 && (tv.contains(&falta[0]) || tv.contains(&falta[1])) { [INFO] [stdout] | [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/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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (falta.len() == 3 && tv.contains(&falta[0]) && tv.contains(&falta[1]) && tv.contains(&falta[2])) { [INFO] [stdout] 134 + if falta.len() == 3 && tv.contains(&falta[0]) && tv.contains(&falta[1]) && tv.contains(&falta[2]) { [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - if (cpu.result() == 3) { [INFO] [stdout] 58 + if cpu.result() == 3 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if (falta.len() == 3 && (tv.contains(&falta[0]) || tv.contains(&falta[1]) || tv.contains(&falta[2]))) { [INFO] [stdout] 140 + if falta.len() == 3 && (tv.contains(&falta[0]) || tv.contains(&falta[1]) || tv.contains(&falta[2])) { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - if (cpu.result() == 4) { [INFO] [stdout] 66 + if cpu.result() == 4 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (falta.len() == 4) { [INFO] [stdout] 146 + if falta.len() == 4 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - if (cpu.result() == 3) { [INFO] [stdout] 74 + if cpu.result() == 3 { [INFO] [stdout] | [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:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | if (cpu.result() == 6) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (cpu.result() == 6) { [INFO] [stdout] 82 + if cpu.result() == 6 { [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - if (cpu.result() == 3) { [INFO] [stdout] 58 + if cpu.result() == 3 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - if (cpu.result() == 8) { [INFO] [stdout] 90 + if cpu.result() == 8 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - if (cpu.result() == 4) { [INFO] [stdout] 66 + if cpu.result() == 4 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - if (cpu.result() == 3) { [INFO] [stdout] 74 + if cpu.result() == 3 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (cpu.result() == 6) { [INFO] [stdout] 82 + if cpu.result() == 6 { [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - if (cpu.result() == 8) { [INFO] [stdout] 90 + if cpu.result() == 8 { [INFO] [stdout] | [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: 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: methods `get_a`, `get_b`, and `get_opcode` are never used [INFO] [stdout] --> src/cpu.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Instruction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn get_a(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_b(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> src/cpu.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Cpu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 65 | params: Vec, [INFO] [stdout] | ^^^^^^ [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: multiple methods are never used [INFO] [stdout] --> src/cpu.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn debug(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn init_params(&mut self, p: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_var(&self, i: usize) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn add_instruction(&mut self, i: Instruction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn instructions(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn load(&mut self, code: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mutation_probability` is never read [INFO] [stdout] --> src/ga.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GA { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 13 | population: Vec, [INFO] [stdout] 14 | mutation_probability: u16, [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: 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: 39 warnings emitted [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: methods `get_a`, `get_b`, and `get_opcode` are never used [INFO] [stdout] --> src/cpu.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Instruction { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn get_a(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_b(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_opcode(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> src/cpu.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct Cpu { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 65 | params: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cpu.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Cpu { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn debug(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn init_params(&mut self, p: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_var(&self, i: usize) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn add_instruction(&mut self, i: Instruction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn instructions(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn load(&mut self, code: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mutation_probability` is never read [INFO] [stdout] --> src/ga.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GA { [INFO] [stdout] | -- field in this struct [INFO] [stdout] 13 | population: Vec, [INFO] [stdout] 14 | mutation_probability: u16, [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: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "ea6517d28cb6b8392aae08b308b195848802edf591d01d6b64b52445e4c613a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea6517d28cb6b8392aae08b308b195848802edf591d01d6b64b52445e4c613a1", kill_on_drop: false }` [INFO] [stdout] ea6517d28cb6b8392aae08b308b195848802edf591d01d6b64b52445e4c613a1