[INFO] cloning repository https://github.com/Moharum1/oliv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Moharum1/oliv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoharum1%2Foliv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoharum1%2Foliv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b73777b87fe894e4dce27411b1d56174909f3e1a [INFO] checking Moharum1/oliv/b73777b87fe894e4dce27411b1d56174909f3e1a against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoharum1%2Foliv" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Moharum1/oliv on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Moharum1/oliv [INFO] finished tweaking git repo https://github.com/Moharum1/oliv [INFO] tweaked toml for git repo https://github.com/Moharum1/oliv written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Moharum1/oliv 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simd-adler32 v0.3.7 [INFO] [stderr] Downloaded png v0.17.13 [INFO] [stderr] Downloaded windows-targets v0.52.4 [INFO] [stderr] Downloaded anstream v0.6.13 [INFO] [stderr] Downloaded fdeflate v0.3.4 [INFO] [stderr] Downloaded crc32fast v1.4.0 [INFO] [stderr] Downloaded assert_float_eq v1.1.3 [INFO] [stderr] Downloaded flate2 v1.0.28 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.52.4 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.52.4 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.52.4 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.52.4 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.52.4 [INFO] [stderr] Downloaded windows_i686_msvc v0.52.4 [INFO] [stderr] Downloaded windows_i686_gnu v0.52.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f750a3b1b912f154beb38339a42cc798cad59c58a9f3d6b515d56722712837f7 [INFO] running `Command { std: "docker" "start" "-a" "f750a3b1b912f154beb38339a42cc798cad59c58a9f3d6b515d56722712837f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f750a3b1b912f154beb38339a42cc798cad59c58a9f3d6b515d56722712837f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f750a3b1b912f154beb38339a42cc798cad59c58a9f3d6b515d56722712837f7", kill_on_drop: false }` [INFO] [stdout] f750a3b1b912f154beb38339a42cc798cad59c58a9f3d6b515d56722712837f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f0916e4b322d9892491f18a095be7366f6689a736448f611df38086e26411a5 [INFO] running `Command { std: "docker" "start" "-a" "0f0916e4b322d9892491f18a095be7366f6689a736448f611df38086e26411a5", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking assert_float_eq v1.1.3 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Checking oliv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/engine/math/transformations/scaling.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::engine::math::transformations::MatTransform::Translation` [INFO] [stdout] --> src/engine/math/transformations/scaling.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::engine::math::transformations::MatTransform::Translation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::engine::math::vector::CoOrdinate` [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use crate::engine::math::vector::CoOrdinate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/engine/objects/sphere.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Matrix4X4` [INFO] [stdout] --> src/engine/objects/sphere.rs:7:52 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::engine::math::matrix::{IDENTITY_MAT4X4, Matrix4X4}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/engine/core/ray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/engine/math/transformations/scaling.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::engine::math::transformations::MatTransform::Translation` [INFO] [stdout] --> src/engine/math/transformations/scaling.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::engine::math::transformations::MatTransform::Translation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/engine/objects/sphere.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Matrix4X4` [INFO] [stdout] --> src/engine/objects/sphere.rs:7:52 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::engine::math::matrix::{IDENTITY_MAT4X4, Matrix4X4}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::engine::math::transformations::MatTransform::Rotation` [INFO] [stdout] --> src/engine/objects/sphere.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | use crate::engine::math::transformations::MatTransform::Rotation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::engine::math::transformations::translation::Translate` [INFO] [stdout] --> src/engine/objects/sphere.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | use crate::engine::math::transformations::translation::Translate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/engine/core/ray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `png::Transformations` [INFO] [stdout] --> src/engine/core/ray.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | use png::Transformations; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::engine::math::transformations::MatTransform` [INFO] [stdout] --> src/tests/projects/simple_sphere.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::engine::math::transformations::MatTransform; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/engine/math/transformations/translation.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn translate(mut self, x:f32, y:f32, z:f32) -> CoOrdinate{ [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/engine/math/transformations/translation.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn inverse_translate(mut self, x:f32, y:f32, z:f32) -> CoOrdinate{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matrix4X4` is more private than the item `IDENTITY_MAT4X4` [INFO] [stdout] --> src/engine/math/matrix.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub const IDENTITY_MAT4X4: Matrix4X4 = Matrix4X4{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant `IDENTITY_MAT4X4` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matrix4X4` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/engine/math/matrix.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) struct Matrix4X4{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matrix4X4` is more private than the item `MatTransform::Combination::0` [INFO] [stdout] --> src/engine/math/transformations/mod.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | Combination(Matrix4X4), [INFO] [stdout] | ^^^^^^^^^ field `MatTransform::Combination::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matrix4X4` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/engine/math/matrix.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) struct Matrix4X4{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inverse` is never used [INFO] [stdout] --> src/engine/math/transformations/translation.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Translate{ [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn inverse(mut self) -> Translate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inverse` is never used [INFO] [stdout] --> src/engine/math/transformations/scaling.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Scale{ [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn inverse(mut self) -> Scale { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rotate` is never constructed [INFO] [stdout] --> src/engine/math/transformations/rotation.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Rotate(pub Matrix4X4); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/engine/math/transformations/rotation.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Rotate{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 97 | pub fn new() -> Rotate { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn rotate_x(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn inverse_rotate_x(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn rotate_y(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn inverse_rotate_y(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn rotate_z(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn inverse_rotate_z(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shearing` is never constructed [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Shearing(Matrix4X4); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sheer` is never constructed [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Sheer(pub Matrix4X4); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Sheer{ [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 25 | pub fn new(xy: f32, xz: f32, yx: f32, yz: f32, zx: f32, zy: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Canvas` is never constructed [INFO] [stdout] --> src/engine/view/canvas.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | Canvas{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Canvas` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write_pixel`, `get_viewport_co_ordinates`, and `to_ppm` are never used [INFO] [stdout] --> src/engine/view/canvas.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Canvas{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(w:usize, aspect_ratio : f32) -> Canvas { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn write_pixel(&mut self, x:usize, y:usize, color: Color){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn get_viewport_co_ordinates(&self,x: f32, y: f32 ,distance : f32) -> CoOrdinate { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn to_ppm(&self, name : &str){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_u8` are never used [INFO] [stdout] --> src/engine/view/colors.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl Color{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 11 | pub const fn new(r:f32, g:f32, b:f32) -> Color { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) fn to_u8(&self) -> [u8; 3] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Mat` should have a snake case name [INFO] [stdout] --> src/engine/objects/sphere.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | Combination(Mat) => { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `mat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Mat` should have a snake case name [INFO] [stdout] --> src/engine/objects/sphere.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | Combination(Mat) => { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `mat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/engine/math/transformations/translation.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn translate(mut self, x:f32, y:f32, z:f32) -> CoOrdinate{ [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/engine/math/transformations/translation.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn inverse_translate(mut self, x:f32, y:f32, z:f32) -> CoOrdinate{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/engine/core/ray.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let origin = CoOrdinate::new_point(1.0, 2.0, 3.0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/engine/core/ray.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let direction = CoOrdinate::new_vector(4.0, 5.0, 6.0); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_a` [INFO] [stdout] --> src/tests/matrix_tests.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | let mat_a = Matrix4X4{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mat_b` [INFO] [stdout] --> src/tests/matrix_tests.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | let mat_b = Matrix4X4{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_mat_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests/projects/simple_sphere.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut shape = Sphere::new(); // Making the sphere immutable as we're not changing it in the loop [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matrix4X4` is more private than the item `IDENTITY_MAT4X4` [INFO] [stdout] --> src/engine/math/matrix.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub const IDENTITY_MAT4X4: Matrix4X4 = Matrix4X4{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constant `IDENTITY_MAT4X4` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matrix4X4` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/engine/math/matrix.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) struct Matrix4X4{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Matrix4X4` is more private than the item `MatTransform::Combination::0` [INFO] [stdout] --> src/engine/math/transformations/mod.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | Combination(Matrix4X4), [INFO] [stdout] | ^^^^^^^^^ field `MatTransform::Combination::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Matrix4X4` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/engine/math/matrix.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub(crate) struct Matrix4X4{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inverse` is never used [INFO] [stdout] --> src/engine/math/transformations/translation.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Translate{ [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn inverse(mut self) -> Translate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `inverse` is never used [INFO] [stdout] --> src/engine/math/transformations/scaling.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Scale{ [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn inverse(mut self) -> Scale { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/engine/math/transformations/rotation.rs:94:19 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct Rotate(pub Matrix4X4); [INFO] [stdout] | ------ ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rotate_x`, `inverse_rotate_x`, `rotate_y`, `inverse_rotate_y`, and `inverse_rotate_z` are never used [INFO] [stdout] --> src/engine/math/transformations/rotation.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Rotate{ [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn rotate_x(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn inverse_rotate_x(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn rotate_y(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn inverse_rotate_y(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn inverse_rotate_z(self, degree: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shearing` is never constructed [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Shearing(Matrix4X4); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sheer` is never constructed [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Sheer(pub Matrix4X4); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Sheer{ [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 25 | pub fn new(xy: f32, xz: f32, yx: f32, yz: f32, zx: f32, zy: f32) -> Matrix4X4 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_viewport_co_ordinates` is never used [INFO] [stdout] --> src/engine/view/canvas.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Canvas{ [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn get_viewport_co_ordinates(&self,x: f32, y: f32 ,distance : f32) -> CoOrdinate { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Mat` should have a snake case name [INFO] [stdout] --> src/engine/objects/sphere.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | Combination(Mat) => { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `mat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Mat` should have a snake case name [INFO] [stdout] --> src/engine/objects/sphere.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | Combination(Mat) => { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `mat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.75s [INFO] running `Command { std: "docker" "inspect" "0f0916e4b322d9892491f18a095be7366f6689a736448f611df38086e26411a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f0916e4b322d9892491f18a095be7366f6689a736448f611df38086e26411a5", kill_on_drop: false }` [INFO] [stdout] 0f0916e4b322d9892491f18a095be7366f6689a736448f611df38086e26411a5