[INFO] cloning repository https://github.com/jwschroeder3/optim_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jwschroeder3/optim_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjwschroeder3%2Foptim_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjwschroeder3%2Foptim_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f95646c9b34511ec0d735f3855a837e5522acc24 [INFO] checking jwschroeder3/optim_rs against try#438eb4c1a1c3841523d7f672601e8adbe04cff28 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjwschroeder3%2Foptim_rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jwschroeder3/optim_rs [INFO] finished tweaking git repo https://github.com/jwschroeder3/optim_rs [INFO] tweaked toml for git repo https://github.com/jwschroeder3/optim_rs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jwschroeder3/optim_rs on toolchain 438eb4c1a1c3841523d7f672601e8adbe04cff28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jwschroeder3/optim_rs 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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cef4c3a6ce7853779d8132eefc8c5c578253d66e3151d275c033179d263dc701 [INFO] running `Command { std: "docker" "start" "-a" "cef4c3a6ce7853779d8132eefc8c5c578253d66e3151d275c033179d263dc701", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cef4c3a6ce7853779d8132eefc8c5c578253d66e3151d275c033179d263dc701", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cef4c3a6ce7853779d8132eefc8c5c578253d66e3151d275c033179d263dc701", kill_on_drop: false }` [INFO] [stdout] cef4c3a6ce7853779d8132eefc8c5c578253d66e3151d275c033179d263dc701 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb1f11b49f99875593d016ef1c7a6b60bc2abf2064fe1799cc4f5977b0b74eab [INFO] running `Command { std: "docker" "start" "-a" "eb1f11b49f99875593d016ef1c7a6b60bc2abf2064fe1799cc4f5977b0b74eab", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling libm v0.2.6 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rayon-core v1.11.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ordered-float v2.10.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking optimize_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `assert_abs_diff_eq` and `assert_abs_diff_ne` [INFO] [stdout] --> src/simulated_annealing.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use approx::{assert_abs_diff_eq,assert_abs_diff_ne}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InvalidParticleBuild` [INFO] [stdout] --> src/simulated_annealing.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | InvalidParticleBuild, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_abs_diff_eq` and `assert_abs_diff_ne` [INFO] [stdout] --> src/particle_swarm.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use approx::{assert_abs_diff_eq,assert_abs_diff_ne}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InvalidParticleBuild` and `Method` [INFO] [stdout] --> src/particle_swarm.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Method, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | IncompleteParticleBuild, [INFO] [stdout] 12 | InvalidParticleBuild, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `assert_abs_diff_eq` and `assert_abs_diff_ne` [INFO] [stdout] --> src/replica_exchange.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use approx::{assert_abs_diff_eq,assert_abs_diff_ne}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simulated_annealing::ParticleBuilder` [INFO] [stdout] --> src/replica_exchange.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | simulated_annealing::ParticleBuilder, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InvalidParticleBuild` [INFO] [stdout] --> src/simulated_annealing.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | InvalidParticleBuild, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InvalidParticleBuild` and `Method` [INFO] [stdout] --> src/particle_swarm.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Method, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | IncompleteParticleBuild, [INFO] [stdout] 12 | InvalidParticleBuild, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simulated_annealing.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut init_rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_rng` [INFO] [stdout] --> src/simulated_annealing.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut init_rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simulated_annealing.rs:390:17 [INFO] [stdout] | [INFO] [stdout] 390 | let mut data_vec = data.to_vec(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/simulated_annealing.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | for i in 0..n_particles { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/particle_swarm.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | let mut vel: Vec = (0..dim) [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/particle_swarm.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let mut rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/particle_swarm.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let mut rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/particle_swarm.rs:449:39 [INFO] [stdout] | [INFO] [stdout] 449 | .map(|(((((a, b), c), d), e), f)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/particle_swarm.rs:449:43 [INFO] [stdout] | [INFO] [stdout] 449 | .map(|(((((a, b), c), d), e), f)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/replica_exchange.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/replica_exchange.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `IncompleteParticleBuild` is more private than the item `simulated_annealing::ParticleBuilder::::build` [INFO] [stdout] --> src/simulated_annealing.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn build(&self) -> Result, IncompleteParticleBuild> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `simulated_annealing::ParticleBuilder::::build` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `IncompleteParticleBuild` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | enum IncompleteParticleBuild { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_of` is never used [INFO] [stdout] --> src/lib.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn type_of(_: &T) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoMethod` and `NoStepsize` are never constructed [INFO] [stdout] --> src/lib.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 152 | enum IncompleteParticleBuild { [INFO] [stdout] | ----------------------- variants in this enum [INFO] [stdout] 153 | NoMethod, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 154 | NoObjective, [INFO] [stdout] 155 | NoStepsize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IncompleteParticleBuild` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InvalidParticleBuild` is never used [INFO] [stdout] --> src/lib.rs:160:6 [INFO] [stdout] | [INFO] [stdout] 160 | enum InvalidParticleBuild { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Optimizer` is never used [INFO] [stdout] --> src/lib.rs:165:7 [INFO] [stdout] | [INFO] [stdout] 165 | trait Optimizer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct OptimizerBuilder { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 171 | method: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 172 | particle_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 173 | object: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 174 | position: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 175 | lower_bound: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 176 | upper_bound: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 177 | temperature: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 178 | stepsize: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptimizerBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IncompleteOptimizerBuild` is never used [INFO] [stdout] --> src/lib.rs:182:6 [INFO] [stdout] | [INFO] [stdout] 182 | enum IncompleteOptimizerBuild { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InvalidOptimizerBuild` is never used [INFO] [stdout] --> src/lib.rs:190:6 [INFO] [stdout] | [INFO] [stdout] 190 | enum InvalidOptimizerBuild { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `score` and `rng` are never read [INFO] [stdout] --> src/simulated_annealing.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ParticleBuilder { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | score: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | rng: Xoshiro256PlusPlus, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adjust_stepsize` is never used [INFO] [stdout] --> src/simulated_annealing.rs:351:8 [INFO] [stdout] | [INFO] [stdout] 155 | impl Particle { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 351 | fn adjust_stepsize(&mut self, s_adj: &f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `score`, `initial_jitter`, and `rng` are never read [INFO] [stdout] --> src/particle_swarm.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ParticleBuilder { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | score: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | initial_jitter: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | rng: Xoshiro256PlusPlus, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `accept_from_logit` is never read [INFO] [stdout] --> src/particle_swarm.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 310 | struct Particle { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 325 | accept_from_logit: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/particle_swarm.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 329 | impl Particle { [INFO] [stdout] | -------------------------------------------------- associated function in this implementation [INFO] [stdout] 330 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/particle_swarm.rs:276:21 [INFO] [stdout] | [INFO] [stdout] 276 | fn par_iter_mut(&mut self) -> rayon::slice::IterMut> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 276 | fn par_iter_mut(&mut self) -> rayon::slice::IterMut<'_, Particle> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simulated_annealing.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut init_rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_rng` [INFO] [stdout] --> src/simulated_annealing.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut init_rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/replica_exchange.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | fn par_iter_mut(&mut self) -> rayon::slice::IterMut> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 138 | fn par_iter_mut(&mut self) -> rayon::slice::IterMut<'_, Particle> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/simulated_annealing.rs:390:17 [INFO] [stdout] | [INFO] [stdout] 390 | let mut data_vec = data.to_vec(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/simulated_annealing.rs:386:13 [INFO] [stdout] | [INFO] [stdout] 386 | for i in 0..n_particles { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> src/simulated_annealing.rs:529:13 [INFO] [stdout] | [INFO] [stdout] 529 | let temp = 2.0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/particle_swarm.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | let mut vel: Vec = (0..dim) [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/particle_swarm.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let mut rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/particle_swarm.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let mut rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/particle_swarm.rs:449:39 [INFO] [stdout] | [INFO] [stdout] 449 | .map(|(((((a, b), c), d), e), f)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/particle_swarm.rs:449:43 [INFO] [stdout] | [INFO] [stdout] 449 | .map(|(((((a, b), c), d), e), f)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step` [INFO] [stdout] --> src/particle_swarm.rs:621:13 [INFO] [stdout] | [INFO] [stdout] 621 | let step = 0.0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_step` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/replica_exchange.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/replica_exchange.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let mut rng = Xoshiro256PlusPlus::from_entropy(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_jitter` [INFO] [stdout] --> src/replica_exchange.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | init_jitter: f64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_jitter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `IncompleteParticleBuild` is more private than the item `simulated_annealing::ParticleBuilder::::build` [INFO] [stdout] --> src/simulated_annealing.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn build(&self) -> Result, IncompleteParticleBuild> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `simulated_annealing::ParticleBuilder::::build` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `IncompleteParticleBuild` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | enum IncompleteParticleBuild { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_of` is never used [INFO] [stdout] --> src/lib.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 138 | fn type_of(_: &T) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NoMethod` and `NoStepsize` are never constructed [INFO] [stdout] --> src/lib.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 152 | enum IncompleteParticleBuild { [INFO] [stdout] | ----------------------- variants in this enum [INFO] [stdout] 153 | NoMethod, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 154 | NoObjective, [INFO] [stdout] 155 | NoStepsize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IncompleteParticleBuild` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InvalidParticleBuild` is never used [INFO] [stdout] --> src/lib.rs:160:6 [INFO] [stdout] | [INFO] [stdout] 160 | enum InvalidParticleBuild { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 170 | pub struct OptimizerBuilder { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 171 | method: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 172 | particle_number: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 173 | object: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 174 | position: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 175 | lower_bound: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 176 | upper_bound: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 177 | temperature: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 178 | stepsize: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptimizerBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IncompleteOptimizerBuild` is never used [INFO] [stdout] --> src/lib.rs:182:6 [INFO] [stdout] | [INFO] [stdout] 182 | enum IncompleteOptimizerBuild { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InvalidOptimizerBuild` is never used [INFO] [stdout] --> src/lib.rs:190:6 [INFO] [stdout] | [INFO] [stdout] 190 | enum InvalidOptimizerBuild { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `score` and `rng` are never read [INFO] [stdout] --> src/simulated_annealing.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ParticleBuilder { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | score: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | rng: Xoshiro256PlusPlus, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adjust_stepsize` is never used [INFO] [stdout] --> src/simulated_annealing.rs:351:8 [INFO] [stdout] | [INFO] [stdout] 155 | impl Particle { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 351 | fn adjust_stepsize(&mut self, s_adj: &f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `himmelblau` is never used [INFO] [stdout] --> src/simulated_annealing.rs:468:8 [INFO] [stdout] | [INFO] [stdout] 468 | fn himmelblau(param: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_up_particles` is never used [INFO] [stdout] --> src/simulated_annealing.rs:492:8 [INFO] [stdout] | [INFO] [stdout] 492 | fn set_up_particles<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `score`, `initial_jitter`, and `rng` are never read [INFO] [stdout] --> src/particle_swarm.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ParticleBuilder { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | score: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | initial_jitter: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | rng: Xoshiro256PlusPlus, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `accept_from_logit` is never read [INFO] [stdout] --> src/particle_swarm.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 310 | struct Particle { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 325 | accept_from_logit: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/particle_swarm.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 329 | impl Particle { [INFO] [stdout] | -------------------------------------------------- associated function in this implementation [INFO] [stdout] 330 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `himmelblau` is never used [INFO] [stdout] --> src/particle_swarm.rs:520:8 [INFO] [stdout] | [INFO] [stdout] 520 | fn himmelblau(param: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_up_particles` is never used [INFO] [stdout] --> src/particle_swarm.rs:544:8 [INFO] [stdout] | [INFO] [stdout] 544 | fn set_up_particles<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `himmelblau` is never used [INFO] [stdout] --> src/replica_exchange.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | fn himmelblau(param: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/particle_swarm.rs:276:21 [INFO] [stdout] | [INFO] [stdout] 276 | fn par_iter_mut(&mut self) -> rayon::slice::IterMut> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 276 | fn par_iter_mut(&mut self) -> rayon::slice::IterMut<'_, Particle> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/replica_exchange.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | fn par_iter_mut(&mut self) -> rayon::slice::IterMut> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 138 | fn par_iter_mut(&mut self) -> rayon::slice::IterMut<'_, Particle> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.14s [INFO] running `Command { std: "docker" "inspect" "eb1f11b49f99875593d016ef1c7a6b60bc2abf2064fe1799cc4f5977b0b74eab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb1f11b49f99875593d016ef1c7a6b60bc2abf2064fe1799cc4f5977b0b74eab", kill_on_drop: false }` [INFO] [stdout] eb1f11b49f99875593d016ef1c7a6b60bc2abf2064fe1799cc4f5977b0b74eab