[INFO] cloning repository https://github.com/sha0coder/spocky [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sha0coder/spocky" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Fspocky", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Fspocky'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b476e1bab5be3a1973374a98e8dd6a5c4abcfc35 [INFO] checking sha0coder/spocky against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Fspocky" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sha0coder/spocky on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sha0coder/spocky [INFO] finished tweaking git repo https://github.com/sha0coder/spocky [INFO] tweaked toml for git repo https://github.com/sha0coder/spocky written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/sha0coder/spocky already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memchr v1.0.2 [INFO] [stderr] Downloaded csv v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e925edb2f7c114531f8eb9ef214d5b26c0af16dabf719d691b749012e5a0d84e [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" "e925edb2f7c114531f8eb9ef214d5b26c0af16dabf719d691b749012e5a0d84e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e925edb2f7c114531f8eb9ef214d5b26c0af16dabf719d691b749012e5a0d84e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e925edb2f7c114531f8eb9ef214d5b26c0af16dabf719d691b749012e5a0d84e", kill_on_drop: false }` [INFO] [stdout] e925edb2f7c114531f8eb9ef214d5b26c0af16dabf719d691b749012e5a0d84e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c37a250c5423bd5954f96bfa00c9af1458061f5554682745613e510acb99447 [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" "8c37a250c5423bd5954f96bfa00c9af1458061f5554682745613e510acb99447", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.36 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking csv v0.15.0 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking spocky v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/trader.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cpu.rs:246:23 [INFO] [stdout] | [INFO] [stdout] 246 | _ => {;} [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/trader.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cpu.rs:246:23 [INFO] [stdout] | [INFO] [stdout] 246 | _ => {;} [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_usd` [INFO] [stdout] --> src/record.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut prev_usd:f32 = 0.0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_usd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `precios` [INFO] [stdout] --> src/record.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let mut precios:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_precios` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bought` [INFO] [stdout] --> src/trader.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | let mut bought = false; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bought` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/cpu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | i+=2; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let mut i:usize = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | for i in 0..num_lines { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/cpu.rs:334:13 [INFO] [stdout] | [INFO] [stdout] 334 | for v in self.vars.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_usd` [INFO] [stdout] --> src/record.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut prev_usd:f32 = 0.0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_usd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `precios` [INFO] [stdout] --> src/record.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let mut precios:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_precios` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bought` [INFO] [stdout] --> src/trader.rs:251:17 [INFO] [stdout] | [INFO] [stdout] 251 | let mut bought = false; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bought` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/cpu.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | i+=2; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let mut i:usize = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/cpu.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | for i in 0..num_lines { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/cpu.rs:334:13 [INFO] [stdout] | [INFO] [stdout] 334 | for v in self.vars.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/record.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut prev_usd:f32 = 0.0; [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/record.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut precios:Vec = Vec::new(); [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/record.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut prev_usd:f32 = 0.0; [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/record.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut precios:Vec = Vec::new(); [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/trader.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | let mut bought = false; [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/cpu.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut l = Instruction::new(raw[i],raw[i+1],raw[i+2]); [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/cpu.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut raw:&mut [u8] = &mut[]; [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/trader.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | let mut bought = false; [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/cpu.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let mut num_vars = self.get_num_vars().clone(); [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/cpu.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let mut num_vars = self.get_num_vars().clone(); [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/cpu.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let mut i:usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cpu.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let mut l = Instruction::new(raw[i],raw[i+1],raw[i+2]); [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/cpu.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut raw:&mut [u8] = &mut[]; [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/cpu.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | let mut num_vars = self.get_num_vars().clone(); [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/cpu.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let mut num_vars = self.get_num_vars().clone(); [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/cpu.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let mut i:usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut trader: &mut Trader = &mut self.population[i]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/record.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn clear(&mut self) { [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: `disp` [INFO] [stdout] --> src/record.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disp(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VARS` [INFO] [stdout] --> src/trader.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const VARS:u8 = 9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_usd` [INFO] [stdout] --> src/trader.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn set_usd(&mut self, usd: f32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_eth` [INFO] [stdout] --> src/trader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn set_eth(&mut self, eth: f32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/trader.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn load(&mut self, buy:&str, sell:&str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/trader.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_buy_all` [INFO] [stdout] --> src/trader.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn do_buy_all(&mut self, pr: &Prize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_buy_one` [INFO] [stdout] --> src/trader.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn do_buy_one(&mut self, pr: &Prize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_sell_one` [INFO] [stdout] --> src/trader.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn do_sell_one(&mut self, pr: &Prize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fitness` [INFO] [stdout] --> src/cpu.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | fitness: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tv` [INFO] [stdout] --> src/cpu.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | tv: Vec, // tests results vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_raw_code` [INFO] [stdout] --> src/cpu.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn set_raw_code(&mut self, raw:&[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/cpu.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn load(&mut self, filename:&str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_fitness` [INFO] [stdout] --> src/cpu.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn set_fitness(&mut self, fitness: f32, tv: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `debug` [INFO] [stdout] --> src/cpu.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn debug(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_tv` [INFO] [stdout] --> src/cpu.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn get_tv(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_fitness` [INFO] [stdout] --> src/cpu.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn get_fitness(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_instruction` [INFO] [stdout] --> src/cpu.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | 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:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn instructions(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_instructions` [INFO] [stdout] --> src/cpu.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn load_instructions(&mut self, code: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/cpu.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_opcodes` [INFO] [stdout] --> src/cpu.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn set_opcodes(&mut self, opcodes: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_opcodes` [INFO] [stdout] --> src/cpu.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn get_opcodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `crossover2` [INFO] [stdout] --> src/cpu.rs:399:12 [INFO] [stdout] | [INFO] [stdout] 399 | pub fn crossover2(&self, cpu_mother: &Cpu) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mutation_probability` [INFO] [stdout] --> src/ga.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | mutation_probability: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/main.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Spocky_AI` should have a snake case name [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn Spocky_AI() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `spocky_ai` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `operandA` should have a snake case name [INFO] [stdout] --> src/instruction.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(opcode:u8, operandA:u8, operandB:u8) -> Instruction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `operand_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `operandB` should have a snake case name [INFO] [stdout] --> src/instruction.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(opcode:u8, operandA:u8, operandB:u8) -> Instruction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `operand_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `doTrace` should have a snake case name [INFO] [stdout] --> src/trader.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | doTrace: bool [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `do_trace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getBuy` should have a snake case name [INFO] [stdout] --> src/trader.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn getBuy(&self) -> &Cpu { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_buy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getSell` should have a snake case name [INFO] [stdout] --> src/trader.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn getSell(&self) -> &Cpu { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_sell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `debugMode` should have a snake case name [INFO] [stdout] --> src/cpu.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | 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:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut trader: &mut Trader = &mut self.population[i]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/record.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn clear(&mut self) { [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: `disp` [INFO] [stdout] --> src/record.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn disp(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `VARS` [INFO] [stdout] --> src/trader.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const VARS:u8 = 9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_usd` [INFO] [stdout] --> src/trader.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn set_usd(&mut self, usd: f32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_eth` [INFO] [stdout] --> src/trader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn set_eth(&mut self, eth: f32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/trader.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn load(&mut self, buy:&str, sell:&str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/trader.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_buy_all` [INFO] [stdout] --> src/trader.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn do_buy_all(&mut self, pr: &Prize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_buy_one` [INFO] [stdout] --> src/trader.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn do_buy_one(&mut self, pr: &Prize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_sell_one` [INFO] [stdout] --> src/trader.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn do_sell_one(&mut self, pr: &Prize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `fitness` [INFO] [stdout] --> src/cpu.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | fitness: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tv` [INFO] [stdout] --> src/cpu.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | tv: Vec, // tests results vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_raw_code` [INFO] [stdout] --> src/cpu.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn set_raw_code(&mut self, raw:&[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load` [INFO] [stdout] --> src/cpu.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn load(&mut self, filename:&str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_fitness` [INFO] [stdout] --> src/cpu.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn set_fitness(&mut self, fitness: f32, tv: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `debug` [INFO] [stdout] --> src/cpu.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn debug(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_tv` [INFO] [stdout] --> src/cpu.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn get_tv(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_fitness` [INFO] [stdout] --> src/cpu.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn get_fitness(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_instruction` [INFO] [stdout] --> src/cpu.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | 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:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn instructions(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_instructions` [INFO] [stdout] --> src/cpu.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn load_instructions(&mut self, code: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/cpu.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_opcodes` [INFO] [stdout] --> src/cpu.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn set_opcodes(&mut self, opcodes: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_opcodes` [INFO] [stdout] --> src/cpu.rs:269:12 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn get_opcodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `crossover2` [INFO] [stdout] --> src/cpu.rs:399:12 [INFO] [stdout] | [INFO] [stdout] 399 | pub fn crossover2(&self, cpu_mother: &Cpu) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mutation_probability` [INFO] [stdout] --> src/ga.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | mutation_probability: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test` [INFO] [stdout] --> src/main.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Spocky_AI` should have a snake case name [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn Spocky_AI() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `spocky_ai` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `operandA` should have a snake case name [INFO] [stdout] --> src/instruction.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(opcode:u8, operandA:u8, operandB:u8) -> Instruction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `operand_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `operandB` should have a snake case name [INFO] [stdout] --> src/instruction.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(opcode:u8, operandA:u8, operandB:u8) -> Instruction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `operand_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `doTrace` should have a snake case name [INFO] [stdout] --> src/trader.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | doTrace: bool [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `do_trace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getBuy` should have a snake case name [INFO] [stdout] --> src/trader.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn getBuy(&self) -> &Cpu { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_buy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getSell` should have a snake case name [INFO] [stdout] --> src/trader.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn getSell(&self) -> &Cpu { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_sell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `debugMode` should have a snake case name [INFO] [stdout] --> src/cpu.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | debugMode: bool, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `debug_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | f.write(self.get_raw_code().as_slice()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `existsPush` should have a snake case name [INFO] [stdout] --> src/cpu.rs:539:17 [INFO] [stdout] | [INFO] [stdout] 539 | let mut existsPush:bool = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `exists_push` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `existsPop` should have a snake case name [INFO] [stdout] --> src/cpu.rs:540:17 [INFO] [stdout] | [INFO] [stdout] 540 | let mut existsPop:bool = false; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `exists_pop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cpu.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | f.write(self.get_raw_code().as_slice()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `existsPush` should have a snake case name [INFO] [stdout] --> src/cpu.rs:539:17 [INFO] [stdout] | [INFO] [stdout] 539 | let mut existsPush:bool = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `exists_push` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `existsPop` should have a snake case name [INFO] [stdout] --> src/cpu.rs:540:17 [INFO] [stdout] | [INFO] [stdout] 540 | let mut existsPop:bool = false; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `exists_pop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.20s [INFO] running `Command { std: "docker" "inspect" "8c37a250c5423bd5954f96bfa00c9af1458061f5554682745613e510acb99447", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c37a250c5423bd5954f96bfa00c9af1458061f5554682745613e510acb99447", kill_on_drop: false }` [INFO] [stdout] 8c37a250c5423bd5954f96bfa00c9af1458061f5554682745613e510acb99447