[INFO] cloning repository https://github.com/phansel/battgen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/phansel/battgen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphansel%2Fbattgen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphansel%2Fbattgen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c20c16c281c802540be402c5d6a9bc7590fc522d [INFO] checking phansel/battgen against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphansel%2Fbattgen" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/phansel/battgen on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/phansel/battgen [INFO] finished tweaking git repo https://github.com/phansel/battgen [INFO] tweaked toml for git repo https://github.com/phansel/battgen written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/phansel/battgen already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff4e73c88f13a22f5ab6ee95bbda885f1f8023a5393fc24e04c8c504448d3dda [INFO] running `Command { std: "docker" "start" "-a" "ff4e73c88f13a22f5ab6ee95bbda885f1f8023a5393fc24e04c8c504448d3dda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff4e73c88f13a22f5ab6ee95bbda885f1f8023a5393fc24e04c8c504448d3dda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff4e73c88f13a22f5ab6ee95bbda885f1f8023a5393fc24e04c8c504448d3dda", kill_on_drop: false }` [INFO] [stdout] ff4e73c88f13a22f5ab6ee95bbda885f1f8023a5393fc24e04c8c504448d3dda [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6af1fdc38d69038d1a4bd85946aae74e47df37906d723a5b2ca23b8268a631fc [INFO] running `Command { std: "docker" "start" "-a" "6af1fdc38d69038d1a4bd85946aae74e47df37906d723a5b2ca23b8268a631fc", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Checking bitflags v1.2.1 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Checking ron v0.5.1 [INFO] [stderr] Checking battgen v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (7 fixes) [INFO] [stderr] Fixed src/thermal.rs (1 fix) [INFO] [stderr] Fixed src/mechanical.rs (1 fix) [INFO] [stderr] Fixed src/io.rs (2 fixes) [INFO] [stderr] Fixed src/electrical.rs (4 fixes) [INFO] [stdout] warning: constant is never used: `MAX_PARALLEL_SUB` [INFO] [stdout] --> src/electrical.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const MAX_PARALLEL_SUB: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_SERIES_SUB` [INFO] [stdout] --> src/electrical.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const MAX_SERIES_SUB: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get_cell_count(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_possible_submodules` [INFO] [stdout] --> src/electrical.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn print_possible_submodules(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_topology` [INFO] [stdout] --> src/electrical.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn print_topology(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_kwh_nominal` [INFO] [stdout] --> src/electrical.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn get_kwh_nominal(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn get_cell_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/electrical.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn new() -> Battery { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_module_count` [INFO] [stdout] --> src/electrical.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub fn get_module_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 320 | pub fn get_cell_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:325:12 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `defaults_from_chem` [INFO] [stdout] --> src/electrical.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn defaults_from_chem(chem: &Chem) -> (f32, f32, f32, f32, f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_rec_cell` [INFO] [stdout] --> src/mechanical.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new_rec_cell(l: f32, w: f32, h: f32, m: f32, r: f32, q: f32, chem: Chem) -> Module { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_cyl_cell` [INFO] [stdout] --> src/mechanical.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn new_cyl_cell(diam: f32, l: f32, m: f32, r: f32, _v: f32, q: f32, chem: Chem) -> Module { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CoolantMix` [INFO] [stdout] --> src/thermal.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CoolantMix { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_module` [INFO] [stdout] --> src/io.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_module(_module: &InputModule, _filename: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/electrical.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | let current_max_C = 2.0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/mechanical.rs:30:44 [INFO] [stdout] | [INFO] [stdout] 30 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/mechanical.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_PARALLEL_SUB` [INFO] [stdout] --> src/electrical.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const MAX_PARALLEL_SUB: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_SERIES_SUB` [INFO] [stdout] --> src/electrical.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const MAX_SERIES_SUB: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get_cell_count(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_possible_submodules` [INFO] [stdout] --> src/electrical.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn print_possible_submodules(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_topology` [INFO] [stdout] --> src/electrical.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn print_topology(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_kwh_nominal` [INFO] [stdout] --> src/electrical.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn get_kwh_nominal(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn get_cell_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/electrical.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn new() -> Battery { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_module_count` [INFO] [stdout] --> src/electrical.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub fn get_module_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 320 | pub fn get_cell_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:325:12 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `defaults_from_chem` [INFO] [stdout] --> src/electrical.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn defaults_from_chem(chem: &Chem) -> (f32, f32, f32, f32, f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_rec_cell` [INFO] [stdout] --> src/mechanical.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new_rec_cell(l: f32, w: f32, h: f32, m: f32, r: f32, q: f32, chem: Chem) -> Module { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_cyl_cell` [INFO] [stdout] --> src/mechanical.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn new_cyl_cell(diam: f32, l: f32, m: f32, r: f32, _v: f32, q: f32, chem: Chem) -> Module { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CoolantMix` [INFO] [stdout] --> src/thermal.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CoolantMix { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_module` [INFO] [stdout] --> src/io.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_module(_module: &InputModule, _filename: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/electrical.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | let current_max_C = 2.0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/mechanical.rs:30:44 [INFO] [stdout] | [INFO] [stdout] 30 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/mechanical.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.31s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking battgen v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: constant is never used: `MAX_PARALLEL_SUB` [INFO] [stdout] --> src/electrical.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const MAX_PARALLEL_SUB: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_SERIES_SUB` [INFO] [stdout] --> src/electrical.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const MAX_SERIES_SUB: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get_cell_count(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_possible_submodules` [INFO] [stdout] --> src/electrical.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn print_possible_submodules(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_topology` [INFO] [stdout] --> src/electrical.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn print_topology(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_kwh_nominal` [INFO] [stdout] --> src/electrical.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn get_kwh_nominal(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn get_cell_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/electrical.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn new() -> Battery { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_module_count` [INFO] [stdout] --> src/electrical.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub fn get_module_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 320 | pub fn get_cell_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:325:12 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `defaults_from_chem` [INFO] [stdout] --> src/electrical.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn defaults_from_chem(chem: &Chem) -> (f32, f32, f32, f32, f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_rec_cell` [INFO] [stdout] --> src/mechanical.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new_rec_cell(l: f32, w: f32, h: f32, m: f32, r: f32, q: f32, chem: Chem) -> Module { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_cyl_cell` [INFO] [stdout] --> src/mechanical.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn new_cyl_cell(diam: f32, l: f32, m: f32, r: f32, _v: f32, q: f32, chem: Chem) -> Module { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CoolantMix` [INFO] [stdout] --> src/thermal.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CoolantMix { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_module` [INFO] [stdout] --> src/io.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_module(_module: &InputModule, _filename: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_PARALLEL_SUB` [INFO] [stdout] --> src/electrical.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | const MAX_PARALLEL_SUB: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_SERIES_SUB` [INFO] [stdout] --> src/electrical.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const MAX_SERIES_SUB: i32 = 25; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get_cell_count(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_possible_submodules` [INFO] [stdout] --> src/electrical.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn print_possible_submodules(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_topology` [INFO] [stdout] --> src/electrical.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn print_topology(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_kwh_nominal` [INFO] [stdout] --> src/electrical.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn get_kwh_nominal(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:219:12 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn get_cell_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/electrical.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn new() -> Battery { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_module_count` [INFO] [stdout] --> src/electrical.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub fn get_module_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cell_count` [INFO] [stdout] --> src/electrical.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 320 | pub fn get_cell_count(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_ir_dc` [INFO] [stdout] --> src/electrical.rs:325:12 [INFO] [stdout] | [INFO] [stdout] 325 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `defaults_from_chem` [INFO] [stdout] --> src/electrical.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn defaults_from_chem(chem: &Chem) -> (f32, f32, f32, f32, f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_rec_cell` [INFO] [stdout] --> src/mechanical.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new_rec_cell(l: f32, w: f32, h: f32, m: f32, r: f32, q: f32, chem: Chem) -> Module { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_cyl_cell` [INFO] [stdout] --> src/mechanical.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn new_cyl_cell(diam: f32, l: f32, m: f32, r: f32, _v: f32, q: f32, chem: Chem) -> Module { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CoolantMix` [INFO] [stdout] --> src/thermal.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CoolantMix { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_module` [INFO] [stdout] --> src/io.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_module(_module: &InputModule, _filename: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/electrical.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | let current_max_C = 2.0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/mechanical.rs:30:44 [INFO] [stdout] | [INFO] [stdout] 30 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/mechanical.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/electrical.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | let current_max_C = 2.0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/mechanical.rs:30:44 [INFO] [stdout] | [INFO] [stdout] 30 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `current_max_C` should have a snake case name [INFO] [stdout] --> src/mechanical.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.05s [INFO] running `Command { std: "docker" "inspect" "6af1fdc38d69038d1a4bd85946aae74e47df37906d723a5b2ca23b8268a631fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6af1fdc38d69038d1a4bd85946aae74e47df37906d723a5b2ca23b8268a631fc", kill_on_drop: false }` [INFO] [stdout] 6af1fdc38d69038d1a4bd85946aae74e47df37906d723a5b2ca23b8268a631fc