[INFO] fetching crate chemical-formula 0.1.0... [INFO] checking chemical-formula-0.1.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate chemical-formula 0.1.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate chemical-formula 0.1.0 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate chemical-formula 0.1.0 [INFO] finished tweaking crates.io crate chemical-formula 0.1.0 [INFO] tweaked toml for crates.io crate chemical-formula 0.1.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 27 packages to latest compatible versions [INFO] [stderr] Adding generic-array v0.14.7 (latest: v1.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd39a319def49710700e3eae3f9b671631b053f25af0507bcfa274e1299acc08 [INFO] running `Command { std: "docker" "start" "-a" "fd39a319def49710700e3eae3f9b671631b053f25af0507bcfa274e1299acc08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd39a319def49710700e3eae3f9b671631b053f25af0507bcfa274e1299acc08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd39a319def49710700e3eae3f9b671631b053f25af0507bcfa274e1299acc08", kill_on_drop: false }` [INFO] [stdout] fd39a319def49710700e3eae3f9b671631b053f25af0507bcfa274e1299acc08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 83044bfeb566efe6625bb1475d5f74a90c0b1e68513685af3b5d96ca73451313 [INFO] running `Command { std: "docker" "start" "-a" "83044bfeb566efe6625bb1475d5f74a90c0b1e68513685af3b5d96ca73451313", kill_on_drop: false }` [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Checking chemical-formula v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `FormulaError` [INFO] [stdout] --> src/parser.rs:20:54 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::element::{ChemicalFormula, ElementSymbol, FormulaError}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FormulaError` [INFO] [stdout] --> src/parser.rs:20:54 [INFO] [stdout] | [INFO] [stdout] 20 | use crate::element::{ChemicalFormula, ElementSymbol, FormulaError}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `assert_abs_diff_ne` [INFO] [stdout] --> src/parser.rs:155:38 [INFO] [stdout] | [INFO] [stdout] 155 | use approx::{assert_abs_diff_eq, assert_abs_diff_ne}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/element.rs:640:14 [INFO] [stdout] | [INFO] [stdout] 640 | for (element, stoichiometry) in self.stoichiometry.iter_mut() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/element.rs:644:14 [INFO] [stdout] | [INFO] [stdout] 644 | for (element, wt_ratio) in self.wt_percent.iter_mut() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/element.rs:696:13 [INFO] [stdout] | [INFO] [stdout] 696 | let mut molecular_weight_residue = if self.stoichiometry.is_empty() { [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: unused variable: `element` [INFO] [stdout] --> src/element.rs:764:20 [INFO] [stdout] | [INFO] [stdout] 764 | .map(|(element, stoichiometry)| stoichiometry) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/element.rs:640:14 [INFO] [stdout] | [INFO] [stdout] 640 | for (element, stoichiometry) in self.stoichiometry.iter_mut() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/element.rs:644:14 [INFO] [stdout] | [INFO] [stdout] 644 | for (element, wt_ratio) in self.wt_percent.iter_mut() { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/element.rs:696:13 [INFO] [stdout] | [INFO] [stdout] 696 | let mut molecular_weight_residue = if self.stoichiometry.is_empty() { [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: unused variable: `element` [INFO] [stdout] --> src/element.rs:764:20 [INFO] [stdout] | [INFO] [stdout] 764 | .map(|(element, stoichiometry)| stoichiometry) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `O_mol_ratio` [INFO] [stdout] --> src/element.rs:997:13 [INFO] [stdout] | [INFO] [stdout] 997 | let O_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_O_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `H_mol_ratio` [INFO] [stdout] --> src/element.rs:1001:13 [INFO] [stdout] | [INFO] [stdout] 1001 | let H_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_H_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `H_mol_ratio` [INFO] [stdout] --> src/element.rs:1039:13 [INFO] [stdout] | [INFO] [stdout] 1039 | let H_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_H_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `O_mol_ratio` [INFO] [stdout] --> src/element.rs:1082:13 [INFO] [stdout] | [INFO] [stdout] 1082 | let O_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_O_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `O_mol_ratio` [INFO] [stdout] --> src/element.rs:1118:13 [INFO] [stdout] | [INFO] [stdout] 1118 | let O_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_O_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `H_mol_ratio` [INFO] [stdout] --> src/element.rs:1122:13 [INFO] [stdout] | [INFO] [stdout] 1122 | let H_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_H_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `O_mol_ratio` [INFO] [stdout] --> src/element.rs:1163:13 [INFO] [stdout] | [INFO] [stdout] 1163 | let O_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_O_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `H_mol_ratio` [INFO] [stdout] --> src/element.rs:1167:13 [INFO] [stdout] | [INFO] [stdout] 1167 | let H_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_H_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/element.rs:835:12 [INFO] [stdout] | [INFO] [stdout] 823 | let formula = self.to_molecular_formula()?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 835 | Ok(ChemicalFormula { [INFO] [stdout] | ____________^ [INFO] [stdout] 836 | | element: formula.element, [INFO] [stdout] 837 | | stoichiometry: HashMap::new(), [INFO] [stdout] 838 | | wt_percent: wt_ratio, [INFO] [stdout] 839 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/element.rs:918:9 [INFO] [stdout] | [INFO] [stdout] 918 | / mem::replace( [INFO] [stdout] 919 | | self, [INFO] [stdout] 920 | | ChemicalFormula { [INFO] [stdout] 921 | | element: formula.element, [INFO] [stdout] ... | [INFO] [stdout] 924 | | }, [INFO] [stdout] 925 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 918 | let _ = mem::replace( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chemical-formula` (lib) due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/element.rs:835:12 [INFO] [stdout] | [INFO] [stdout] 823 | let formula = self.to_molecular_formula()?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 835 | Ok(ChemicalFormula { [INFO] [stdout] | ____________^ [INFO] [stdout] 836 | | element: formula.element, [INFO] [stdout] 837 | | stoichiometry: HashMap::new(), [INFO] [stdout] 838 | | wt_percent: wt_ratio, [INFO] [stdout] 839 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/element.rs:918:9 [INFO] [stdout] | [INFO] [stdout] 918 | / mem::replace( [INFO] [stdout] 919 | | self, [INFO] [stdout] 920 | | ChemicalFormula { [INFO] [stdout] 921 | | element: formula.element, [INFO] [stdout] ... | [INFO] [stdout] 924 | | }, [INFO] [stdout] 925 | | ); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 918 | let _ = mem::replace( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_O` should have a snake case name [INFO] [stdout] --> src/element.rs:991:13 [INFO] [stdout] | [INFO] [stdout] 991 | let expected_O = 1.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `expected_o` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_H` should have a snake case name [INFO] [stdout] --> src/element.rs:992:13 [INFO] [stdout] | [INFO] [stdout] 992 | let expected_H = 10.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_N` should have a snake case name [INFO] [stdout] --> src/element.rs:993:13 [INFO] [stdout] | [INFO] [stdout] 993 | let expected_N = 20.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `O_mol_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:997:13 [INFO] [stdout] | [INFO] [stdout] 997 | let O_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `o_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H_mol_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1001:13 [INFO] [stdout] | [INFO] [stdout] 1001 | let H_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `h_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_H` should have a snake case name [INFO] [stdout] --> src/element.rs:1032:13 [INFO] [stdout] | [INFO] [stdout] 1032 | let expected_H = 10.; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_N` should have a snake case name [INFO] [stdout] --> src/element.rs:1033:13 [INFO] [stdout] | [INFO] [stdout] 1033 | let expected_N = 20.; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_H_after_wt_percent` should have a snake case name [INFO] [stdout] --> src/element.rs:1034:13 [INFO] [stdout] | [INFO] [stdout] 1034 | let expected_H_after_wt_percent = 1. / 3. * 100.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_h_after_wt_percent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_N_after_wt_percent` should have a snake case name [INFO] [stdout] --> src/element.rs:1035:13 [INFO] [stdout] | [INFO] [stdout] 1035 | let expected_N_after_wt_percent = 2. / 3. * 100.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_n_after_wt_percent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H_mol_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1039:13 [INFO] [stdout] | [INFO] [stdout] 1039 | let H_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `h_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_O` should have a snake case name [INFO] [stdout] --> src/element.rs:1078:13 [INFO] [stdout] | [INFO] [stdout] 1078 | let expected_O = 1.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `expected_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `O_mol_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1082:13 [INFO] [stdout] | [INFO] [stdout] 1082 | let O_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `o_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_O` should have a snake case name [INFO] [stdout] --> src/element.rs:1110:13 [INFO] [stdout] | [INFO] [stdout] 1110 | let expected_O = 2.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `expected_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_H` should have a snake case name [INFO] [stdout] --> src/element.rs:1111:13 [INFO] [stdout] | [INFO] [stdout] 1111 | let expected_H = 20.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_N` should have a snake case name [INFO] [stdout] --> src/element.rs:1112:13 [INFO] [stdout] | [INFO] [stdout] 1112 | let expected_N = 40.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `O_mol_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1118:13 [INFO] [stdout] | [INFO] [stdout] 1118 | let O_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `o_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H_mol_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1122:13 [INFO] [stdout] | [INFO] [stdout] 1122 | let H_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `h_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_O` should have a snake case name [INFO] [stdout] --> src/element.rs:1155:13 [INFO] [stdout] | [INFO] [stdout] 1155 | let expected_O = 2.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `expected_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_H` should have a snake case name [INFO] [stdout] --> src/element.rs:1156:13 [INFO] [stdout] | [INFO] [stdout] 1156 | let expected_H = 20.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_N` should have a snake case name [INFO] [stdout] --> src/element.rs:1157:13 [INFO] [stdout] | [INFO] [stdout] 1157 | let expected_N = 40.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `O_mol_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1163:13 [INFO] [stdout] | [INFO] [stdout] 1163 | let O_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `o_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H_mol_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1167:13 [INFO] [stdout] | [INFO] [stdout] 1167 | let H_mol_ratio = molecular_formula [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `h_mol_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_H` should have a snake case name [INFO] [stdout] --> src/element.rs:1200:13 [INFO] [stdout] | [INFO] [stdout] 1200 | let expected_H = 10.0 * 2.0 / 100.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_N` should have a snake case name [INFO] [stdout] --> src/element.rs:1201:13 [INFO] [stdout] | [INFO] [stdout] 1201 | let expected_N = 20.0 * 2.0 / 100.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `expected_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_H_after_wt_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1203:13 [INFO] [stdout] | [INFO] [stdout] 1203 | let expected_H_after_wt_ratio = 10.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_h_after_wt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_N_after_wt_ratio` should have a snake case name [INFO] [stdout] --> src/element.rs:1204:13 [INFO] [stdout] | [INFO] [stdout] 1204 | let expected_N_after_wt_ratio = 20.; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_n_after_wt_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/element.rs:1206:9 [INFO] [stdout] | [INFO] [stdout] 1206 | formula.multiply_wt_percent(multiplier); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1206 | let _ = formula.multiply_wt_percent(multiplier); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_MW` should have a snake case name [INFO] [stdout] --> src/parser.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let expected_MW = 60.083; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `expected_mw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_Si` should have a snake case name [INFO] [stdout] --> src/parser.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | let expected_Si = 1.0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `expected_si` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_O` should have a snake case name [INFO] [stdout] --> src/parser.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let expected_O = 2.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `expected_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_Si` should have a snake case name [INFO] [stdout] --> src/parser.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let expected_Si = 1.0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `expected_si` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_O` should have a snake case name [INFO] [stdout] --> src/parser.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let expected_O = 2.0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `expected_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_Pt_wt` should have a snake case name [INFO] [stdout] --> src/parser.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | let expected_Pt_wt = 5.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_pt_wt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_SiO2_wt` should have a snake case name [INFO] [stdout] --> src/parser.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let expected_SiO2_wt = 100.0 - expected_Pt_wt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_si_o2_wt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_Pt_wt` should have a snake case name [INFO] [stdout] --> src/parser.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let expected_Pt_wt = 5.0 / 2.; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_pt_wt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_Au_wt` should have a snake case name [INFO] [stdout] --> src/parser.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let expected_Au_wt = 5.0 / 2.; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_au_wt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `expected_SiO2_wt` should have a snake case name [INFO] [stdout] --> src/parser.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let expected_SiO2_wt = 100.0 - expected_Pt_wt - expected_Au_wt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `expected_si_o2_wt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chemical-formula` (lib test) due to 2 previous errors; 52 warnings emitted [INFO] running `Command { std: "docker" "inspect" "83044bfeb566efe6625bb1475d5f74a90c0b1e68513685af3b5d96ca73451313", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83044bfeb566efe6625bb1475d5f74a90c0b1e68513685af3b5d96ca73451313", kill_on_drop: false }` [INFO] [stdout] 83044bfeb566efe6625bb1475d5f74a90c0b1e68513685af3b5d96ca73451313