[INFO] fetching crate voxcov 0.2.8... [INFO] building voxcov-0.2.8 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate voxcov 0.2.8 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate voxcov 0.2.8 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate voxcov 0.2.8 [INFO] finished tweaking crates.io crate voxcov 0.2.8 [INFO] tweaked toml for crates.io crate voxcov 0.2.8 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate crates.io crate voxcov 0.2.8 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5218ceb8f6d239a07ee962937e067ca8f221f35a2b08cac635878137efa29d2d [INFO] running `Command { std: "docker" "start" "-a" "5218ceb8f6d239a07ee962937e067ca8f221f35a2b08cac635878137efa29d2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5218ceb8f6d239a07ee962937e067ca8f221f35a2b08cac635878137efa29d2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5218ceb8f6d239a07ee962937e067ca8f221f35a2b08cac635878137efa29d2d", kill_on_drop: false }` [INFO] [stdout] 5218ceb8f6d239a07ee962937e067ca8f221f35a2b08cac635878137efa29d2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb778d1f64a51d537b42dbe2a29ce39e8356cfb6c6a26f800bef5dd71a3f674d [INFO] running `Command { std: "docker" "start" "-a" "cb778d1f64a51d537b42dbe2a29ce39e8356cfb6c6a26f800bef5dd71a3f674d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.8 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rayon v1.7.0 [INFO] [stderr] Compiling voxcov v0.2.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Gaussian1D` [INFO] [stdout] --> src/bfactor.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::blur::{AddGaussianToMap, Gaussian, Gaussian1D, GaussianBlur, GetDensity, Map, RawMap}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Grid` [INFO] [stdout] --> src/bfactor.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::grid::{Grid, GridLike}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::score::LinearBin` [INFO] [stdout] --> src/bfactor.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::score::LinearBin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blur.rs:55:44 [INFO] [stdout] | [INFO] [stdout] 55 | pdf: 1f64 / (sigma * f64::powf((2f64 * std::f64::consts::PI), 0.5)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - pdf: 1f64 / (sigma * f64::powf((2f64 * std::f64::consts::PI), 0.5)), [INFO] [stdout] 55 + pdf: 1f64 / (sigma * f64::powf(2f64 * std::f64::consts::PI, 0.5)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blur.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | / (sigma * sigma * sigma * f64::powf((2f64 * std::f64::consts::PI), 3.0 / 2.0)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - / (sigma * sigma * sigma * f64::powf((2f64 * std::f64::consts::PI), 3.0 / 2.0)), [INFO] [stdout] 97 + / (sigma * sigma * sigma * f64::powf(2f64 * std::f64::consts::PI, 3.0 / 2.0)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/blur.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 69 | return r; [INFO] [stdout] | -------- any code following this expression is unreachable [INFO] [stdout] 70 | / if r.is_nan() { [INFO] [stdout] 71 | | return 0f64; [INFO] [stdout] 72 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/grid.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 131 | return (); [INFO] [stdout] | --------- any code following this expression is unreachable [INFO] [stdout] 132 | // iterate over any region which has been touched. [INFO] [stdout] 133 | / if let Some(low) = self.low { [INFO] [stdout] 134 | | if let Some(high) = self.high { [INFO] [stdout] 135 | | for i in low[0]..=high[0] { [INFO] [stdout] 136 | | for j in low[1]..=high[1] { [INFO] [stdout] ... | [INFO] [stdout] 143 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GridLike` [INFO] [stdout] --> src/bfactor.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::grid::{Grid, GridLike}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/bfactor.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | let mut q = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back` [INFO] [stdout] --> src/bfactor.rs:188:54 [INFO] [stdout] | [INFO] [stdout] 188 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_back` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut q = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | fn likelihood(&self, obs: &RawMap) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tot` is never read [INFO] [stdout] --> src/bfactor.rs:280:17 [INFO] [stdout] | [INFO] [stdout] 280 | let mut tot = 0f64; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_mean` [INFO] [stdout] --> src/bfactor.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let old_mean = self.mean; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_mean` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back` [INFO] [stdout] --> src/bfactor.rs:277:54 [INFO] [stdout] | [INFO] [stdout] 277 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_back` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sigma` [INFO] [stdout] --> src/bfactor.rs:277:65 [INFO] [stdout] | [INFO] [stdout] 277 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sigma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [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/bfactor.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [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/bfactor.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bfactor.rs:324:20 [INFO] [stdout] | [INFO] [stdout] 324 | fn mean(&self, data: &Map, obs: &RawMap) -> Point { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:324:32 [INFO] [stdout] | [INFO] [stdout] 324 | fn mean(&self, data: &Map, obs: &RawMap) -> Point { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:327:26 [INFO] [stdout] | [INFO] [stdout] 327 | fn likelihood(&self, obs: &RawMap) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/bfactor.rs:418:35 [INFO] [stdout] | [INFO] [stdout] 418 | fn gaussian_likelihood(&self, idx: usize) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/bfactor.rs:496:9 [INFO] [stdout] | [INFO] [stdout] 496 | ret = ret.max(pz); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `likelihood` is never used [INFO] [stdout] --> src/bfactor.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 90 | trait EM { [INFO] [stdout] | -- method in this trait [INFO] [stdout] ... [INFO] [stdout] 94 | fn likelihood(&self, obs: &RawMap) -> f64; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_mean` is never used [INFO] [stdout] --> src/bfactor.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl UniformComp { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | fn set_mean(&mut self, mean: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `likelihood`, `gaussian_likelihood`, and `noise_likelihood` are never used [INFO] [stdout] --> src/bfactor.rs:415:8 [INFO] [stdout] | [INFO] [stdout] 339 | impl Mixture { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 415 | fn likelihood(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | fn gaussian_likelihood(&self, idx: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 421 | fn noise_likelihood(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `width` is never read [INFO] [stdout] --> src/coverage.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct GridCoverageMap { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 186 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.99s [INFO] running `Command { std: "docker" "inspect" "cb778d1f64a51d537b42dbe2a29ce39e8356cfb6c6a26f800bef5dd71a3f674d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb778d1f64a51d537b42dbe2a29ce39e8356cfb6c6a26f800bef5dd71a3f674d", kill_on_drop: false }` [INFO] [stdout] cb778d1f64a51d537b42dbe2a29ce39e8356cfb6c6a26f800bef5dd71a3f674d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64152cb9b8d72be35917d1eb0ac934a10127455c686c4fa59c0e260a6f72c75c [INFO] running `Command { std: "docker" "start" "-a" "64152cb9b8d72be35917d1eb0ac934a10127455c686c4fa59c0e260a6f72c75c", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stdout] warning: unused import: `Gaussian1D` [INFO] [stdout] --> src/bfactor.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::blur::{AddGaussianToMap, Gaussian, Gaussian1D, GaussianBlur, GetDensity, Map, RawMap}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Grid` [INFO] [stdout] --> src/bfactor.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::grid::{Grid, GridLike}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::score::LinearBin` [INFO] [stdout] --> src/bfactor.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::score::LinearBin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blur.rs:55:44 [INFO] [stdout] | [INFO] [stdout] 55 | pdf: 1f64 / (sigma * f64::powf((2f64 * std::f64::consts::PI), 0.5)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - pdf: 1f64 / (sigma * f64::powf((2f64 * std::f64::consts::PI), 0.5)), [INFO] [stdout] 55 + pdf: 1f64 / (sigma * f64::powf(2f64 * std::f64::consts::PI, 0.5)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blur.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | / (sigma * sigma * sigma * f64::powf((2f64 * std::f64::consts::PI), 3.0 / 2.0)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - / (sigma * sigma * sigma * f64::powf((2f64 * std::f64::consts::PI), 3.0 / 2.0)), [INFO] [stdout] 97 + / (sigma * sigma * sigma * f64::powf(2f64 * std::f64::consts::PI, 3.0 / 2.0)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/blur.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 69 | return r; [INFO] [stdout] | -------- any code following this expression is unreachable [INFO] [stdout] 70 | / if r.is_nan() { [INFO] [stdout] 71 | | return 0f64; [INFO] [stdout] 72 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/grid.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 131 | return (); [INFO] [stdout] | --------- any code following this expression is unreachable [INFO] [stdout] 132 | // iterate over any region which has been touched. [INFO] [stdout] 133 | / if let Some(low) = self.low { [INFO] [stdout] 134 | | if let Some(high) = self.high { [INFO] [stdout] 135 | | for i in low[0]..=high[0] { [INFO] [stdout] 136 | | for j in low[1]..=high[1] { [INFO] [stdout] ... | [INFO] [stdout] 143 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GridLike` [INFO] [stdout] --> src/bfactor.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::grid::{Grid, GridLike}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/bfactor.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | let mut q = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back` [INFO] [stdout] --> src/bfactor.rs:188:54 [INFO] [stdout] | [INFO] [stdout] 188 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_back` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut q = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | fn likelihood(&self, obs: &RawMap) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tot` is never read [INFO] [stdout] --> src/bfactor.rs:280:17 [INFO] [stdout] | [INFO] [stdout] 280 | let mut tot = 0f64; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_mean` [INFO] [stdout] --> src/bfactor.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let old_mean = self.mean; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_mean` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back` [INFO] [stdout] --> src/bfactor.rs:277:54 [INFO] [stdout] | [INFO] [stdout] 277 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_back` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sigma` [INFO] [stdout] --> src/bfactor.rs:277:65 [INFO] [stdout] | [INFO] [stdout] 277 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sigma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [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/bfactor.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [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/bfactor.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bfactor.rs:324:20 [INFO] [stdout] | [INFO] [stdout] 324 | fn mean(&self, data: &Map, obs: &RawMap) -> Point { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:324:32 [INFO] [stdout] | [INFO] [stdout] 324 | fn mean(&self, data: &Map, obs: &RawMap) -> Point { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:327:26 [INFO] [stdout] | [INFO] [stdout] 327 | fn likelihood(&self, obs: &RawMap) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/bfactor.rs:418:35 [INFO] [stdout] | [INFO] [stdout] 418 | fn gaussian_likelihood(&self, idx: usize) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/bfactor.rs:496:9 [INFO] [stdout] | [INFO] [stdout] 496 | ret = ret.max(pz); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `likelihood` is never used [INFO] [stdout] --> src/bfactor.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 90 | trait EM { [INFO] [stdout] | -- method in this trait [INFO] [stdout] ... [INFO] [stdout] 94 | fn likelihood(&self, obs: &RawMap) -> f64; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_mean` is never used [INFO] [stdout] --> src/bfactor.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl UniformComp { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | fn set_mean(&mut self, mean: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `likelihood`, `gaussian_likelihood`, and `noise_likelihood` are never used [INFO] [stdout] --> src/bfactor.rs:415:8 [INFO] [stdout] | [INFO] [stdout] 339 | impl Mixture { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 415 | fn likelihood(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | fn gaussian_likelihood(&self, idx: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 421 | fn noise_likelihood(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `width` is never read [INFO] [stdout] --> src/coverage.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct GridCoverageMap { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 186 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling voxcov v0.2.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Gaussian1D` [INFO] [stdout] --> src/bfactor.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::blur::{AddGaussianToMap, Gaussian, Gaussian1D, GaussianBlur, GetDensity, Map, RawMap}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Grid` [INFO] [stdout] --> src/bfactor.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::grid::{Grid, GridLike}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::score::LinearBin` [INFO] [stdout] --> src/bfactor.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::score::LinearBin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `voxcov::grid::GridLike` [INFO] [stdout] --> examples/bench.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use voxcov::grid::GridLike; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blur.rs:55:44 [INFO] [stdout] | [INFO] [stdout] 55 | pdf: 1f64 / (sigma * f64::powf((2f64 * std::f64::consts::PI), 0.5)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - pdf: 1f64 / (sigma * f64::powf((2f64 * std::f64::consts::PI), 0.5)), [INFO] [stdout] 55 + pdf: 1f64 / (sigma * f64::powf(2f64 * std::f64::consts::PI, 0.5)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blur.rs:97:54 [INFO] [stdout] | [INFO] [stdout] 97 | / (sigma * sigma * sigma * f64::powf((2f64 * std::f64::consts::PI), 3.0 / 2.0)), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 97 - / (sigma * sigma * sigma * f64::powf((2f64 * std::f64::consts::PI), 3.0 / 2.0)), [INFO] [stdout] 97 + / (sigma * sigma * sigma * f64::powf(2f64 * std::f64::consts::PI, 3.0 / 2.0)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/blur.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 69 | return r; [INFO] [stdout] | -------- any code following this expression is unreachable [INFO] [stdout] 70 | / if r.is_nan() { [INFO] [stdout] 71 | | return 0f64; [INFO] [stdout] 72 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/grid.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 131 | return (); [INFO] [stdout] | --------- any code following this expression is unreachable [INFO] [stdout] 132 | // iterate over any region which has been touched. [INFO] [stdout] 133 | / if let Some(low) = self.low { [INFO] [stdout] 134 | | if let Some(high) = self.high { [INFO] [stdout] 135 | | for i in low[0]..=high[0] { [INFO] [stdout] 136 | | for j in low[1]..=high[1] { [INFO] [stdout] ... | [INFO] [stdout] 143 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GridLike` [INFO] [stdout] --> src/bfactor.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::grid::{Grid, GridLike}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/bfactor.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | let mut q = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back` [INFO] [stdout] --> src/bfactor.rs:188:54 [INFO] [stdout] | [INFO] [stdout] 188 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_back` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut q = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:237:13 [INFO] [stdout] | [INFO] [stdout] 237 | let mut bi = BoundingBoxIter::new(bb.lower, bb.upper); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:268:26 [INFO] [stdout] | [INFO] [stdout] 268 | fn likelihood(&self, obs: &RawMap) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bi` [INFO] [stdout] --> src/bfactor.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tot` is never read [INFO] [stdout] --> src/bfactor.rs:280:17 [INFO] [stdout] | [INFO] [stdout] 280 | let mut tot = 0f64; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_mean` [INFO] [stdout] --> src/bfactor.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let old_mean = self.mean; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_mean` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `back` [INFO] [stdout] --> src/bfactor.rs:277:54 [INFO] [stdout] | [INFO] [stdout] 277 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_back` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sigma` [INFO] [stdout] --> src/bfactor.rs:277:65 [INFO] [stdout] | [INFO] [stdout] 277 | fn maximise(&mut self, data: &Map, obs: &RawMap, back: f64, sigma: f64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sigma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bfactor.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [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/bfactor.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [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/bfactor.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | let mut bi = BoundingBoxIter::new(dens.low.unwrap(), dens.high.unwrap()); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bfactor.rs:324:20 [INFO] [stdout] | [INFO] [stdout] 324 | fn mean(&self, data: &Map, obs: &RawMap) -> Point { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:324:32 [INFO] [stdout] | [INFO] [stdout] 324 | fn mean(&self, data: &Map, obs: &RawMap) -> Point { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obs` [INFO] [stdout] --> src/bfactor.rs:327:26 [INFO] [stdout] | [INFO] [stdout] 327 | fn likelihood(&self, obs: &RawMap) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/bfactor.rs:418:35 [INFO] [stdout] | [INFO] [stdout] 418 | fn gaussian_likelihood(&self, idx: usize) -> f64 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/bfactor.rs:496:9 [INFO] [stdout] | [INFO] [stdout] 496 | ret = ret.max(pz); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `likelihood` is never used [INFO] [stdout] --> src/bfactor.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 90 | trait EM { [INFO] [stdout] | -- method in this trait [INFO] [stdout] ... [INFO] [stdout] 94 | fn likelihood(&self, obs: &RawMap) -> f64; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_mean` is never used [INFO] [stdout] --> src/bfactor.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl UniformComp { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | fn set_mean(&mut self, mean: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `likelihood`, `gaussian_likelihood`, and `noise_likelihood` are never used [INFO] [stdout] --> src/bfactor.rs:415:8 [INFO] [stdout] | [INFO] [stdout] 339 | impl Mixture { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 415 | fn likelihood(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | fn gaussian_likelihood(&self, idx: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 421 | fn noise_likelihood(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `width` is never read [INFO] [stdout] --> src/coverage.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct GridCoverageMap { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 186 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.85s [INFO] running `Command { std: "docker" "inspect" "64152cb9b8d72be35917d1eb0ac934a10127455c686c4fa59c0e260a6f72c75c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64152cb9b8d72be35917d1eb0ac934a10127455c686c4fa59c0e260a6f72c75c", kill_on_drop: false }` [INFO] [stdout] 64152cb9b8d72be35917d1eb0ac934a10127455c686c4fa59c0e260a6f72c75c