[INFO] fetching crate stoichkit 0.6.0... [INFO] testing stoichkit-0.6.0 against 1.60.0 for beta-1.61-1 [INFO] extracting crate stoichkit 0.6.0 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate stoichkit 0.6.0 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate stoichkit 0.6.0 [INFO] finished tweaking crates.io crate stoichkit 0.6.0 [INFO] tweaked toml for crates.io crate stoichkit 0.6.0 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate crates.io crate stoichkit 0.6.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libmath v0.2.1 [INFO] [stderr] Downloaded generic-array v0.13.3 [INFO] [stderr] Downloaded minimal-lexical v0.1.4 [INFO] [stderr] Downloaded periodic-table-on-an-enum v0.3.2 [INFO] [stderr] Downloaded clap_derive v3.0.14 [INFO] [stderr] Downloaded az v1.0.0 [INFO] [stderr] Downloaded num-bigint v0.3.1 [INFO] [stderr] Downloaded clap v3.0.14 [INFO] [stderr] Downloaded simba v0.1.5 [INFO] [stderr] Downloaded rug v1.10.0 [INFO] [stderr] Downloaded nom v7.0.0 [INFO] [stderr] Downloaded nalgebra v0.21.1 [INFO] [stderr] Downloaded gmp-mpfr-sys v1.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 73fa692539e3c6a4a420b43d1700f44f6e10a3fe6a5d440c7e478417324f45f4 [INFO] running `Command { std: "docker" "start" "-a" "73fa692539e3c6a4a420b43d1700f44f6e10a3fe6a5d440c7e478417324f45f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "73fa692539e3c6a4a420b43d1700f44f6e10a3fe6a5d440c7e478417324f45f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73fa692539e3c6a4a420b43d1700f44f6e10a3fe6a5d440c7e478417324f45f4", kill_on_drop: false }` [INFO] [stdout] 73fa692539e3c6a4a420b43d1700f44f6e10a3fe6a5d440c7e478417324f45f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25570351aeff02e0e7339022c8eeeaa26042015469ac2accdfa036f93694a3e3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "25570351aeff02e0e7339022c8eeeaa26042015469ac2accdfa036f93694a3e3", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling gmp-mpfr-sys v1.3.1 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling json v0.12.4 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling rug v1.10.0 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling az v1.0.0 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling textwrap v0.14.2 [INFO] [stderr] Compiling minimal-lexical v0.1.4 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling matrixmultiply v0.2.4 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-bigint v0.3.1 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Compiling paste v0.1.18 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling periodic-table-on-an-enum v0.3.2 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling os_str_bytes v6.0.0 [INFO] [stderr] Compiling generic-array v0.13.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling simba v0.1.5 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling rand_distr v0.2.2 [INFO] [stderr] Compiling nalgebra v0.21.1 [INFO] [stderr] Compiling num v0.3.1 [INFO] [stderr] Compiling clap_derive v3.0.14 [INFO] [stderr] Compiling clap v3.0.14 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling stoichkit v0.6.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::read_to_string` [INFO] [stdout] --> src/cli/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::read_to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/cli/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::Reaction` [INFO] [stdout] --> src/cli/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::model::Reaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/model/reactant.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | if (self.molar_coefficient != 1 || explicit) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (self.molar_coefficient != 1 || explicit) { [INFO] [stdout] 43 + if self.molar_coefficient != 1 || explicit { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldReaction` [INFO] [stdout] --> src/model/theoretical_reaction.rs:2:64 [INFO] [stdout] | [INFO] [stdout] 2 | yield_reaction, BalancedReaction, Reactant, Sample, Units, YieldReaction, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/model/theoretical_reaction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::theoretical_reaction::YieldUnits` [INFO] [stdout] --> src/model/yield_reaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::theoretical_reaction::YieldUnits; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/parse/v1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/parse/v2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::fold` [INFO] [stdout] --> src/parse/v2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::fold; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `take_until`, `take_while` [INFO] [stdout] --> src/parse/v2.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::bytes::complete::{take_until, take_while, take_while1}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::multi::many0` [INFO] [stdout] --> src/parse/v2.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::multi::many0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsChar`, `character::complete::char`, `number::complete::be_u64`, `sequence::tuple` [INFO] [stdout] --> src/parse/v2.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | character::complete::char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | number::complete::be_u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | AsChar, IResult, Parser, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `periodic_table_on_an_enum::Element::Hydrogen` [INFO] [stdout] --> src/parse/v2.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use periodic_table_on_an_enum::Element::Hydrogen; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/model/reaction_list.rs:129:29 [INFO] [stdout] | [INFO] [stdout] 129 | Err(e) => Err(format!("Expected mass for '{}', but could not parse '{}' as float.", pair[0], pair[1])) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse/v2.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | .map_err(|e| format!("failed to parse: {:?}", formula))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rem` [INFO] [stdout] --> src/parse/v2.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 147 | let (rem, elems) = formula_parser(formula) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/ext/chemdraw.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Molecule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ext/chemdraw.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `smiles` [INFO] [stdout] --> src/ext/chemdraw.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | smiles: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Molecule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ext/chemdraw.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_element_by_id` [INFO] [stdout] --> src/parse/v1.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn get_element_by_id(id: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/bin.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6m 12s [INFO] running `Command { std: "docker" "inspect" "25570351aeff02e0e7339022c8eeeaa26042015469ac2accdfa036f93694a3e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25570351aeff02e0e7339022c8eeeaa26042015469ac2accdfa036f93694a3e3", kill_on_drop: false }` [INFO] [stdout] 25570351aeff02e0e7339022c8eeeaa26042015469ac2accdfa036f93694a3e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 18f42979756960401195b402966b222c2ef8cdee165f1fcc2ecaa73b2d5a0719 [INFO] running `Command { std: "docker" "start" "-a" "18f42979756960401195b402966b222c2ef8cdee165f1fcc2ecaa73b2d5a0719", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling gmp-mpfr-sys v1.3.1 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling clap v3.0.14 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rug v1.10.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling libmath v0.2.1 [INFO] [stderr] Compiling rand_distr v0.2.2 [INFO] [stderr] Compiling nalgebra v0.21.1 [INFO] [stderr] Compiling stoichkit v0.6.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs::read_to_string` [INFO] [stdout] --> src/cli/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::read_to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/cli/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::Reaction` [INFO] [stdout] --> src/cli/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::model::Reaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/model/reactant.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | if (self.molar_coefficient != 1 || explicit) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (self.molar_coefficient != 1 || explicit) { [INFO] [stdout] 43 + if self.molar_coefficient != 1 || explicit { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldReaction` [INFO] [stdout] --> src/model/theoretical_reaction.rs:2:64 [INFO] [stdout] | [INFO] [stdout] 2 | yield_reaction, BalancedReaction, Reactant, Sample, Units, YieldReaction, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/model/theoretical_reaction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::theoretical_reaction::YieldUnits` [INFO] [stdout] --> src/model/yield_reaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::theoretical_reaction::YieldUnits; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/parse/v1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/parse/v2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::fold` [INFO] [stdout] --> src/parse/v2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::fold; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `take_until`, `take_while` [INFO] [stdout] --> src/parse/v2.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::bytes::complete::{take_until, take_while, take_while1}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::multi::many0` [INFO] [stdout] --> src/parse/v2.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::multi::many0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsChar`, `character::complete::char`, `number::complete::be_u64`, `sequence::tuple` [INFO] [stdout] --> src/parse/v2.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | character::complete::char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | number::complete::be_u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | AsChar, IResult, Parser, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `periodic_table_on_an_enum::Element::Hydrogen` [INFO] [stdout] --> src/parse/v2.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use periodic_table_on_an_enum::Element::Hydrogen; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/solve.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | format!("Balance solution was not Err: {:?}", rxn), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 274 | "{}", format!("Balance solution was not Err: {:?}", rxn), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/solve.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | format!("Balance solution was not Err: {:?}", result), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 285 | "{}", format!("Balance solution was not Err: {:?}", result), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/solve.rs:296:13 [INFO] [stdout] | [INFO] [stdout] 296 | format!("Balance solution was not Err: {:?}", result) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 296 | "{}", format!("Balance solution was not Err: {:?}", result) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::read_to_string` [INFO] [stdout] --> src/cli/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::read_to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/cli/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::Reaction` [INFO] [stdout] --> src/cli/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::model::Reaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/model/reactant.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | if (self.molar_coefficient != 1 || explicit) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - if (self.molar_coefficient != 1 || explicit) { [INFO] [stdout] 43 + if self.molar_coefficient != 1 || explicit { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `YieldReaction` [INFO] [stdout] --> src/model/theoretical_reaction.rs:2:64 [INFO] [stdout] | [INFO] [stdout] 2 | yield_reaction, BalancedReaction, Reactant, Sample, Units, YieldReaction, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/model/theoretical_reaction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::model::theoretical_reaction::YieldUnits` [INFO] [stdout] --> src/model/yield_reaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::model::theoretical_reaction::YieldUnits; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/parse/v1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/parse/v2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::fold` [INFO] [stdout] --> src/parse/v2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::fold; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `take_until`, `take_while` [INFO] [stdout] --> src/parse/v2.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::bytes::complete::{take_until, take_while, take_while1}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::multi::many0` [INFO] [stdout] --> src/parse/v2.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use nom::multi::many0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsChar`, `character::complete::char`, `number::complete::be_u64`, `sequence::tuple` [INFO] [stdout] --> src/parse/v2.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | character::complete::char, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | number::complete::be_u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | sequence::tuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | AsChar, IResult, Parser, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `periodic_table_on_an_enum::Element::Hydrogen` [INFO] [stdout] --> src/parse/v2.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use periodic_table_on_an_enum::Element::Hydrogen; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/model/reaction_list.rs:129:29 [INFO] [stdout] | [INFO] [stdout] 129 | Err(e) => Err(format!("Expected mass for '{}', but could not parse '{}' as float.", pair[0], pair[1])) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parse/v2.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 148 | .map_err(|e| format!("failed to parse: {:?}", formula))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rem` [INFO] [stdout] --> src/parse/v2.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 147 | let (rem, elems) = formula_parser(formula) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/ext/chemdraw.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Molecule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ext/chemdraw.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `smiles` [INFO] [stdout] --> src/ext/chemdraw.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | smiles: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Molecule` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ext/chemdraw.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_element_by_id` [INFO] [stdout] --> src/parse/v1.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn get_element_by_id(id: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `stoichkit` due to 4 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "18f42979756960401195b402966b222c2ef8cdee165f1fcc2ecaa73b2d5a0719", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18f42979756960401195b402966b222c2ef8cdee165f1fcc2ecaa73b2d5a0719", kill_on_drop: false }` [INFO] [stdout] 18f42979756960401195b402966b222c2ef8cdee165f1fcc2ecaa73b2d5a0719