[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] testing phansel/battgen against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphansel%2Fbattgen" "/workspace/builds/worker-28/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-28/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/phansel/battgen on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-28/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" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 077ac7a1cda931e7ea8a213dae556420aa33d9afdf868f801954f844445f15ce [INFO] running `Command { std: "docker" "start" "-a" "077ac7a1cda931e7ea8a213dae556420aa33d9afdf868f801954f844445f15ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "077ac7a1cda931e7ea8a213dae556420aa33d9afdf868f801954f844445f15ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "077ac7a1cda931e7ea8a213dae556420aa33d9afdf868f801954f844445f15ce", kill_on_drop: false }` [INFO] [stdout] 077ac7a1cda931e7ea8a213dae556420aa33d9afdf868f801954f844445f15ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebe57a0dadfc7d2991cfb8b6771e02f08471deb0244ed979ff10819e947f002d [INFO] running `Command { std: "docker" "start" "-a" "ebe57a0dadfc7d2991cfb8b6771e02f08471deb0244ed979ff10819e947f002d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling ron v0.5.1 [INFO] [stderr] Compiling battgen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/main.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ron::value::Value` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use ron::value::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `fs::File` [INFO] [stdout] --> src/main.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | use std::{collections::HashMap, fs::File}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/electrical.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 143 | if ((self.series % x) == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 143 - if ((self.series % x) == 0) { [INFO] [stdout] 143 + if (self.series % x) == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/electrical.rs:155:16 [INFO] [stdout] | [INFO] [stdout] 155 | if ((self.parallel % x) == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 155 - if ((self.parallel % x) == 0) { [INFO] [stdout] 155 + if (self.parallel % x) == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> src/thermal.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | const PI: f32 = (3.1415926 as f32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - const PI: f32 = (3.1415926 as f32); [INFO] [stdout] 52 + const PI: f32 = 3.1415926 as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/mechanical.rs:55:60 [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] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/io.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_module(module: &InputModule, filename: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/io.rs:114:43 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_module(module: &InputModule, filename: &str) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/electrical.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let mut ma: Vec = Vec::new(); [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/electrical.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let mut ma = ModuleArray::new(m, s, p); [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/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut topology = matches.value_of("topology").unwrap_or(default_topo); [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/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut topo_arr: Vec<&str> = topology.split("S").collect(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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: field is never read: `peak_current` [INFO] [stdout] --> src/electrical.rs:368:5 [INFO] [stdout] | [INFO] [stdout] 368 | peak_current: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ElectricalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/electrical.rs:363:16 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `soh` [INFO] [stdout] --> src/electrical.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | soh: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ElectricalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/electrical.rs:363:16 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `peak_accel` [INFO] [stdout] --> src/mechanical.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | peak_accel: [f32; 6], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MechanicalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/mechanical.rs:125:16 [INFO] [stdout] | [INFO] [stdout] 125 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `density` [INFO] [stdout] --> src/thermal.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | density: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `specific_heat` [INFO] [stdout] --> src/thermal.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | specific_heat: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `freezing_point` [INFO] [stdout] --> src/thermal.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | freezing_point: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `boiling_point` [INFO] [stdout] --> src/thermal.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | boiling_point: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flammable` [INFO] [stdout] --> src/thermal.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | flammable: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `conductive` [INFO] [stdout] --> src/thermal.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | conductive: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `coolant` [INFO] [stdout] --> src/thermal.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | coolant: Coolant, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flow_rate` [INFO] [stdout] --> src/thermal.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | flow_rate: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `heat_k` [INFO] [stdout] --> src/thermal.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | heat_k: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 33.82s [INFO] running `Command { std: "docker" "inspect" "ebe57a0dadfc7d2991cfb8b6771e02f08471deb0244ed979ff10819e947f002d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebe57a0dadfc7d2991cfb8b6771e02f08471deb0244ed979ff10819e947f002d", kill_on_drop: false }` [INFO] [stdout] ebe57a0dadfc7d2991cfb8b6771e02f08471deb0244ed979ff10819e947f002d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57df695151b31c9222d3d45b2dbc9bd0c8e25098c59bf256c9e82ba0ccf55f06 [INFO] running `Command { std: "docker" "start" "-a" "57df695151b31c9222d3d45b2dbc9bd0c8e25098c59bf256c9e82ba0ccf55f06", kill_on_drop: false }` [INFO] [stderr] Compiling battgen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SubCommand` [INFO] [stdout] --> src/main.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | use clap::{App, Arg, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/main.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ron::value::Value` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use ron::value::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `fs::File` [INFO] [stdout] --> src/main.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | use std::{collections::HashMap, fs::File}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/electrical.rs:143:16 [INFO] [stdout] | [INFO] [stdout] 143 | if ((self.series % x) == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 143 - if ((self.series % x) == 0) { [INFO] [stdout] 143 + if (self.series % x) == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/electrical.rs:155:16 [INFO] [stdout] | [INFO] [stdout] 155 | if ((self.parallel % x) == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 155 - if ((self.parallel % x) == 0) { [INFO] [stdout] 155 + if (self.parallel % x) == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> src/thermal.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | const PI: f32 = (3.1415926 as f32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - const PI: f32 = (3.1415926 as f32); [INFO] [stdout] 52 + const PI: f32 = 3.1415926 as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/mechanical.rs:55:60 [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] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> src/io.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_module(module: &InputModule, filename: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/io.rs:114:43 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_module(module: &InputModule, filename: &str) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/electrical.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let mut ma: Vec = Vec::new(); [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/electrical.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let mut ma = ModuleArray::new(m, s, p); [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/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut topology = matches.value_of("topology").unwrap_or(default_topo); [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/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut topo_arr: Vec<&str> = topology.split("S").collect(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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: field is never read: `peak_current` [INFO] [stdout] --> src/electrical.rs:368:5 [INFO] [stdout] | [INFO] [stdout] 368 | peak_current: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ElectricalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/electrical.rs:363:16 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `soh` [INFO] [stdout] --> src/electrical.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | soh: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ElectricalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/electrical.rs:363:16 [INFO] [stdout] | [INFO] [stdout] 363 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `peak_accel` [INFO] [stdout] --> src/mechanical.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | peak_accel: [f32; 6], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MechanicalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/mechanical.rs:125:16 [INFO] [stdout] | [INFO] [stdout] 125 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `density` [INFO] [stdout] --> src/thermal.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | density: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `specific_heat` [INFO] [stdout] --> src/thermal.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | specific_heat: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `freezing_point` [INFO] [stdout] --> src/thermal.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | freezing_point: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `boiling_point` [INFO] [stdout] --> src/thermal.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | boiling_point: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flammable` [INFO] [stdout] --> src/thermal.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | flammable: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `conductive` [INFO] [stdout] --> src/thermal.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | conductive: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `coolant` [INFO] [stdout] --> src/thermal.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | coolant: Coolant, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flow_rate` [INFO] [stdout] --> src/thermal.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | flow_rate: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `heat_k` [INFO] [stdout] --> src/thermal.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | heat_k: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/thermal.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.72s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/battgen-ea3c6eb400b4c4f4) [INFO] running `Command { std: "docker" "inspect" "57df695151b31c9222d3d45b2dbc9bd0c8e25098c59bf256c9e82ba0ccf55f06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57df695151b31c9222d3d45b2dbc9bd0c8e25098c59bf256c9e82ba0ccf55f06", kill_on_drop: false }` [INFO] [stdout] 57df695151b31c9222d3d45b2dbc9bd0c8e25098c59bf256c9e82ba0ccf55f06 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 056d7a4a45c1fb4765ba5e50a37e517220ab09096fe138b064148148ff9138e2 [INFO] running `Command { std: "docker" "start" "-a" "056d7a4a45c1fb4765ba5e50a37e517220ab09096fe138b064148148ff9138e2", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `SubCommand` [INFO] [stderr] --> src/main.rs:23:22 [INFO] [stderr] | [INFO] [stderr] 23 | use clap::{App, Arg, SubCommand}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/main.rs:26:26 [INFO] [stderr] | [INFO] [stderr] 26 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ron::value::Value` [INFO] [stderr] --> src/main.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use ron::value::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `collections::HashMap`, `fs::File` [INFO] [stderr] --> src/main.rs:34:11 [INFO] [stderr] | [INFO] [stderr] 34 | use std::{collections::HashMap, fs::File}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/electrical.rs:143:16 [INFO] [stderr] | [INFO] [stderr] 143 | if ((self.series % x) == 0) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 143 - if ((self.series % x) == 0) { [INFO] [stderr] 143 + if (self.series % x) == 0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/electrical.rs:155:16 [INFO] [stderr] | [INFO] [stderr] 155 | if ((self.parallel % x) == 0) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 155 - if ((self.parallel % x) == 0) { [INFO] [stderr] 155 + if (self.parallel % x) == 0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::*` [INFO] [stderr] --> src/thermal.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use crate::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:52:17 [INFO] [stderr] | [INFO] [stderr] 52 | const PI: f32 = (3.1415926 as f32); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 52 - const PI: f32 = (3.1415926 as f32); [INFO] [stderr] 52 + const PI: f32 = 3.1415926 as f32; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/mechanical.rs:55:60 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn new_cyl_cell(diam: f32, l: f32, m: f32, r: f32, v: f32, q: f32, chem: Chem) -> Module { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module` [INFO] [stderr] --> src/io.rs:114:21 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn write_module(module: &InputModule, filename: &str) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_module` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `filename` [INFO] [stderr] --> src/io.rs:114:43 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn write_module(module: &InputModule, filename: &str) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/electrical.rs:233:13 [INFO] [stderr] | [INFO] [stderr] 233 | let mut ma: Vec = Vec::new(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/electrical.rs:244:13 [INFO] [stderr] | [INFO] [stderr] 244 | let mut ma = ModuleArray::new(m, s, p); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:131:9 [INFO] [stderr] | [INFO] [stderr] 131 | let mut topology = matches.value_of("topology").unwrap_or(default_topo); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:133:9 [INFO] [stderr] | [INFO] [stderr] 133 | let mut topo_arr: Vec<&str> = topology.split("S").collect(); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MAX_PARALLEL_SUB` [INFO] [stderr] --> src/electrical.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | const MAX_PARALLEL_SUB: i32 = 25; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `MAX_SERIES_SUB` [INFO] [stderr] --> src/electrical.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | const MAX_SERIES_SUB: i32 = 25; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_cell_count` [INFO] [stderr] --> src/electrical.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn get_cell_count(self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `print_possible_submodules` [INFO] [stderr] --> src/electrical.rs:139:12 [INFO] [stderr] | [INFO] [stderr] 139 | pub fn print_possible_submodules(self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_ir_dc` [INFO] [stderr] --> src/electrical.rs:169:12 [INFO] [stderr] | [INFO] [stderr] 169 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `print_topology` [INFO] [stderr] --> src/electrical.rs:193:12 [INFO] [stderr] | [INFO] [stderr] 193 | pub fn print_topology(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_kwh_nominal` [INFO] [stderr] --> src/electrical.rs:209:12 [INFO] [stderr] | [INFO] [stderr] 209 | pub fn get_kwh_nominal(&self) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_cell_count` [INFO] [stderr] --> src/electrical.rs:219:12 [INFO] [stderr] | [INFO] [stderr] 219 | pub fn get_cell_count(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_ir_dc` [INFO] [stderr] --> src/electrical.rs:224:12 [INFO] [stderr] | [INFO] [stderr] 224 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/electrical.rs:232:12 [INFO] [stderr] | [INFO] [stderr] 232 | pub fn new() -> Battery { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_module_count` [INFO] [stderr] --> src/electrical.rs:312:12 [INFO] [stderr] | [INFO] [stderr] 312 | pub fn get_module_count(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_cell_count` [INFO] [stderr] --> src/electrical.rs:320:12 [INFO] [stderr] | [INFO] [stderr] 320 | pub fn get_cell_count(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_ir_dc` [INFO] [stderr] --> src/electrical.rs:325:12 [INFO] [stderr] | [INFO] [stderr] 325 | pub fn get_ir_dc(&self, soc: &f32) -> f32 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `defaults_from_chem` [INFO] [stderr] --> src/electrical.rs:336:8 [INFO] [stderr] | [INFO] [stderr] 336 | pub fn defaults_from_chem(chem: &Chem) -> (f32, f32, f32, f32, f32, f32, f32, f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `peak_current` [INFO] [stderr] --> src/electrical.rs:368:5 [INFO] [stderr] | [INFO] [stderr] 368 | peak_current: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ElectricalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/electrical.rs:363:16 [INFO] [stderr] | [INFO] [stderr] 363 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `soh` [INFO] [stderr] --> src/electrical.rs:370:5 [INFO] [stderr] | [INFO] [stderr] 370 | soh: f32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ElectricalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/electrical.rs:363:16 [INFO] [stderr] | [INFO] [stderr] 363 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_rec_cell` [INFO] [stderr] --> src/mechanical.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn new_rec_cell(l: f32, w: f32, h: f32, m: f32, r: f32, q: f32, chem: Chem) -> Module { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_cyl_cell` [INFO] [stderr] --> src/mechanical.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn new_cyl_cell(diam: f32, l: f32, m: f32, r: f32, v: f32, q: f32, chem: Chem) -> Module { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `peak_accel` [INFO] [stderr] --> src/mechanical.rs:128:5 [INFO] [stderr] | [INFO] [stderr] 128 | peak_accel: [f32; 6], [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MechanicalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/mechanical.rs:125:16 [INFO] [stderr] | [INFO] [stderr] 125 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `density` [INFO] [stderr] --> src/thermal.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | density: f32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `specific_heat` [INFO] [stderr] --> src/thermal.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | specific_heat: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `freezing_point` [INFO] [stderr] --> src/thermal.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | freezing_point: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `boiling_point` [INFO] [stderr] --> src/thermal.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | boiling_point: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `flammable` [INFO] [stderr] --> src/thermal.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | flammable: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `conductive` [INFO] [stderr] --> src/thermal.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | conductive: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coolant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `CoolantMix` [INFO] [stderr] --> src/thermal.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 42 | pub struct CoolantMix { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `coolant` [INFO] [stderr] --> src/thermal.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | coolant: Coolant, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:48:16 [INFO] [stderr] | [INFO] [stderr] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `flow_rate` [INFO] [stderr] --> src/thermal.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 51 | flow_rate: f32, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:48:16 [INFO] [stderr] | [INFO] [stderr] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `heat_k` [INFO] [stderr] --> src/thermal.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | heat_k: f32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ThermalParams` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/thermal.rs:48:16 [INFO] [stderr] | [INFO] [stderr] 48 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `write_module` [INFO] [stderr] --> src/io.rs:114:8 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn write_module(module: &InputModule, filename: &str) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `current_max_C` should have a snake case name [INFO] [stderr] --> src/electrical.rs:347:9 [INFO] [stderr] | [INFO] [stderr] 347 | let current_max_C = 2.0; [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `current_max_C` should have a snake case name [INFO] [stderr] --> src/mechanical.rs:30:44 [INFO] [stderr] | [INFO] [stderr] 30 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stderr] [INFO] [stderr] warning: variable `current_max_C` should have a snake case name [INFO] [stderr] --> src/mechanical.rs:56:44 [INFO] [stderr] | [INFO] [stderr] 56 | let (vmin, vnom, vmax, cycle_life, current_max_C, specific_heat, temp_max, temp_min) = [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `current_max_c` [INFO] [stderr] [INFO] [stderr] warning: `battgen` (bin "battgen" test) generated 48 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/battgen-ea3c6eb400b4c4f4) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "056d7a4a45c1fb4765ba5e50a37e517220ab09096fe138b064148148ff9138e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "056d7a4a45c1fb4765ba5e50a37e517220ab09096fe138b064148148ff9138e2", kill_on_drop: false }` [INFO] [stdout] 056d7a4a45c1fb4765ba5e50a37e517220ab09096fe138b064148148ff9138e2