[INFO] cloning repository https://github.com/siddha20/rs-phys [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/siddha20/rs-phys" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsiddha20%2Frs-phys", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsiddha20%2Frs-phys'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f00df25664ba9ee4ee4a62aa3fbdba7f7224593 [INFO] building siddha20/rs-phys 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%2Fsiddha20%2Frs-phys" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/siddha20/rs-phys 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/siddha20/rs-phys [INFO] finished tweaking git repo https://github.com/siddha20/rs-phys [INFO] tweaked toml for git repo https://github.com/siddha20/rs-phys written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/siddha20/rs-phys 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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f913599b293963b5a1ef2bce42142ab37cc2f8f1dd18e8458c043a34b9bd395 [INFO] running `Command { std: "docker" "start" "-a" "8f913599b293963b5a1ef2bce42142ab37cc2f8f1dd18e8458c043a34b9bd395", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f913599b293963b5a1ef2bce42142ab37cc2f8f1dd18e8458c043a34b9bd395", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f913599b293963b5a1ef2bce42142ab37cc2f8f1dd18e8458c043a34b9bd395", kill_on_drop: false }` [INFO] [stdout] 8f913599b293963b5a1ef2bce42142ab37cc2f8f1dd18e8458c043a34b9bd395 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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] 5508961d4d40477a79afae383ce633a1c1283a01aca1db3378a01a5eba106a27 [INFO] running `Command { std: "docker" "start" "-a" "5508961d4d40477a79afae383ce633a1c1283a01aca1db3378a01a5eba106a27", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling version-compare v0.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling matrixmultiply v0.3.2 [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stderr] Compiling num-complex v0.4.2 [INFO] [stderr] Compiling ndarray v0.15.6 [INFO] [stderr] Compiling engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `func_t_x_v` should have an upper camel case name [INFO] [stdout] --> src/driver/physics.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type func_t_x_v = fn(t: f64, x: f64, v: f64) -> f64; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `FuncTXV` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `func_t_ent` should have an upper camel case name [INFO] [stdout] --> src/driver/physics.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type func_t_ent = fn(t: f64, ent: &Entity) -> Array1::; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `FuncTEnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fa_ent`, `fa`, `fv_ent`, `fv`, `rk4_2d`, and `rk4` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fv, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | fa, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | rk4, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | fv_ent, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | fa_ent, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | rk4_2d [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/driver/physics.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn fv(t: f64, x: f64, v: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/driver/physics.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn fv(t: f64, x: f64, v: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/driver/physics.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn fa(t: f64, x:f64, v: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/driver/physics.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn fa(t: f64, x:f64, v: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/driver/physics.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn fv_ent(t: f64, ent: &Entity) -> Array1:: { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/driver/physics.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn fa_ent(t: f64, ent: &Entity) -> Array1:: { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ent` [INFO] [stdout] --> src/driver/world.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ent: Entity; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/painter.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut event_pump = sdl_context.event_pump().unwrap(); [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/painter.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut canvas = window.into_canvas().build().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Driver` is never constructed [INFO] [stdout] --> src/driver.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Driver { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `accel` is never read [INFO] [stdout] --> src/driver/entity.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Entity { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub accel: Array1:: [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entity` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/driver/entity.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Entity { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn create(rec: Rec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `func_t_x_v` is never used [INFO] [stdout] --> src/driver/physics.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type func_t_x_v = fn(t: f64, x: f64, v: f64) -> f64; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fv` is never used [INFO] [stdout] --> src/driver/physics.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn fv(t: f64, x: f64, v: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fa` is never used [INFO] [stdout] --> src/driver/physics.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn fa(t: f64, x:f64, v: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rk4` is never used [INFO] [stdout] --> src/driver/physics.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn rk4(dt: f64, t: f64, x: f64, v: f64, fv: func_t_x_v, fa: func_t_x_v) -> (f64, f64, f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/driver/world.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl World { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sdl_context`, `video_subsystem`, and `canvas_width` are never read [INFO] [stdout] --> src/painter.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Painter { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 15 | sdl_context: Sdl, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | video_subsystem: VideoSubsystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | canvas_width: u32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `test` is never used [INFO] [stdout] --> src/painter.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Painter { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn test(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.24s [INFO] running `Command { std: "docker" "inspect" "5508961d4d40477a79afae383ce633a1c1283a01aca1db3378a01a5eba106a27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5508961d4d40477a79afae383ce633a1c1283a01aca1db3378a01a5eba106a27", kill_on_drop: false }` [INFO] [stdout] 5508961d4d40477a79afae383ce633a1c1283a01aca1db3378a01a5eba106a27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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] d466d1ec7a8e5f5d46823c1bf1a65904873575b72a2b8a8571a5a6e39a42e95b [INFO] running `Command { std: "docker" "start" "-a" "d466d1ec7a8e5f5d46823c1bf1a65904873575b72a2b8a8571a5a6e39a42e95b", kill_on_drop: false }` [INFO] [stderr] Compiling engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `func_t_x_v` should have an upper camel case name [INFO] [stdout] --> src/driver/physics.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type func_t_x_v = fn(t: f64, x: f64, v: f64) -> f64; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `FuncTXV` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `func_t_ent` should have an upper camel case name [INFO] [stdout] --> src/driver/physics.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type func_t_ent = fn(t: f64, ent: &Entity) -> Array1::; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `FuncTEnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fa_ent`, `fa`, `fv_ent`, `fv`, `rk4_2d`, and `rk4` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fv, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | fa, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | rk4, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | fv_ent, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | fa_ent, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | rk4_2d [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/driver/physics.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn fv(t: f64, x: f64, v: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/driver/physics.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn fv(t: f64, x: f64, v: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/driver/physics.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn fa(t: f64, x:f64, v: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/driver/physics.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn fa(t: f64, x:f64, v: f64) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/driver/physics.rs:45:15 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn fv_ent(t: f64, ent: &Entity) -> Array1:: { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/driver/physics.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn fa_ent(t: f64, ent: &Entity) -> Array1:: { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ent` [INFO] [stdout] --> src/driver/world.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let mut ent: Entity; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/painter.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut event_pump = sdl_context.event_pump().unwrap(); [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/painter.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut canvas = window.into_canvas().build().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Driver` is never constructed [INFO] [stdout] --> src/driver.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Driver { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `accel` is never read [INFO] [stdout] --> src/driver/entity.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Entity { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub accel: Array1:: [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entity` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/driver/entity.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Entity { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn create(rec: Rec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `func_t_x_v` is never used [INFO] [stdout] --> src/driver/physics.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type func_t_x_v = fn(t: f64, x: f64, v: f64) -> f64; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fv` is never used [INFO] [stdout] --> src/driver/physics.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn fv(t: f64, x: f64, v: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fa` is never used [INFO] [stdout] --> src/driver/physics.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn fa(t: f64, x:f64, v: f64) -> f64 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rk4` is never used [INFO] [stdout] --> src/driver/physics.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn rk4(dt: f64, t: f64, x: f64, v: f64, fv: func_t_x_v, fa: func_t_x_v) -> (f64, f64, f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/driver/world.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl World { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sdl_context`, `video_subsystem`, and `canvas_width` are never read [INFO] [stdout] --> src/painter.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Painter { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 15 | sdl_context: Sdl, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | video_subsystem: VideoSubsystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | canvas_width: u32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `test` is never used [INFO] [stdout] --> src/painter.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Painter { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn test(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "d466d1ec7a8e5f5d46823c1bf1a65904873575b72a2b8a8571a5a6e39a42e95b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d466d1ec7a8e5f5d46823c1bf1a65904873575b72a2b8a8571a5a6e39a42e95b", kill_on_drop: false }` [INFO] [stdout] d466d1ec7a8e5f5d46823c1bf1a65904873575b72a2b8a8571a5a6e39a42e95b