[INFO] cloning repository https://github.com/littleTitan/3d-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/littleTitan/3d-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FlittleTitan%2F3d-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FlittleTitan%2F3d-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e33918da69f906a8ff65f5a97e2c2f0cb647eee [INFO] checking littleTitan/3d-engine against master#da897dfb6daa268a965d2d73620316ba56020a19 for pr-76219 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FlittleTitan%2F3d-engine" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/littleTitan/3d-engine on toolchain da897dfb6daa268a965d2d73620316ba56020a19 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+da897dfb6daa268a965d2d73620316ba56020a19" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/littleTitan/3d-engine [INFO] finished tweaking git repo https://github.com/littleTitan/3d-engine [INFO] tweaked toml for git repo https://github.com/littleTitan/3d-engine written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/littleTitan/3d-engine already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+da897dfb6daa268a965d2d73620316ba56020a19" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+da897dfb6daa268a965d2d73620316ba56020a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f7aca367224343892172d248dbc10b9a5554efdb6a526454d9b931b3652df80 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8f7aca367224343892172d248dbc10b9a5554efdb6a526454d9b931b3652df80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f7aca367224343892172d248dbc10b9a5554efdb6a526454d9b931b3652df80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f7aca367224343892172d248dbc10b9a5554efdb6a526454d9b931b3652df80", kill_on_drop: false }` [INFO] [stdout] 8f7aca367224343892172d248dbc10b9a5554efdb6a526454d9b931b3652df80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+da897dfb6daa268a965d2d73620316ba56020a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 482e98b42adb998f79c2aa910aaa6bbf48c1ddce937b20c864db8d404df86637 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "482e98b42adb998f79c2aa910aaa6bbf48c1ddce937b20c864db8d404df86637", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling gimli v0.22.0 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling object v0.20.0 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling pulldown-cmark v0.2.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Checking xi-unicode v0.2.1 [INFO] [stderr] Compiling bytecount v0.4.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking mint v0.5.5 [INFO] [stderr] Checking claxon v0.4.2 [INFO] [stderr] Checking hound v3.4.0 [INFO] [stderr] Checking podio v0.1.7 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling bzip2-sys v0.1.9+1.0.8 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling miniz_oxide v0.4.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking arrayvec v0.4.12 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking ogg v0.7.0 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking rand_pcg v0.1.2 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Checking lewton v0.9.4 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking slice-deque v0.3.0 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Compiling addr2line v0.13.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.1.0 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Compiling glutin_glx_sys v0.1.6 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking cpal v0.8.2 [INFO] [stderr] Checking minimp3 v0.3.5 [INFO] [stderr] Compiling backtrace v0.3.50 [INFO] [stderr] Checking sid v0.5.2 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking alga v0.9.3 [INFO] [stderr] Checking zip v0.5.6 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking glyph_brush_layout v0.1.9 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking twox-hash v1.5.0 [INFO] [stderr] Checking nalgebra v0.18.1 [INFO] [stderr] Checking gilrs-core v0.2.6 [INFO] [stderr] Checking glyph_brush v0.6.3 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling smart-default v0.5.2 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking gilrs v0.7.4 [INFO] [stderr] Checking glyph_brush v0.5.4 [INFO] [stderr] Checking euclid v0.19.9 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking lyon_geom v0.12.7 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.5 [INFO] [stderr] Checking lyon_path v0.13.2 [INFO] [stderr] Checking lyon_algorithms v0.13.4 [INFO] [stderr] Checking lyon_tessellation v0.13.5 [INFO] [stderr] Checking lyon v0.13.5 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking winit v0.19.5 [INFO] [stderr] Compiling cargo_metadata v0.6.4 [INFO] [stderr] Compiling skeptic v0.13.4 [INFO] [stderr] Checking glutin v0.20.1 [INFO] [stderr] Checking gfx_window_glutin v0.30.0 [INFO] [stderr] Compiling ggez v0.5.1 [INFO] [stderr] Checking rodio v0.9.0 [INFO] [stderr] Checking my-engine v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/matrix3x3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | let a0_0 = ((e * i) - (f * h)); let b1_0 = -((d * i) - (f * g)); let c2_0 = ((d * h) - (e * g)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:91:87 [INFO] [stdout] | [INFO] [stdout] 91 | let a0_0 = ((e * i) - (f * h)); let b1_0 = -((d * i) - (f * g)); let c2_0 = ((d * h) - (e * g)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:92:54 [INFO] [stdout] | [INFO] [stdout] 92 | let d0_1 = -((b * i) - (c * h)); let e1_1 = ((a * i) - (c * g)); let f2_1 = -((a * h) - (b * g)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | let g0_2 = ((b * f) - (c * e)); let h1_2 = -((a * f) - (c * d)); let i2_2 = ((a * e) - (b * d)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:93:87 [INFO] [stdout] | [INFO] [stdout] 93 | let g0_2 = ((b * f) - (c * e)); let h1_2 = -((a * f) - (c * d)); let i2_2 = ((a * e) - (b * d)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/triangle.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | if (self.verticies.0.x > x_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:129:16 [INFO] [stdout] | [INFO] [stdout] 129 | if (self.verticies.1.x > x_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | if (self.verticies.2.x > x_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | if (self.verticies.1.x > x_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:187:16 [INFO] [stdout] | [INFO] [stdout] 187 | if (self.verticies.2.x > x_bound){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | if (self.verticies.2.x > x_bound){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | if (self.verticies.0.x < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:234:16 [INFO] [stdout] | [INFO] [stdout] 234 | if (self.verticies.1.x < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | if (self.verticies.2.x < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | if (self.verticies.1.x < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:293:16 [INFO] [stdout] | [INFO] [stdout] 293 | if (self.verticies.2.x < 0.0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | if (self.verticies.2.x < 0.0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | if (self.verticies.0.y > y_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:340:16 [INFO] [stdout] | [INFO] [stdout] 340 | if (self.verticies.1.y > y_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | if (self.verticies.2.y > y_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:390:12 [INFO] [stdout] | [INFO] [stdout] 390 | if (self.verticies.1.y > y_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:398:16 [INFO] [stdout] | [INFO] [stdout] 398 | if (self.verticies.2.y > y_bound){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:422:12 [INFO] [stdout] | [INFO] [stdout] 422 | if (self.verticies.2.y > y_bound){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:444:12 [INFO] [stdout] | [INFO] [stdout] 444 | if (self.verticies.0.y < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:445:16 [INFO] [stdout] | [INFO] [stdout] 445 | if (self.verticies.1.y < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:472:20 [INFO] [stdout] | [INFO] [stdout] 472 | if (self.verticies.2.y < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:497:12 [INFO] [stdout] | [INFO] [stdout] 497 | if (self.verticies.1.y < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:505:16 [INFO] [stdout] | [INFO] [stdout] 505 | if (self.verticies.2.y < 0.0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:529:12 [INFO] [stdout] | [INFO] [stdout] 529 | if (self.verticies.2.y < 0.0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/matrix3x3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | let a0_0 = ((e * i) - (f * h)); let b1_0 = -((d * i) - (f * g)); let c2_0 = ((d * h) - (e * g)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:91:87 [INFO] [stdout] | [INFO] [stdout] 91 | let a0_0 = ((e * i) - (f * h)); let b1_0 = -((d * i) - (f * g)); let c2_0 = ((d * h) - (e * g)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:92:54 [INFO] [stdout] | [INFO] [stdout] 92 | let d0_1 = -((b * i) - (c * h)); let e1_1 = ((a * i) - (c * g)); let f2_1 = -((a * h) - (b * g)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | let g0_2 = ((b * f) - (c * e)); let h1_2 = -((a * f) - (c * d)); let i2_2 = ((a * e) - (b * d)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/matrix3x3.rs:93:87 [INFO] [stdout] | [INFO] [stdout] 93 | let g0_2 = ((b * f) - (c * e)); let h1_2 = -((a * f) - (c * d)); let i2_2 = ((a * e) - (b * d)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/triangle.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | if (self.verticies.0.x > x_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:129:16 [INFO] [stdout] | [INFO] [stdout] 129 | if (self.verticies.1.x > x_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | if (self.verticies.2.x > x_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | if (self.verticies.1.x > x_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:187:16 [INFO] [stdout] | [INFO] [stdout] 187 | if (self.verticies.2.x > x_bound){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | if (self.verticies.2.x > x_bound){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | if (self.verticies.0.x < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:234:16 [INFO] [stdout] | [INFO] [stdout] 234 | if (self.verticies.1.x < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | if (self.verticies.2.x < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | if (self.verticies.1.x < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:293:16 [INFO] [stdout] | [INFO] [stdout] 293 | if (self.verticies.2.x < 0.0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 317 | if (self.verticies.2.x < 0.0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | if (self.verticies.0.y > y_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:340:16 [INFO] [stdout] | [INFO] [stdout] 340 | if (self.verticies.1.y > y_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:365:20 [INFO] [stdout] | [INFO] [stdout] 365 | if (self.verticies.2.y > y_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:390:12 [INFO] [stdout] | [INFO] [stdout] 390 | if (self.verticies.1.y > y_bound) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:398:16 [INFO] [stdout] | [INFO] [stdout] 398 | if (self.verticies.2.y > y_bound){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:422:12 [INFO] [stdout] | [INFO] [stdout] 422 | if (self.verticies.2.y > y_bound){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:444:12 [INFO] [stdout] | [INFO] [stdout] 444 | if (self.verticies.0.y < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:445:16 [INFO] [stdout] | [INFO] [stdout] 445 | if (self.verticies.1.y < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:472:20 [INFO] [stdout] | [INFO] [stdout] 472 | if (self.verticies.2.y < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:497:12 [INFO] [stdout] | [INFO] [stdout] 497 | if (self.verticies.1.y < 0.0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:505:16 [INFO] [stdout] | [INFO] [stdout] 505 | if (self.verticies.2.y < 0.0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/triangle.rs:529:12 [INFO] [stdout] | [INFO] [stdout] 529 | if (self.verticies.2.y < 0.0){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tris` is never read [INFO] [stdout] --> src/main.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut tris: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_aspect_ratio` [INFO] [stdout] --> src/camera.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let f_aspect_ratio: f32 = size.1 / size.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_f_aspect_ratio` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_fov_rad` [INFO] [stdout] --> src/camera.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let f_fov_rad = 1.0/ f32::tan((f_fov * 0.5)/(180.0 * 3.14159)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_f_fov_rad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_far` [INFO] [stdout] --> src/camera.rs:19:46 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new (pos: Vec3d, rotation: Vec3d, f_far: f32, f_near: f32, f_fov: f32, ctx: &ggez::Context) -> Camera { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_f_far` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_near` [INFO] [stdout] --> src/camera.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new (pos: Vec3d, rotation: Vec3d, f_far: f32, f_near: f32, f_fov: f32, ctx: &ggez::Context) -> Camera { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_f_near` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/mesh.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(ctx: &mut ggez::Context, camera: Camera) -> ggez::GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/mesh.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let contents = String::from_utf8_lossy(&header_buf[..header]); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let mut camera: Camera = Camera::new(Vec3d::new(0.0, 0.0, -6.0), Vec3d::new(0.0, 0.0, 0.0), 10000.0, 0.1, 130.0, ctx); [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/camera.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let mut v_f = R.clone() * Vec3d::new(0.0, 0.0, 1.0); [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/camera.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut v_v = R.clone() * rotated_real; [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/camera.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let mut inverse_mat = mat.calculate_inverse(); [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/mesh.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let mut transformed_mesh: Mesh = self.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_vector` [INFO] [stdout] --> src/matrix3x3.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn multiply_vector(&mut self, i: &Vec3d) -> Vec3d { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x_axis_rotation` [INFO] [stdout] --> src/vec3d.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn x_axis_rotation(&mut self, r: f32, origin_y: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y_axis_rotation` [INFO] [stdout] --> src/vec3d.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn y_axis_rotation(&mut self, r: f32, origin_x: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z_axis_rotation` [INFO] [stdout] --> src/vec3d.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn z_axis_rotation (&mut self, r: f32, origin_x: f32, origin_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x_axis_rotation` [INFO] [stdout] --> src/triangle.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn x_axis_rotation(&mut self, r: f32, origin_y: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y_axis_rotation` [INFO] [stdout] --> src/triangle.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn y_axis_rotation(&mut self, r: f32, origin_x: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z_axis_rotation` [INFO] [stdout] --> src/triangle.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn z_axis_rotation(&mut self, r: f32, origin_x: f32, origin_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_x` [INFO] [stdout] --> src/triangle.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn increment_x(&mut self, x: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_y` [INFO] [stdout] --> src/triangle.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn increment_y(&mut self, y: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_z` [INFO] [stdout] --> src/triangle.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn increment_z(&mut self, z: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clip` [INFO] [stdout] --> src/triangle.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn clip (&mut self, x_bound: f32, y_bound: f32) -> Vec{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `form_cube` [INFO] [stdout] --> src/mesh.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn form_cube(&mut self){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x_axis_rotation` [INFO] [stdout] --> src/mesh.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn x_axis_rotation(&mut self, r: f32, origin_y: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y_axis_rotation` [INFO] [stdout] --> src/mesh.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn y_axis_rotation(&mut self, r: f32, origin_x: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z_axis_rotation` [INFO] [stdout] --> src/mesh.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn z_axis_rotation(&mut self, r: f32, origin_x: f32, origin_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_x` [INFO] [stdout] --> src/mesh.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn increment_x(&mut self, x: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_y` [INFO] [stdout] --> src/mesh.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn increment_y(&mut self, y: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_z` [INFO] [stdout] --> src/mesh.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn increment_z(&mut self, z: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `painters_algorithm` [INFO] [stdout] --> src/mesh.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn painters_algorithm(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mesh_relative_camera` [INFO] [stdout] --> src/mesh.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn get_mesh_relative_camera(&mut self) -> Mesh{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_x` should have a snake case name [INFO] [stdout] --> src/camera.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | ... let R_x = Matrix3x3{m:[[1.0, 0.0, 0.0], [0.0, f32::cos(rotation.x), f32::sin(rotation.x)], [0.0, -f32::sin(rotation.x), f32::cos(ro... [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `r_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_y` should have a snake case name [INFO] [stdout] --> src/camera.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | ... let R_y = Matrix3x3{m:[[f32::cos(rotation.y), 0.0, f32::sin(rotation.y)], [0.0, 1.0, 0.0], [-f32::sin(rotation.y), 0.0, f32::cos(ro... [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `r_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tris` is never read [INFO] [stdout] --> src/main.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut tris: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/camera.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let R = R_x.clone() * R_y.clone(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_aspect_ratio` [INFO] [stdout] --> src/camera.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let f_aspect_ratio: f32 = size.1 / size.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_f_aspect_ratio` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_fov_rad` [INFO] [stdout] --> src/camera.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let f_fov_rad = 1.0/ f32::tan((f_fov * 0.5)/(180.0 * 3.14159)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_f_fov_rad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_far` [INFO] [stdout] --> src/camera.rs:19:46 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new (pos: Vec3d, rotation: Vec3d, f_far: f32, f_near: f32, f_fov: f32, ctx: &ggez::Context) -> Camera { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_f_far` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_near` [INFO] [stdout] --> src/camera.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new (pos: Vec3d, rotation: Vec3d, f_far: f32, f_near: f32, f_fov: f32, ctx: &ggez::Context) -> Camera { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_f_near` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/mesh.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(ctx: &mut ggez::Context, camera: Camera) -> ggez::GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/mesh.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let contents = String::from_utf8_lossy(&header_buf[..header]); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let mut camera: Camera = Camera::new(Vec3d::new(0.0, 0.0, -6.0), Vec3d::new(0.0, 0.0, 0.0), 10000.0, 0.1, 130.0, ctx); [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/camera.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let mut v_f = R.clone() * Vec3d::new(0.0, 0.0, 1.0); [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/camera.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut v_v = R.clone() * rotated_real; [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/camera.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let mut inverse_mat = mat.calculate_inverse(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 67 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mesh.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let mut transformed_mesh: Mesh = self.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_vector` [INFO] [stdout] --> src/matrix3x3.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn multiply_vector(&mut self, i: &Vec3d) -> Vec3d { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x_axis_rotation` [INFO] [stdout] --> src/vec3d.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn x_axis_rotation(&mut self, r: f32, origin_y: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y_axis_rotation` [INFO] [stdout] --> src/vec3d.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn y_axis_rotation(&mut self, r: f32, origin_x: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z_axis_rotation` [INFO] [stdout] --> src/vec3d.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn z_axis_rotation (&mut self, r: f32, origin_x: f32, origin_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x_axis_rotation` [INFO] [stdout] --> src/triangle.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn x_axis_rotation(&mut self, r: f32, origin_y: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y_axis_rotation` [INFO] [stdout] --> src/triangle.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn y_axis_rotation(&mut self, r: f32, origin_x: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z_axis_rotation` [INFO] [stdout] --> src/triangle.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn z_axis_rotation(&mut self, r: f32, origin_x: f32, origin_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_x` [INFO] [stdout] --> src/triangle.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn increment_x(&mut self, x: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_y` [INFO] [stdout] --> src/triangle.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn increment_y(&mut self, y: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_z` [INFO] [stdout] --> src/triangle.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn increment_z(&mut self, z: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clip` [INFO] [stdout] --> src/triangle.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn clip (&mut self, x_bound: f32, y_bound: f32) -> Vec{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `form_cube` [INFO] [stdout] --> src/mesh.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn form_cube(&mut self){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x_axis_rotation` [INFO] [stdout] --> src/mesh.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn x_axis_rotation(&mut self, r: f32, origin_y: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y_axis_rotation` [INFO] [stdout] --> src/mesh.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn y_axis_rotation(&mut self, r: f32, origin_x: f32, origin_z: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z_axis_rotation` [INFO] [stdout] --> src/mesh.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn z_axis_rotation(&mut self, r: f32, origin_x: f32, origin_y: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_x` [INFO] [stdout] --> src/mesh.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn increment_x(&mut self, x: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_y` [INFO] [stdout] --> src/mesh.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn increment_y(&mut self, y: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increment_z` [INFO] [stdout] --> src/mesh.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn increment_z(&mut self, z: f32){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `painters_algorithm` [INFO] [stdout] --> src/mesh.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn painters_algorithm(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mesh_relative_camera` [INFO] [stdout] --> src/mesh.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn get_mesh_relative_camera(&mut self) -> Mesh{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_x` should have a snake case name [INFO] [stdout] --> src/camera.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | ... let R_x = Matrix3x3{m:[[1.0, 0.0, 0.0], [0.0, f32::cos(rotation.x), f32::sin(rotation.x)], [0.0, -f32::sin(rotation.x), f32::cos(ro... [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `r_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_y` should have a snake case name [INFO] [stdout] --> src/camera.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | ... let R_y = Matrix3x3{m:[[f32::cos(rotation.y), 0.0, f32::sin(rotation.y)], [0.0, 1.0, 0.0], [-f32::sin(rotation.y), 0.0, f32::cos(ro... [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `r_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/camera.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | let R = R_x.clone() * R_y.clone(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 67 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 57s [INFO] running `Command { std: "docker" "inspect" "482e98b42adb998f79c2aa910aaa6bbf48c1ddce937b20c864db8d404df86637", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "482e98b42adb998f79c2aa910aaa6bbf48c1ddce937b20c864db8d404df86637", kill_on_drop: false }` [INFO] [stdout] 482e98b42adb998f79c2aa910aaa6bbf48c1ddce937b20c864db8d404df86637