[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] 029f2a784831d2df7803dbe60dd50fa4d12150f8 [INFO] checking Moharum1/oliv against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [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 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded assert_float_eq v1.1.3 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 95e94c227fcca77e71fc1f63d856f283ce296d04d700155836911e3f9ca936f9 [INFO] running `Command { std: "docker" "start" "-a" "95e94c227fcca77e71fc1f63d856f283ce296d04d700155836911e3f9ca936f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "95e94c227fcca77e71fc1f63d856f283ce296d04d700155836911e3f9ca936f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95e94c227fcca77e71fc1f63d856f283ce296d04d700155836911e3f9ca936f9", kill_on_drop: false }` [INFO] [stdout] 95e94c227fcca77e71fc1f63d856f283ce296d04d700155836911e3f9ca936f9 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8348dc09013f37b12f11de75aab57b0e0674a634cd75c7ca13bcde66505d312 [INFO] running `Command { std: "docker" "start" "-a" "c8348dc09013f37b12f11de75aab57b0e0674a634cd75c7ca13bcde66505d312", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking assert_float_eq v1.1.3 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking fdeflate v0.3.4 [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 png v0.17.13 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking rayon v1.10.0 [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::vector::CoOrdinate` [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::engine::math::vector::CoOrdinate; [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 variable: `ray` [INFO] [stdout] --> src/engine/objects/sphere.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn intersect(ray : Ray){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ray` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_u8` are never used [INFO] [stdout] --> src/engine/colors.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 10 | impl Color{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 11 | pub(crate) 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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Canvas` is never constructed [INFO] [stdout] --> src/engine/canvas.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | Canvas{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write_pixel`, and `to_ppm` are never used [INFO] [stdout] --> src/engine/canvas.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Canvas{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub(crate) fn new(w:usize, h:usize) -> Canvas { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub(crate) fn write_pixel(&mut self, x:usize, y:usize, color: Color){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn to_ppm(&self, name : &str){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `negate`, `magnitude`, `normalize`, `dot`, and `cross` are never used [INFO] [stdout] --> src/engine/math/vector.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl CoOrdinate{ [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn negate(&mut self){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn magnitude(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn normalize(&mut self) -> CoOrdinate{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn dot(&self, rhs: &CoOrdinate) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn cross(&self, rhs: &CoOrdinate) -> CoOrdinate { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENTITY_MAT4X4` is never used [INFO] [stdout] --> src/engine/math/matrix.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const IDENTITY_MAT4X4: [[f32; 4]; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix3X3` is never constructed [INFO] [stdout] --> src/engine/math/matrix.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) struct Matrix3X3{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `sub_matrix`, `minor`, `co_factor`, and `determinant` are never used [INFO] [stdout] --> src/engine/math/matrix.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Matrix3X3{ [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 37 | fn sub_matrix(&self, x_row: usize, x_column: usize) -> Matrix2X2 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn minor(&self, x_row: usize, x_column: usize) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn co_factor(&self, x_row: usize, x_column: usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn determinant(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix2X2` is never constructed [INFO] [stdout] --> src/engine/math/matrix.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 89 | pub(crate) struct Matrix2X2{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `determinant` is never used [INFO] [stdout] --> src/engine/math/matrix.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 93 | impl Matrix2X2{ [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 94 | pub fn determinant(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `transpose`, `sub_matrix`, `minor`, `co_factor`, `determinant`, and `inverse` are never used [INFO] [stdout] --> src/engine/math/matrix.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 102 | impl Matrix4X4{ [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn transpose(&self) -> Matrix4X4 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn sub_matrix(&self, x_row: usize, x_column: usize) -> Matrix3X3 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn minor(&self, x_row: usize, x_column: usize) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn co_factor(&self, x_row: usize, x_column: usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn determinant(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn inverse(&self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RoundToTwoDecimalPlaces` is never used [INFO] [stdout] --> src/engine/math/operations.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) trait RoundToTwoDecimalPlaces { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `translate` and `inverse_translate` are never used [INFO] [stdout] --> src/engine/math/transformations/translation.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl CoOrdinate{ [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 8 | pub fn translate(self, x:f32, y:f32, z:f32) -> CoOrdinate{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn inverse_translate(self, x:f32, y:f32, z:f32)-> CoOrdinate{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `inverse` are never used [INFO] [stdout] --> src/engine/math/transformations/translation.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Translation{ [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 40 | pub fn new(x:f32, y:f32, z:f32) -> Translation { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn inverse(mut self) -> Translation { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `scale`, `shrink`, and `reflect` are never used [INFO] [stdout] --> src/engine/math/transformations/scaling.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl CoOrdinate{ [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 6 | [INFO] [stdout] 7 | pub fn scale(self, x:f32, y:f32, z:f32) -> CoOrdinate{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn shrink(self, x:f32, y:f32, z:f32) -> CoOrdinate{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn reflect(self, x:f32, y:f32, z:f32) -> CoOrdinate{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rotate_x`, `rotate_y`, and `rotate_z` are never used [INFO] [stdout] --> src/engine/math/transformations/rotation.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl CoOrdinate { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 5 | pub fn rotate_x(self, degree: f32) -> CoOrdinate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn rotate_y(self, degree: f32) -> CoOrdinate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn rotate_z(self, degree: f32) -> CoOrdinate { [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: method `shearing` is never used [INFO] [stdout] --> src/engine/math/transformations/shearing.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl CoOrdinate{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 7 | [INFO] [stdout] 8 | pub fn shearing(self, xy: f32, xz: f32, yx: f32, yz: f32, zx: f32, zy: f32) -> CoOrdinate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ray` is never constructed [INFO] [stdout] --> src/engine/ray.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) struct Ray{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `position` are never used [INFO] [stdout] --> src/engine/ray.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Ray{ [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(origin: (f32, f32, f32), dir: (f32, f32, f32)) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn position(&self, t: f32) -> CoOrdinate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `UNIQUE_ID` is never used [INFO] [stdout] --> src/engine/objects/sphere.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | static UNIQUE_ID: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sphere` is never constructed [INFO] [stdout] --> src/engine/objects/sphere.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Sphere{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `intersect` are never used [INFO] [stdout] --> src/engine/objects/sphere.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Sphere{ [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 16 | pub fn new() -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn intersect(ray : Ray){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Projectile` is never constructed [INFO] [stdout] --> src/tests/projectile.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Projectile{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Environment` is never constructed [INFO] [stdout] --> src/tests/projectile.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Environment{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlayGround` is never constructed [INFO] [stdout] --> src/tests/projectile.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct PlayGround{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tick` is never used [INFO] [stdout] --> src/tests/projectile.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl PlayGround { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 20 | fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/engine/ray.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | 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/ray.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | 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: `ray` [INFO] [stdout] --> src/engine/objects/sphere.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn intersect(ray : Ray){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere2` [INFO] [stdout] --> src/engine/objects/sphere.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let sphere2 = Sphere::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere3` [INFO] [stdout] --> src/engine/objects/sphere.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let sphere3 = Sphere::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere3` [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: methods `dot` and `cross` are never used [INFO] [stdout] --> src/engine/math/vector.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl CoOrdinate{ [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn dot(&self, rhs: &CoOrdinate) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn cross(&self, rhs: &CoOrdinate) -> CoOrdinate { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENTITY_MAT4X4` is never used [INFO] [stdout] --> src/engine/math/matrix.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const IDENTITY_MAT4X4: [[f32; 4]; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `inverse` are never used [INFO] [stdout] --> src/engine/math/transformations/translation.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Translation{ [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 40 | pub fn new(x:f32, y:f32, z:f32) -> Translation { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn inverse(mut self) -> Translation { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rotate_y` and `rotate_z` are never used [INFO] [stdout] --> src/engine/math/transformations/rotation.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl CoOrdinate { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn rotate_y(self, degree: f32) -> CoOrdinate { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn rotate_z(self, degree: f32) -> CoOrdinate { [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: associated function `intersect` is never used [INFO] [stdout] --> src/engine/objects/sphere.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Sphere{ [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn intersect(ray : Ray){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.73s [INFO] running `Command { std: "docker" "inspect" "c8348dc09013f37b12f11de75aab57b0e0674a634cd75c7ca13bcde66505d312", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8348dc09013f37b12f11de75aab57b0e0674a634cd75c7ca13bcde66505d312", kill_on_drop: false }` [INFO] [stdout] c8348dc09013f37b12f11de75aab57b0e0674a634cd75c7ca13bcde66505d312