[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] building sha0coder/logic-evolver against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Flogic-evolver" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sha0coder/logic-evolver on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-1-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a6a51331cb442b6436efdc49c63e4700463e4c87113ca597436134d7803bded [INFO] running `Command { std: "docker" "start" "-a" "9a6a51331cb442b6436efdc49c63e4700463e4c87113ca597436134d7803bded", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a6a51331cb442b6436efdc49c63e4700463e4c87113ca597436134d7803bded", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a6a51331cb442b6436efdc49c63e4700463e4c87113ca597436134d7803bded", kill_on_drop: false }` [INFO] [stdout] 9a6a51331cb442b6436efdc49c63e4700463e4c87113ca597436134d7803bded [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05c40c1e23b25954950f7ace67649a227fe7db9c10cda3373acaabe849a1e6b2 [INFO] running `Command { std: "docker" "start" "-a" "05c40c1e23b25954950f7ace67649a227fe7db9c10cda3373acaabe849a1e6b2", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.31 [INFO] [stderr] Compiling rand v0.3.16 [INFO] [stderr] Compiling 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: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 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: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: 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] | ^ ^ [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: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: 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: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: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: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: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: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: 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] | ^ ^ [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: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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.89s [INFO] running `Command { std: "docker" "inspect" "05c40c1e23b25954950f7ace67649a227fe7db9c10cda3373acaabe849a1e6b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05c40c1e23b25954950f7ace67649a227fe7db9c10cda3373acaabe849a1e6b2", kill_on_drop: false }` [INFO] [stdout] 05c40c1e23b25954950f7ace67649a227fe7db9c10cda3373acaabe849a1e6b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 269468f8e74fd96283565380999bc01dd4c94de8c2fcdb2e16b98b0393590d03 [INFO] running `Command { std: "docker" "start" "-a" "269468f8e74fd96283565380999bc01dd4c94de8c2fcdb2e16b98b0393590d03", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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: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 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: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: 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] | ^ ^ [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: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: 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: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: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: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: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: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: 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] | ^ ^ [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: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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "269468f8e74fd96283565380999bc01dd4c94de8c2fcdb2e16b98b0393590d03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "269468f8e74fd96283565380999bc01dd4c94de8c2fcdb2e16b98b0393590d03", kill_on_drop: false }` [INFO] [stdout] 269468f8e74fd96283565380999bc01dd4c94de8c2fcdb2e16b98b0393590d03