[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] 4b84695852b5f89ec7e94bc9989093e47a3ee1b4 [INFO] checking sha0coder/spocky against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsha0coder%2Fspocky" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 68% (173/252) Updating files: 69% (174/252) Updating files: 70% (177/252) Updating files: 71% (179/252) Updating files: 72% (182/252) Updating files: 73% (184/252) Updating files: 74% (187/252) Updating files: 75% (189/252) Updating files: 76% (192/252) Updating files: 77% (195/252) Updating files: 78% (197/252) Updating files: 79% (200/252) Updating files: 80% (202/252) Updating files: 81% (205/252) Updating files: 82% (207/252) Updating files: 83% (210/252) Updating files: 84% (212/252) Updating files: 85% (215/252) Updating files: 86% (217/252) Updating files: 87% (220/252) Updating files: 88% (222/252) Updating files: 89% (225/252) Updating files: 90% (227/252) Updating files: 91% (230/252) Updating files: 92% (232/252) Updating files: 93% (235/252) Updating files: 94% (237/252) Updating files: 95% (240/252) Updating files: 96% (242/252) Updating files: 97% (245/252) Updating files: 98% (247/252) Updating files: 99% (250/252) Updating files: 100% (252/252) Updating files: 100% (252/252), done. [INFO] validating manifest of git repo https://github.com/sha0coder/spocky on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-2/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ea8ce731a8bb8eed00389754c96a61339c2d78c08e338e5f4084a0c6395e2de2 [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" "ea8ce731a8bb8eed00389754c96a61339c2d78c08e338e5f4084a0c6395e2de2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea8ce731a8bb8eed00389754c96a61339c2d78c08e338e5f4084a0c6395e2de2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea8ce731a8bb8eed00389754c96a61339c2d78c08e338e5f4084a0c6395e2de2", kill_on_drop: false }` [INFO] [stdout] ea8ce731a8bb8eed00389754c96a61339c2d78c08e338e5f4084a0c6395e2de2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34316f6997145149e4c3ce6a4d6d4eb57a3d4e123603549ad6b8882b5941879f [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" "34316f6997145149e4c3ce6a4d6d4eb57a3d4e123603549ad6b8882b5941879f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking rand v0.4.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:13 [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:13 [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:13 [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:13 [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:13 [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:13 [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:13 [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:13 [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/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/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/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/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: 55 warnings emitted [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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.60s [INFO] running `Command { std: "docker" "inspect" "34316f6997145149e4c3ce6a4d6d4eb57a3d4e123603549ad6b8882b5941879f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34316f6997145149e4c3ce6a4d6d4eb57a3d4e123603549ad6b8882b5941879f", kill_on_drop: false }` [INFO] [stdout] 34316f6997145149e4c3ce6a4d6d4eb57a3d4e123603549ad6b8882b5941879f