[INFO] cloning repository https://github.com/felixcantet/rust-raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/felixcantet/rust-raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixcantet%2Frust-raytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixcantet%2Frust-raytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d48978a336fe33665982adb90733503118f7d489 [INFO] checking felixcantet/rust-raytracer against master#3f28fe133475ec5faf3413b556bf3cfb0d51336c for pr-112365-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixcantet%2Frust-raytracer" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/felixcantet/rust-raytracer on toolchain 3f28fe133475ec5faf3413b556bf3cfb0d51336c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3f28fe133475ec5faf3413b556bf3cfb0d51336c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/felixcantet/rust-raytracer [INFO] finished tweaking git repo https://github.com/felixcantet/rust-raytracer [INFO] tweaked toml for git repo https://github.com/felixcantet/rust-raytracer written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/felixcantet/rust-raytracer 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" "+3f28fe133475ec5faf3413b556bf3cfb0d51336c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking felixcantet/rust-raytracer against try#2eb702bf20a12c67e5629a5c82890c910c267bd9 for pr-112365-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffelixcantet%2Frust-raytracer" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/felixcantet/rust-raytracer on toolchain 2eb702bf20a12c67e5629a5c82890c910c267bd9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2eb702bf20a12c67e5629a5c82890c910c267bd9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/felixcantet/rust-raytracer [INFO] finished tweaking git repo https://github.com/felixcantet/rust-raytracer [INFO] tweaked toml for git repo https://github.com/felixcantet/rust-raytracer written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/felixcantet/rust-raytracer 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" "+2eb702bf20a12c67e5629a5c82890c910c267bd9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+2eb702bf20a12c67e5629a5c82890c910c267bd9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1614d58a77ede4c21c028fee45dcb4455460320f5bf60806172e547fe0fa245a [INFO] running `Command { std: "docker" "start" "-a" "1614d58a77ede4c21c028fee45dcb4455460320f5bf60806172e547fe0fa245a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1614d58a77ede4c21c028fee45dcb4455460320f5bf60806172e547fe0fa245a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1614d58a77ede4c21c028fee45dcb4455460320f5bf60806172e547fe0fa245a", kill_on_drop: false }` [INFO] [stdout] 1614d58a77ede4c21c028fee45dcb4455460320f5bf60806172e547fe0fa245a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+2eb702bf20a12c67e5629a5c82890c910c267bd9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61bbb5f418bec0159ea8ef565c057a21148f5e5d95d6464ecae8f7c708642fa9 [INFO] running `Command { std: "docker" "start" "-a" "61bbb5f418bec0159ea8ef565c057a21148f5e5d95d6464ecae8f7c708642fa9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking spin v0.9.3 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking deflate v1.0.0 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking weezl v0.1.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking lebe v0.5.1 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking gif v0.11.3 [INFO] [stderr] Checking png v0.17.5 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking bytemuck v1.9.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking glam v0.20.5 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking jpeg-decoder v0.2.6 [INFO] [stderr] Checking tiff v0.7.2 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking flume v0.10.12 [INFO] [stderr] Checking exr v1.4.2 [INFO] [stderr] Checking image v0.24.2 [INFO] [stderr] Checking RaytracerMatrixBased v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/Transform.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mat4` [INFO] [stdout] --> src/Camera.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use glam::{Vec3, Mat4}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::VecExtension::VectorExtension` [INFO] [stdout] --> src/Camera.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::VecExtension::VectorExtension; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec2`, `Vec3` [INFO] [stdout] --> src/Hittable.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use glam::{Vec3, Vec2}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Camera::Camera` [INFO] [stdout] --> src/Sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Camera::Camera; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glam::Vec3` [INFO] [stdout] --> src/Scene.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use glam::Vec3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/Scene.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/Scene.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::VecExtension::VectorExtension` [INFO] [stdout] --> src/Scene.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::VecExtension::VectorExtension; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/VecExtension.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Hittable::Hittable` [INFO] [stdout] --> src/Renderer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::Hittable::Hittable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::HitInfoCollector::HitInfoCollector` [INFO] [stdout] --> src/Renderer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::HitInfoCollector::HitInfoCollector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Scope`, `ThreadPool` [INFO] [stdout] --> src/Renderer.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use rayon::{ThreadPool, Scope}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Tracer::Tracer` [INFO] [stdout] --> src/Renderer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::Tracer::Tracer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng`, `thread_rng` [INFO] [stdout] --> src/Renderer.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Affine3A`, `EulerRot`, `Quat`, `Vec4` [INFO] [stdout] --> src/main.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | use glam::{Mat4, Vec4, Affine3A, Vec3, Quat, EulerRot}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/Transform.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mat4` [INFO] [stdout] --> src/Camera.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | use glam::{Vec3, Mat4}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec2`, `Vec3` [INFO] [stdout] --> src/Hittable.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use glam::{Vec3, Vec2}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/Scene.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/Scene.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/VecExtension.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Hittable::Hittable` [INFO] [stdout] --> src/Renderer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::Hittable::Hittable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::HitInfoCollector::HitInfoCollector` [INFO] [stdout] --> src/Renderer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::HitInfoCollector::HitInfoCollector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Scope`, `ThreadPool` [INFO] [stdout] --> src/Renderer.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use rayon::{ThreadPool, Scope}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Tracer::Tracer` [INFO] [stdout] --> src/Renderer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::Tracer::Tracer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Rng`, `thread_rng` [INFO] [stdout] --> src/Renderer.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Affine3A`, `Quat`, `Vec4` [INFO] [stdout] --> src/main.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | use glam::{Mat4, Vec4, Affine3A, Vec3, Quat, EulerRot}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 23 | / let mut transform = Transform::Transform{ [INFO] [stdout] 24 | | worldMatrix: Mat4::default(), [INFO] [stdout] 25 | | invMatrix: Mat4::default() [INFO] [stdout] 26 | | }; [INFO] [stdout] | |______^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/Transform.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | let (scale, rotation, translation) = self.worldMatrix.to_scale_rotation_translation(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotation` [INFO] [stdout] --> src/Transform.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | let (scale, rotation, translation) = self.worldMatrix.to_scale_rotation_translation(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/Transform.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | let (scale, rotation, translation) = self.worldMatrix.to_scale_rotation_translation(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `translation` [INFO] [stdout] --> src/Transform.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | let (scale, rotation, translation) = self.worldMatrix.to_scale_rotation_translation(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotation` [INFO] [stdout] --> src/Transform.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let (scale, rotation, translation) = self.worldMatrix.to_scale_rotation_translation(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `translation` [INFO] [stdout] --> src/Transform.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 55 | let (scale, rotation, translation) = self.worldMatrix.to_scale_rotation_translation(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_translation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/Transform.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let x = right.dot(pos); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/Transform.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let y = up.dot(pos); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/Transform.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let z = forward.dot(pos); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Camera.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut ray = Ray::new(screen_pos, dir.normalize()); [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: unused variable: `sphere_to_ray` [INFO] [stdout] --> src/Sphere.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let sphere_to_ray = local_ray.origin - self.transform.get_position(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_to_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/Sphere.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | let mut t = 0.0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere` [INFO] [stdout] --> src/Renderer.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut sphere = Sphere::new(Vec3::zero(), Vec3::one()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_buffer_size` [INFO] [stdout] --> src/Renderer.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let chunk_buffer_size = (width * height * 3) / (cpu_count as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chunk_buffer_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Renderer.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut sphere = Sphere::new(Vec3::zero(), Vec3::one()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/Renderer.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn render_pixel(x: u32, y: u32, camera: &mut Camera) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/Renderer.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn render_pixel(x: u32, y: u32, camera: &mut Camera) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `camera` [INFO] [stdout] --> src/Renderer.rs:124:37 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn render_pixel(x: u32, y: u32, camera: &mut Camera) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Tracer.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | let mut depth = 1; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec` [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let vec = Vec3::zero(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lookAt` [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let lookAt = Mat4::look_at_lh(Vec3::new(-1.0, 0.0, 0.0), Vec3::new(20.0, 0.0, 5.0), Vec3::new(0.0, 1.0, 0.0)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lookAt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/main.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | let (scale, rot, loc) = camera.transform.worldMatrix.to_scale_rotation_translation(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rot` [INFO] [stdout] --> src/main.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | let (scale, rot, loc) = camera.transform.worldMatrix.to_scale_rotation_translation(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scale` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let scale = Vec3::new(1.0, 2.0, 3.0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scale` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Space` is never used [INFO] [stdout] --> src/Transform.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum Space { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/Transform.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Transform { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_rotation(&self) -> Quat { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_scale(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn get_forward(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn get_right(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn get_up(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn local_to_global_vector(&self, vector: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn global_to_local_vector(&self, vector: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bar` is never constructed [INFO] [stdout] --> src/VecExtension.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct Bar; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Render` is never used [INFO] [stdout] --> src/Renderer.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn Render(scene: &mut Scene, width: u32, height: u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_pixel` is never used [INFO] [stdout] --> src/Renderer.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn render_pixel(x: u32, y: u32, camera: &mut Camera) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_antialiasing_subdivide` is never used [INFO] [stdout] --> src/Tracer.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl RenderSettings { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_antialiasing_subdivide(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer` is never read [INFO] [stdout] --> src/Tracer.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Tracer { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | buffer: image::ImageBuffer, Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImageWriter` is never constructed [INFO] [stdout] --> src/ImageWriter.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ImageWriter{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_chunks` are never used [INFO] [stdout] --> src/ImageWriter.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ImageWriter{ [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 9 | [INFO] [stdout] 10 | pub fn new(width: u32, height: u32) -> ImageWriter{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn get_chunks(&mut self, chunk_size: usize) -> ChunksMut [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RaytracerMatrixBased` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `raytracer_matrix_based` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Transform` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Transform; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Ray` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Ray; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Camera` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod Camera; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `camera` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `HitInfoCollector` should have a snake case name [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod HitInfoCollector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `hit_info_collector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Hittable` should have a snake case name [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Hittable; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hittable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Sphere` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod Sphere; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Scene` should have a snake case name [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod Scene; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `scene` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `VecExtension` should have a snake case name [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | mod VecExtension; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `vec_extension` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Renderer` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod Renderer; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Tracer` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod Tracer; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tracer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ImageWriter` should have a snake case name [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | mod ImageWriter; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `image_writer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lookAt` should have a snake case name [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let lookAt = Mat4::look_at_lh(Vec3::new(-1.0, 0.0, 0.0), Vec3::new(20.0, 0.0, 5.0), Vec3::new(0.0, 1.0, 0.0)); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `look_at` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Render` should have a snake case name [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn Render() [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `render` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `worldMatrix` should have a snake case name [INFO] [stdout] --> src/Transform.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub worldMatrix: Mat4, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `world_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `invMatrix` should have a snake case name [INFO] [stdout] --> src/Transform.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub invMatrix: Mat4, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `inv_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `focalPoint` should have a snake case name [INFO] [stdout] --> src/Camera.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let focalPoint = Vec3::new(0.0, 0.0, self.focal); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `focal_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `W` should have a snake case name [INFO] [stdout] --> src/Camera.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let W = 2.0; [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/Camera.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let H = 2.0; [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `screenX` should have a snake case name [INFO] [stdout] --> src/Camera.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let screenX = x * (W / w) - (W / 2.0); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `screen_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `screenY` should have a snake case name [INFO] [stdout] --> src/Camera.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let screenY = y * (H / h) - (H / 2.0); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `screen_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hitPosition` should have a snake case name [INFO] [stdout] --> src/HitInfoCollector.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub hitPosition: Vec3, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `hit_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hitNormal` should have a snake case name [INFO] [stdout] --> src/HitInfoCollector.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub hitNormal: Vec3, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hit_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dotP` should have a snake case name [INFO] [stdout] --> src/Sphere.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let dotP = impact_local.dot(obs_local); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `dot_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `closestHitInfo` should have a snake case name [INFO] [stdout] --> src/Scene.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut closestHitInfo = HitInfoCollector::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `closest_hit_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hitInfo` should have a snake case name [INFO] [stdout] --> src/Scene.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let mut hitInfo = HitInfoCollector::default(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hit_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Render` should have a snake case name [INFO] [stdout] --> src/Renderer.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn Render(scene: &mut Scene, width: u32, height: u32) [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `render` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Renderer.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | buffer.save("Output.png"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 83 | let _ = buffer.save("Output.png"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/Tracer.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | buffer.save("Output.png"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = buffer.save("Output.png"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/Scene.rs:70:49 [INFO] [stdout] | [INFO] [stdout] 70 | let intersected = scene.closest_intersected(&ray); [INFO] [stdout] | ------------------- ^^^^ types differ in mutability [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Ray::Ray` [INFO] [stdout] found reference `&Ray::Ray` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/Scene.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn closest_intersected(&self, ray: &mut Ray) -> HitInfoCollector { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 23 | / let mut transform = Transform::Transform{ [INFO] [stdout] 24 | | worldMatrix: Mat4::default(), [INFO] [stdout] 25 | | invMatrix: Mat4::default() [INFO] [stdout] 26 | | }; [INFO] [stdout] | |______^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `RaytracerMatrixBased` (bin "RaytracerMatrixBased" test) due to 2 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "61bbb5f418bec0159ea8ef565c057a21148f5e5d95d6464ecae8f7c708642fa9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61bbb5f418bec0159ea8ef565c057a21148f5e5d95d6464ecae8f7c708642fa9", kill_on_drop: false }` [INFO] [stdout] 61bbb5f418bec0159ea8ef565c057a21148f5e5d95d6464ecae8f7c708642fa9