[INFO] fetching crate optrs 0.1.0... [INFO] checking optrs-0.1.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate optrs 0.1.0 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate optrs 0.1.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate optrs 0.1.0 [INFO] finished tweaking crates.io crate optrs 0.1.0 [INFO] tweaked toml for crates.io crate optrs 0.1.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate optrs 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81d26d2becb7256b074326186789f42ee6b852c4dc87647a481a78bfc7d28cdb [INFO] running `Command { std: "docker" "start" "-a" "81d26d2becb7256b074326186789f42ee6b852c4dc87647a481a78bfc7d28cdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81d26d2becb7256b074326186789f42ee6b852c4dc87647a481a78bfc7d28cdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81d26d2becb7256b074326186789f42ee6b852c4dc87647a481a78bfc7d28cdb", kill_on_drop: false }` [INFO] [stdout] 81d26d2becb7256b074326186789f42ee6b852c4dc87647a481a78bfc7d28cdb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8dd26c1461c5d83dd72c4201623e58219bfbd36a02bfb895354109c134c08e5 [INFO] running `Command { std: "docker" "start" "-a" "e8dd26c1461c5d83dd72c4201623e58219bfbd36a02bfb895354109c134c08e5", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling target-lexicon v0.12.4 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Compiling indoc v1.0.6 [INFO] [stderr] Checking unindent v0.1.9 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling pyo3-build-config v0.16.5 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling pyo3-ffi v0.16.5 [INFO] [stderr] Compiling pyo3 v0.16.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling pyo3-macros-backend v0.16.5 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Compiling pyo3-macros v0.16.5 [INFO] [stderr] Checking optrs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/io/xyz.rs (1 fix) [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | fn from_xyz_file(filename: &str) -> Self { [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:55:37 [INFO] [stdout] | [INFO] [stdout] 55 | fn from_atomic_symbols(symbols: Vec<&str>) -> Self{ [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 63 | fn set_bond_orders(&mut self, bond_orders: Vec){ [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:113:44 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn write_xyz_file(&self, filename: &str){ self.molecule.write_xyz_file(filename); } [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:116:52 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn set_coordinates(&mut self, coordinates: Vec){ [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/io/xyz.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct XYZFile{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 13 | [INFO] [stdout] 14 | pub filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Fixed src/molecule.rs (1 fix) [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | fn from_xyz_file(filename: &str) -> Self { [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/utils.rs (2 fixes) [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:55:37 [INFO] [stdout] | [INFO] [stdout] 55 | fn from_atomic_symbols(symbols: Vec<&str>) -> Self{ [INFO] [stdout] | ^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:48 [INFO] [stdout] | [INFO] [stdout] 63 | fn set_bond_orders(&mut self, bond_orders: Vec){ [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:113:44 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn write_xyz_file(&self, filename: &str){ self.molecule.write_xyz_file(filename); } [INFO] [stdout] | ^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:116:52 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn set_coordinates(&mut self, coordinates: Vec){ [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/lib.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn main() { run(CommandLineArguments::parse()) } [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `energy`, `gradient`, `numerical_gradient`, and `has_dihedrals` are never used [INFO] [stdout] --> src/molecule.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Molecule{ [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn energy(&self, forcefield: &mut dyn Forcefield) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn gradient(&mut self, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn numerical_gradient(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn has_dihedrals(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_metal` is never used [INFO] [stdout] --> src/atoms.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Atom { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn is_metal(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_integer` and `is_main_group` are never used [INFO] [stdout] --> src/atoms.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 209 | impl AtomicNumber { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn from_integer(value: usize) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn is_main_group(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `METALLIC_ELEMENTS` is never used [INFO] [stdout] --> src/atoms.rs:353:8 [INFO] [stdout] | [INFO] [stdout] 353 | static METALLIC_ELEMENTS: [&'static str; 92] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `involves_idxs` and `force_constant` are never used [INFO] [stdout] --> src/ff/forcefield.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait EnergyFunction{ [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 15 | [INFO] [stdout] 16 | fn involves_idxs(&self, idxs: Vec) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | fn force_constant(&self) -> f64; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/io/xyz.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct XYZFile{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 13 | [INFO] [stdout] 14 | pub filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/cli.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn run(args: CommandLineArguments) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/molecule.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Molecule{ [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn from_atomic_symbols(symbols: &[&str]) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn energy(&self, forcefield: &mut dyn Forcefield) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn gradient(&mut self, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn numerical_gradient(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn has_dihedrals(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 416 | fn minimum_pairwise_distance(&self) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 435 | pub fn randomise_coordinates(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | pub fn build_3d(&mut self){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/molecule.rs:554:12 [INFO] [stdout] | [INFO] [stdout] 551 | impl Connectivity { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 554 | pub fn clear(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_metal` is never used [INFO] [stdout] --> src/atoms.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Atom { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn is_metal(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_integer` and `is_main_group` are never used [INFO] [stdout] --> src/atoms.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 209 | impl AtomicNumber { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn from_integer(value: usize) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn is_main_group(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `METALLIC_ELEMENTS` is never used [INFO] [stdout] --> src/atoms.rs:353:8 [INFO] [stdout] | [INFO] [stdout] 353 | static METALLIC_ELEMENTS: [&'static str; 92] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Quadruple` is never constructed [INFO] [stdout] --> src/connectivity/bonds.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub enum BondOrder{ [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 99 | Quadruple [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BondOrder` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `iterator` and `from_value` are never used [INFO] [stdout] --> src/connectivity/bonds.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 109 | impl BondOrder { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 110 | [INFO] [stdout] 111 | fn iterator() -> Iter<'static, BondOrder>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub(crate) fn from_value(value: &f64) -> Self{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `involves_idxs` and `force_constant` are never used [INFO] [stdout] --> src/ff/forcefield.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait EnergyFunction{ [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 15 | [INFO] [stdout] 16 | fn involves_idxs(&self, idxs: Vec) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | fn force_constant(&self) -> f64; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/io/xyz.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct XYZFile{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 13 | [INFO] [stdout] 14 | pub filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_max_iterations` is never used [INFO] [stdout] --> src/opt/sd.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl SteepestDecentOptimiser { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn from_max_iterations(max_num_iterations: usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_very_close` is never used [INFO] [stdout] --> src/utils.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait IsVeryClose{ [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 20 | fn is_very_close(&self, other: &f64) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:823:36 [INFO] [stdout] | [INFO] [stdout] 823 | assert_eq!(bond.order, BondOrder::Single); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:837:40 [INFO] [stdout] | [INFO] [stdout] 837 | assert_eq!(bond.order, BondOrder::Double); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:840:40 [INFO] [stdout] | [INFO] [stdout] 840 | assert_eq!(bond.order, BondOrder::Single); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:856:69 [INFO] [stdout] | [INFO] [stdout] 856 | let expected_bond = Bond{pair: AtomPair{i: 0, j: 1}, order: BondOrder::Double}; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:868:69 [INFO] [stdout] | [INFO] [stdout] 868 | let expected_bond = Bond{pair: AtomPair{i: 0, j: 1}, order: BondOrder::Double}; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:944:40 [INFO] [stdout] | [INFO] [stdout] 944 | assert_eq!(bond.order, BondOrder::Aromatic); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:965:35 [INFO] [stdout] | [INFO] [stdout] 965 | assert_eq!(cc_bond.order, BondOrder::Triple); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:985:35 [INFO] [stdout] | [INFO] [stdout] 985 | assert!(bond.order == BondOrder::Double || bond.order == BondOrder::Single); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:985:70 [INFO] [stdout] | [INFO] [stdout] 985 | assert!(bond.order == BondOrder::Double || bond.order == BondOrder::Single); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:1067:20 [INFO] [stdout] | [INFO] [stdout] 1067 | assert_eq!(BondOrder::from_value(&1.0), BondOrder::Single); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:1067:49 [INFO] [stdout] | [INFO] [stdout] 1067 | assert_eq!(BondOrder::from_value(&1.0), BondOrder::Single); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:1068:20 [INFO] [stdout] | [INFO] [stdout] 1068 | assert_eq!(BondOrder::from_value(&4.0), BondOrder::Quadruple); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:1068:49 [INFO] [stdout] | [INFO] [stdout] 1068 | assert_eq!(BondOrder::from_value(&4.0), BondOrder::Quadruple); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:1077:20 [INFO] [stdout] | [INFO] [stdout] 1077 | assert_eq!(BondOrder::from_value(&-1.0), BondOrder::Single); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BondOrder` [INFO] [stdout] --> src/molecule.rs:1077:50 [INFO] [stdout] | [INFO] [stdout] 1077 | assert_eq!(BondOrder::from_value(&-1.0), BondOrder::Single); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `BondOrder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 593 + use crate::connectivity::bonds::BondOrder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Molecule` in this scope [INFO] [stdout] --> src/utils.rs:33:57 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) fn num_and_anal_gradient_are_close(mol: &mut Molecule, ff: &mut dyn Forcefield) -> bool{ [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::molecule::Molecule; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Forcefield` in this scope [INFO] [stdout] --> src/utils.rs:33:80 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) fn num_and_anal_gradient_are_close(mol: &mut Molecule, ff: &mut dyn Forcefield) -> bool{ [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 + use crate::ff::forcefield::Forcefield; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `optrs` (bin "optrs" test) due to 18 previous errors [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "e8dd26c1461c5d83dd72c4201623e58219bfbd36a02bfb895354109c134c08e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8dd26c1461c5d83dd72c4201623e58219bfbd36a02bfb895354109c134c08e5", kill_on_drop: false }` [INFO] [stdout] e8dd26c1461c5d83dd72c4201623e58219bfbd36a02bfb895354109c134c08e5