[INFO] fetching crate optrs 0.1.0... [INFO] checking optrs-0.1.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate optrs 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate optrs 0.1.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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-0-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pyo3-macros v0.16.5 [INFO] [stderr] Downloaded indoc v1.0.6 [INFO] [stderr] Downloaded pyo3-build-config v0.16.5 [INFO] [stderr] Downloaded pyo3-ffi v0.16.5 [INFO] [stderr] Downloaded pyo3-macros-backend v0.16.5 [INFO] [stderr] Downloaded target-lexicon v0.12.4 [INFO] [stderr] Downloaded unindent v0.1.9 [INFO] [stderr] Downloaded pyo3 v0.16.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a04cb7252148fbe63ba930fbec62048299dc1bf4d01936b5dc5e75560258650d [INFO] running `Command { std: "docker" "start" "-a" "a04cb7252148fbe63ba930fbec62048299dc1bf4d01936b5dc5e75560258650d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a04cb7252148fbe63ba930fbec62048299dc1bf4d01936b5dc5e75560258650d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a04cb7252148fbe63ba930fbec62048299dc1bf4d01936b5dc5e75560258650d", kill_on_drop: false }` [INFO] [stdout] a04cb7252148fbe63ba930fbec62048299dc1bf4d01936b5dc5e75560258650d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 202462261ca75640b07275e96576e09d5d1989eadce6805886d584853062b697 [INFO] running `Command { std: "docker" "start" "-a" "202462261ca75640b07275e96576e09d5d1989eadce6805886d584853062b697", kill_on_drop: false }` [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 version_check v0.9.4 [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] Compiling heck v0.4.0 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking unindent v0.1.9 [INFO] [stderr] Compiling indoc v1.0.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [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 quote v1.0.18 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking rand_core v0.6.3 [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 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 (/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: 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: 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: 1 warning 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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.93s [INFO] running `Command { std: "docker" "inspect" "202462261ca75640b07275e96576e09d5d1989eadce6805886d584853062b697", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "202462261ca75640b07275e96576e09d5d1989eadce6805886d584853062b697", kill_on_drop: false }` [INFO] [stdout] 202462261ca75640b07275e96576e09d5d1989eadce6805886d584853062b697