[INFO] fetching crate optrs 0.1.0... [INFO] checking optrs-0.1.0 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate optrs 0.1.0 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate optrs 0.1.0 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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-2-tc1/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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded target-lexicon v0.12.4 [INFO] [stderr] Downloaded unindent v0.1.9 [INFO] [stderr] Downloaded indoc v1.0.6 [INFO] [stderr] Downloaded pyo3-ffi v0.16.5 [INFO] [stderr] Downloaded pyo3-macros-backend v0.16.5 [INFO] [stderr] Downloaded pyo3 v0.16.5 [INFO] [stderr] Downloaded pyo3-build-config v0.16.5 [INFO] [stderr] Downloaded pyo3-macros v0.16.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b09ceaaa97ef875c65be8d3107359c14247f87b54d78d64f8afcb23265784556 [INFO] running `Command { std: "docker" "start" "-a" "b09ceaaa97ef875c65be8d3107359c14247f87b54d78d64f8afcb23265784556", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b09ceaaa97ef875c65be8d3107359c14247f87b54d78d64f8afcb23265784556", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b09ceaaa97ef875c65be8d3107359c14247f87b54d78d64f8afcb23265784556", kill_on_drop: false }` [INFO] [stdout] b09ceaaa97ef875c65be8d3107359c14247f87b54d78d64f8afcb23265784556 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a8d75605fc1f3e736b8b268ef16f6fe8ca82ba5660e479b3f186848362494a5 [INFO] running `Command { std: "docker" "start" "-a" "8a8d75605fc1f3e736b8b268ef16f6fe8ca82ba5660e479b3f186848362494a5", kill_on_drop: false }` [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 lock_api v0.4.7 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Checking unindent v0.1.9 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Compiling indoc v1.0.6 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Compiling pyo3-build-config v0.16.5 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking rand_core v0.6.3 [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 pyo3-macros-backend v0.16.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Compiling pyo3-macros v0.16.5 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Checking optrs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BondOrder` [INFO] [stdout] --> src/molecule.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::connectivity::bonds::{Bond, BondOrder}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ff::forcefield::Forcefield` [INFO] [stdout] --> src/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ff::forcefield::Forcefield; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::molecule::Molecule` [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::molecule::Molecule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `distance` is imported redundantly [INFO] [stdout] --> src/molecule.rs:593:34 [INFO] [stdout] | [INFO] [stdout] 593 | use crate::pairs::{AtomPair, distance}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 594 | use crate::ff::uff::core::UFF; [INFO] [stdout] 595 | use super::*; [INFO] [stdout] | -------- the item `distance` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BondOrder` [INFO] [stdout] --> src/molecule.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::connectivity::bonds::{Bond, BondOrder}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ff::forcefield::Forcefield` [INFO] [stdout] --> src/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ff::forcefield::Forcefield; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::molecule::Molecule` [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::molecule::Molecule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `distance` is imported redundantly [INFO] [stdout] --> src/molecule.rs:593:34 [INFO] [stdout] | [INFO] [stdout] 593 | use crate::pairs::{AtomPair, distance}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 594 | use crate::ff::uff::core::UFF; [INFO] [stdout] 595 | use super::*; [INFO] [stdout] | -------- the item `distance` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [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:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait IsVeryClose{ [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 22 | fn is_very_close(&self, other: &f64) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.90s [INFO] running `Command { std: "docker" "inspect" "8a8d75605fc1f3e736b8b268ef16f6fe8ca82ba5660e479b3f186848362494a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a8d75605fc1f3e736b8b268ef16f6fe8ca82ba5660e479b3f186848362494a5", kill_on_drop: false }` [INFO] [stdout] 8a8d75605fc1f3e736b8b268ef16f6fe8ca82ba5660e479b3f186848362494a5 [INFO] checking optrs-0.1.0 against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] extracting crate optrs 0.1.0 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate optrs 0.1.0 on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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-2-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ba0ee988e981d14c6cbff79dffba6169ca4053f4c809b18f4879bb59fb64afab [INFO] running `Command { std: "docker" "start" "-a" "ba0ee988e981d14c6cbff79dffba6169ca4053f4c809b18f4879bb59fb64afab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba0ee988e981d14c6cbff79dffba6169ca4053f4c809b18f4879bb59fb64afab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba0ee988e981d14c6cbff79dffba6169ca4053f4c809b18f4879bb59fb64afab", kill_on_drop: false }` [INFO] [stdout] ba0ee988e981d14c6cbff79dffba6169ca4053f4c809b18f4879bb59fb64afab [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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 856323a9e325ba8b3e2d3c722d7f10a747eae956c78ed05018514c0564862381 [INFO] running `Command { std: "docker" "start" "-a" "856323a9e325ba8b3e2d3c722d7f10a747eae956c78ed05018514c0564862381", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling target-lexicon v0.12.4 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [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 scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking unindent v0.1.9 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Compiling indoc v1.0.6 [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] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking rand_core v0.6.3 [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] Compiling pyo3-macros v0.16.5 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Checking optrs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: the item `distance` is imported redundantly [INFO] [stdout] --> src/molecule.rs:593:34 [INFO] [stdout] | [INFO] [stdout] 593 | use crate::pairs::{AtomPair, distance}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 594 | use crate::ff::uff::core::UFF; [INFO] [stdout] 595 | use super::*; [INFO] [stdout] | -------- the item `distance` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/molecule.rs (1 fix) [INFO] [stderr] Fixed src/utils.rs (2 fixes) [INFO] [stdout] warning: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block (error E0133) [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] [stderr] Migrating src/main.rs from 2021 edition to 2024 [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] [stderr] error: could not compile `optrs` (bin "optrs" test) due to 18 previous errors; 1 warning emitted [INFO] [stdout] warning: the item `distance` is imported redundantly [INFO] [stdout] --> src/molecule.rs:593:34 [INFO] [stdout] | [INFO] [stdout] 593 | use crate::pairs::{AtomPair, distance}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 594 | use crate::ff::uff::core::UFF; [INFO] [stdout] 595 | use super::*; [INFO] [stdout] | -------- the item `distance` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 17 previous errors; 1 warning emitted [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] [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] [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" "856323a9e325ba8b3e2d3c722d7f10a747eae956c78ed05018514c0564862381", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "856323a9e325ba8b3e2d3c722d7f10a747eae956c78ed05018514c0564862381", kill_on_drop: false }` [INFO] [stdout] 856323a9e325ba8b3e2d3c722d7f10a747eae956c78ed05018514c0564862381