[INFO] cloning repository https://github.com/mukaschultze/fluids [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mukaschultze/fluids" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmukaschultze%2Ffluids", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmukaschultze%2Ffluids'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 84ba807e97331e81ca268ecdea928fefbbd0f01e [INFO] building mukaschultze/fluids against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmukaschultze%2Ffluids" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mukaschultze/fluids 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 git repo https://github.com/mukaschultze/fluids [INFO] finished tweaking git repo https://github.com/mukaschultze/fluids [INFO] tweaked toml for git repo https://github.com/mukaschultze/fluids written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mukaschultze/fluids 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded png v0.15.1 [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] a00ddb9e52a63c9c1b9d7b90f29235f03195f32338341ed1fee1d8234cf3633f [INFO] running `Command { std: "docker" "start" "-a" "a00ddb9e52a63c9c1b9d7b90f29235f03195f32338341ed1fee1d8234cf3633f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a00ddb9e52a63c9c1b9d7b90f29235f03195f32338341ed1fee1d8234cf3633f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a00ddb9e52a63c9c1b9d7b90f29235f03195f32338341ed1fee1d8234cf3633f", kill_on_drop: false }` [INFO] [stdout] a00ddb9e52a63c9c1b9d7b90f29235f03195f32338341ed1fee1d8234cf3633f [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] 073c58d6a8d986a0f710bf29571b10195d2fccd722fc714cad797546e5e2d831 [INFO] running `Command { std: "docker" "start" "-a" "073c58d6a8d986a0f710bf29571b10195d2fccd722fc714cad797546e5e2d831", kill_on_drop: false }` [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling png v0.15.1 [INFO] [stderr] Compiling variable-density v0.1.0 (/opt/rustwide/workdir/variable-density) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:459:22 [INFO] [stdout] | [INFO] [stdout] 459 | if self.cell[(rx + ry * self.w)] != CELL_FLUID { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 459 - if self.cell[(rx + ry * self.w)] != CELL_FLUID { [INFO] [stdout] 459 + if self.cell[rx + ry * self.w] != CELL_FLUID { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:462:30 [INFO] [stdout] | [INFO] [stdout] 462 | bodies[self.body[(rx + ry * self.w)] as usize].closest_surface_point(x, y); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 462 - bodies[self.body[(rx + ry * self.w)] as usize].closest_surface_point(x, y); [INFO] [stdout] 462 + bodies[self.body[rx + ry * self.w] as usize].closest_surface_point(x, y); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:504:38 [INFO] [stdout] | [INFO] [stdout] 504 | if f64::abs(self.src[(x + y * self.w)]) < f64::abs(vi) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 504 - if f64::abs(self.src[(x + y * self.w)]) < f64::abs(vi) { [INFO] [stdout] 504 + if f64::abs(self.src[x + y * self.w]) < f64::abs(vi) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:505:30 [INFO] [stdout] | [INFO] [stdout] 505 | self.src[(x + y * self.w)] = vi; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 505 - self.src[(x + y * self.w)] = vi; [INFO] [stdout] 505 + self.src[x + y * self.w] = vi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:550:34 [INFO] [stdout] | [INFO] [stdout] 550 | self.phi[(idxp)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 550 - self.phi[(idxp)], [INFO] [stdout] 550 + self.phi[idxp], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:551:34 [INFO] [stdout] | [INFO] [stdout] 551 | self.phi[(idxp + 1)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 551 - self.phi[(idxp + 1)], [INFO] [stdout] 551 + self.phi[idxp + 1], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:552:34 [INFO] [stdout] | [INFO] [stdout] 552 | self.phi[(idxp + self.w + 1)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 552 - self.phi[(idxp + self.w + 1)], [INFO] [stdout] 552 + self.phi[idxp + self.w + 1], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:553:34 [INFO] [stdout] | [INFO] [stdout] 553 | self.phi[(idxp + self.w + 2)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 553 - self.phi[(idxp + self.w + 2)], [INFO] [stdout] 553 + self.phi[idxp + self.w + 2], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> variable-density/src/main.rs:1269:9 [INFO] [stdout] | [INFO] [stdout] 1269 | let mut bodies: Vec> = Vec::new(); [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: function `rotate` is never used [INFO] [stdout] --> variable-density/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn rotate(x: &mut f64, y: &mut f64, phi: f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `scale_x` and `scale_y` are never read [INFO] [stdout] --> variable-density/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 71 | struct SolidBodyFields { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | pub scale_x: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 75 | pub scale_y: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> variable-density/src/main.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl SolidBodyFields { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 83 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `global_to_local`, `local_to_global`, and `velocity` are never used [INFO] [stdout] --> variable-density/src/main.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 106 | trait SolidBody { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 111 | fn global_to_local(&self, x: &mut f64, y: &mut f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn local_to_global(&self, x: &mut f64, y: &mut f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn velocity(&self, vx: &mut f64, vy: &mut f64, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolidBox` is never constructed [INFO] [stdout] --> variable-density/src/main.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | struct SolidBox { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> variable-density/src/main.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl SolidBox { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 157 | pub fn new(fields: SolidBodyFields) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolidSphere` is never constructed [INFO] [stdout] --> variable-density/src/main.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | struct SolidSphere { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> variable-density/src/main.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl SolidSphere { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 226 | pub fn new(fields: SolidBodyFields) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `src` is never used [INFO] [stdout] --> variable-density/src/main.rs:361:8 [INFO] [stdout] | [INFO] [stdout] 309 | impl FluidQuantity { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 361 | fn src(&self) -> &Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scaled_add` is never used [INFO] [stdout] --> variable-density/src/main.rs:946:8 [INFO] [stdout] | [INFO] [stdout] 682 | impl FluidSolver { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 946 | fn scaled_add(&self, dst: &mut Vec, a: &Vec, b: &Vec, s: f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 3.81s [INFO] running `Command { std: "docker" "inspect" "073c58d6a8d986a0f710bf29571b10195d2fccd722fc714cad797546e5e2d831", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "073c58d6a8d986a0f710bf29571b10195d2fccd722fc714cad797546e5e2d831", kill_on_drop: false }` [INFO] [stdout] 073c58d6a8d986a0f710bf29571b10195d2fccd722fc714cad797546e5e2d831 [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] b8c1e5438efa7268fdf0e8531318f260601733fab1a0150402cd0d36724ac52d [INFO] running `Command { std: "docker" "start" "-a" "b8c1e5438efa7268fdf0e8531318f260601733fab1a0150402cd0d36724ac52d", kill_on_drop: false }` [INFO] [stderr] Compiling variable-density v0.1.0 (/opt/rustwide/workdir/variable-density) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:459:22 [INFO] [stdout] | [INFO] [stdout] 459 | if self.cell[(rx + ry * self.w)] != CELL_FLUID { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 459 - if self.cell[(rx + ry * self.w)] != CELL_FLUID { [INFO] [stdout] 459 + if self.cell[rx + ry * self.w] != CELL_FLUID { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:462:30 [INFO] [stdout] | [INFO] [stdout] 462 | bodies[self.body[(rx + ry * self.w)] as usize].closest_surface_point(x, y); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 462 - bodies[self.body[(rx + ry * self.w)] as usize].closest_surface_point(x, y); [INFO] [stdout] 462 + bodies[self.body[rx + ry * self.w] as usize].closest_surface_point(x, y); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:504:38 [INFO] [stdout] | [INFO] [stdout] 504 | if f64::abs(self.src[(x + y * self.w)]) < f64::abs(vi) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 504 - if f64::abs(self.src[(x + y * self.w)]) < f64::abs(vi) { [INFO] [stdout] 504 + if f64::abs(self.src[x + y * self.w]) < f64::abs(vi) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:505:30 [INFO] [stdout] | [INFO] [stdout] 505 | self.src[(x + y * self.w)] = vi; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 505 - self.src[(x + y * self.w)] = vi; [INFO] [stdout] 505 + self.src[x + y * self.w] = vi; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:550:34 [INFO] [stdout] | [INFO] [stdout] 550 | self.phi[(idxp)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 550 - self.phi[(idxp)], [INFO] [stdout] 550 + self.phi[idxp], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:551:34 [INFO] [stdout] | [INFO] [stdout] 551 | self.phi[(idxp + 1)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 551 - self.phi[(idxp + 1)], [INFO] [stdout] 551 + self.phi[idxp + 1], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:552:34 [INFO] [stdout] | [INFO] [stdout] 552 | self.phi[(idxp + self.w + 1)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 552 - self.phi[(idxp + self.w + 1)], [INFO] [stdout] 552 + self.phi[idxp + self.w + 1], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> variable-density/src/main.rs:553:34 [INFO] [stdout] | [INFO] [stdout] 553 | self.phi[(idxp + self.w + 2)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 553 - self.phi[(idxp + self.w + 2)], [INFO] [stdout] 553 + self.phi[idxp + self.w + 2], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> variable-density/src/main.rs:1269:9 [INFO] [stdout] | [INFO] [stdout] 1269 | let mut bodies: Vec> = Vec::new(); [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: function `rotate` is never used [INFO] [stdout] --> variable-density/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn rotate(x: &mut f64, y: &mut f64, phi: f64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `scale_x` and `scale_y` are never read [INFO] [stdout] --> variable-density/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 71 | struct SolidBodyFields { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | pub scale_x: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 75 | pub scale_y: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> variable-density/src/main.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 82 | impl SolidBodyFields { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 83 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `global_to_local`, `local_to_global`, and `velocity` are never used [INFO] [stdout] --> variable-density/src/main.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 106 | trait SolidBody { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 111 | fn global_to_local(&self, x: &mut f64, y: &mut f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn local_to_global(&self, x: &mut f64, y: &mut f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn velocity(&self, vx: &mut f64, vy: &mut f64, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolidBox` is never constructed [INFO] [stdout] --> variable-density/src/main.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | struct SolidBox { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> variable-density/src/main.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl SolidBox { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 157 | pub fn new(fields: SolidBodyFields) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolidSphere` is never constructed [INFO] [stdout] --> variable-density/src/main.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | struct SolidSphere { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> variable-density/src/main.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl SolidSphere { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 226 | pub fn new(fields: SolidBodyFields) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `src` is never used [INFO] [stdout] --> variable-density/src/main.rs:361:8 [INFO] [stdout] | [INFO] [stdout] 309 | impl FluidQuantity { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 361 | fn src(&self) -> &Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scaled_add` is never used [INFO] [stdout] --> variable-density/src/main.rs:946:8 [INFO] [stdout] | [INFO] [stdout] 682 | impl FluidSolver { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 946 | fn scaled_add(&self, dst: &mut Vec, a: &Vec, b: &Vec, s: f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 0.47s [INFO] running `Command { std: "docker" "inspect" "b8c1e5438efa7268fdf0e8531318f260601733fab1a0150402cd0d36724ac52d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8c1e5438efa7268fdf0e8531318f260601733fab1a0150402cd0d36724ac52d", kill_on_drop: false }` [INFO] [stdout] b8c1e5438efa7268fdf0e8531318f260601733fab1a0150402cd0d36724ac52d