[INFO] cloning repository https://github.com/dixe/OneWeekeendRayTracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dixe/OneWeekeendRayTracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdixe%2FOneWeekeendRayTracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdixe%2FOneWeekeendRayTracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b3ce9474fc19cd21009e31fa17440133c17586d6 [INFO] checking dixe/OneWeekeendRayTracer against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdixe%2FOneWeekeendRayTracer" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dixe/OneWeekeendRayTracer 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/dixe/OneWeekeendRayTracer [INFO] finished tweaking git repo https://github.com/dixe/OneWeekeendRayTracer [INFO] tweaked toml for git repo https://github.com/dixe/OneWeekeendRayTracer written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dixe/OneWeekeendRayTracer 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] Downloading crates ... [INFO] [stderr] Downloaded nalgebra-glm v0.11.0 [INFO] [stderr] Downloaded simba v0.4.0 [INFO] [stderr] Downloaded nalgebra v0.25.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 92fd8059e9ef6497e56396b16d5a3d4522738d2e7554a71c0257d755e4558d2e [INFO] running `Command { std: "docker" "start" "-a" "92fd8059e9ef6497e56396b16d5a3d4522738d2e7554a71c0257d755e4558d2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92fd8059e9ef6497e56396b16d5a3d4522738d2e7554a71c0257d755e4558d2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92fd8059e9ef6497e56396b16d5a3d4522738d2e7554a71c0257d755e4558d2e", kill_on_drop: false }` [INFO] [stdout] 92fd8059e9ef6497e56396b16d5a3d4522738d2e7554a71c0257d755e4558d2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] a57e9003c223cb5c2e352a1eec170b88e3edde58ff77b51ef301892dc2a45463 [INFO] running `Command { std: "docker" "start" "-a" "a57e9003c223cb5c2e352a1eec170b88e3edde58ff77b51ef301892dc2a45463", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Compiling paste v1.0.5 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking matrixmultiply v0.3.1 [INFO] [stderr] Checking bytemuck v1.7.2 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking crossbeam-epoch v0.9.5 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking simba v0.4.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rayon v1.5.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking nalgebra v0.25.4 [INFO] [stderr] Checking nalgebra-glm v0.11.0 [INFO] [stderr] Checking rust_ray_cast_weekend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random_in_unit_sphere` [INFO] [stdout] --> src/hittable/hit_record.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::random_utils::{random_in_hemisphere, random_in_unit_sphere, random_unit_vector}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random_in_unit_sphere` [INFO] [stdout] --> src/hittable/hit_record.rs:2:49 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::random_utils::{random_in_hemisphere, random_in_unit_sphere, random_unit_vector}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::*` [INFO] [stdout] --> src/hittable/hit_record.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::material::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::*` [INFO] [stdout] --> src/hittable/hit_record.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::material::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/hittable/hit_record.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | if (scatter_direction.near_zero()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (scatter_direction.near_zero()){ [INFO] [stdout] 60 + if scatter_direction.near_zero() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `random_in_hemisphere`, `random_in_unit_sphere`, `random_unit_vector` [INFO] [stdout] --> src/hittable/sphere.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::random_utils::{random_in_hemisphere, random_in_unit_sphere, random_unit_vector}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/hittable/sphere.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hittable::*; [INFO] [stdout] | ------------------ the item `Ray` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use crate::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::*` [INFO] [stdout] --> src/hittable/sphere.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::material::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `random_in_hemisphere`, `random_in_unit_sphere`, `random_unit_vector` [INFO] [stdout] --> src/hittable/square.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::random_utils::{random_in_hemisphere, random_in_unit_sphere, random_unit_vector}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/hittable/square.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hittable::*; [INFO] [stdout] | ------------------ the item `Ray` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use crate::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::*` [INFO] [stdout] --> src/hittable/square.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::material::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/random_utils.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/hittable/hit_record.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | if (scatter_direction.near_zero()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (scatter_direction.near_zero()){ [INFO] [stdout] 60 + if scatter_direction.near_zero() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `random_in_hemisphere`, `random_in_unit_sphere`, `random_unit_vector` [INFO] [stdout] --> src/hittable/sphere.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::random_utils::{random_in_hemisphere, random_in_unit_sphere, random_unit_vector}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/hittable/sphere.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hittable::*; [INFO] [stdout] | ------------------ the item `Ray` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use crate::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::*` [INFO] [stdout] --> src/hittable/sphere.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::material::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `random_in_hemisphere`, `random_in_unit_sphere`, `random_unit_vector` [INFO] [stdout] --> src/hittable/square.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::random_utils::{random_in_hemisphere, random_in_unit_sphere, random_unit_vector}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ray` is imported redundantly [INFO] [stdout] --> src/hittable/square.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::hittable::*; [INFO] [stdout] | ------------------ the item `Ray` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use crate::ray::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::*` [INFO] [stdout] --> src/hittable/square.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::material::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/random_utils.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:81:112 [INFO] [stdout] | [INFO] [stdout] 81 | render_ray_image_random_distributed(&mut ray_image, CAMERA.as_ref().unwrap(), WORLD.as_ref().unwrap(), &PARAMS); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 81 | render_ray_image_random_distributed(&mut ray_image, CAMERA.as_ref().unwrap(), WORLD.as_ref().unwrap(), addr_of!(PARAMS)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:81:112 [INFO] [stdout] | [INFO] [stdout] 81 | render_ray_image_random_distributed(&mut ray_image, CAMERA.as_ref().unwrap(), WORLD.as_ref().unwrap(), &PARAMS); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 81 | render_ray_image_random_distributed(&mut ray_image, CAMERA.as_ref().unwrap(), WORLD.as_ref().unwrap(), addr_of!(PARAMS)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_min` [INFO] [stdout] --> src/hittable/square.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_min` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_max` [INFO] [stdout] --> src/hittable/square.rs:75:42 [INFO] [stdout] | [INFO] [stdout] 75 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/material/lambertian.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_min` [INFO] [stdout] --> src/hittable/square.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_min` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_max` [INFO] [stdout] --> src/hittable/square.rs:75:42 [INFO] [stdout] | [INFO] [stdout] 75 | fn hit(&self, ray: &Ray, t_min: f64, t_max: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | for id in 0..params.extra_threads { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/material/lambertian.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | fn scatter(&self, ray_in: &Ray, hit_record: &HitRecord) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | for id in 0..params.extra_threads { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 370 | for id in 0..params.extra_threads { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample` [INFO] [stdout] --> src/main.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | for sample in 0..params.samples_per_pixel { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_world_1` is never used [INFO] [stdout] --> src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn setup_world_1(width: usize, height: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SlaveMessage` is never used [INFO] [stdout] --> src/main.rs:182:6 [INFO] [stdout] | [INFO] [stdout] 182 | enum SlaveMessage { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MasterMessage` is never used [INFO] [stdout] --> src/main.rs:188:6 [INFO] [stdout] | [INFO] [stdout] 188 | enum MasterMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/main.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_ray_image_master_slave` is never used [INFO] [stdout] --> src/main.rs:292:4 [INFO] [stdout] | [INFO] [stdout] 292 | fn render_ray_image_master_slave(ray_image: &mut RayImage, camera: &'static camera::Camera, world: &'static HittableList, params: &'stati... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn_threads` is never used [INFO] [stdout] --> src/main.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn spawn_threads(camera: &'static camera::Camera, world: &'static HittableList, params: &'static Parameters) -> Vec:: { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `viewport_width`, `viewport_height`, and `focal_length` are never read [INFO] [stdout] --> src/camera.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | viewport_width: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 7 | viewport_height: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | focal_length: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Camera` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `normal` and `random_diffuse_ray` are never used [INFO] [stdout] --> src/hittable/hit_record.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl HitRecord { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn normal(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn random_diffuse_ray(&self) -> Ray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random` is never used [INFO] [stdout] --> src/random_utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn random(min: f64, max: f64) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_in_hemisphere` is never used [INFO] [stdout] --> src/random_utils.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn random_in_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 370 | for id in 0..params.extra_threads { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample` [INFO] [stdout] --> src/main.rs:426:9 [INFO] [stdout] | [INFO] [stdout] 426 | for sample in 0..params.samples_per_pixel { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_world_1` is never used [INFO] [stdout] --> src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn setup_world_1(width: usize, height: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SlaveMessage` is never used [INFO] [stdout] --> src/main.rs:182:6 [INFO] [stdout] | [INFO] [stdout] 182 | enum SlaveMessage { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MasterMessage` is never used [INFO] [stdout] --> src/main.rs:188:6 [INFO] [stdout] | [INFO] [stdout] 188 | enum MasterMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/main.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `render_ray_image_master_slave` is never used [INFO] [stdout] --> src/main.rs:292:4 [INFO] [stdout] | [INFO] [stdout] 292 | fn render_ray_image_master_slave(ray_image: &mut RayImage, camera: &'static camera::Camera, world: &'static HittableList, params: &'stati... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn_threads` is never used [INFO] [stdout] --> src/main.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn spawn_threads(camera: &'static camera::Camera, world: &'static HittableList, params: &'static Parameters) -> Vec:: { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `viewport_width`, `viewport_height`, and `focal_length` are never read [INFO] [stdout] --> src/camera.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | viewport_width: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 7 | viewport_height: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | focal_length: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Camera` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `normal` and `random_diffuse_ray` are never used [INFO] [stdout] --> src/hittable/hit_record.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl HitRecord { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn normal(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn random_diffuse_ray(&self) -> Ray { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random` is never used [INFO] [stdout] --> src/random_utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn random(min: f64, max: f64) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_in_hemisphere` is never used [INFO] [stdout] --> src/random_utils.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn random_in_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:332:33 [INFO] [stdout] | [INFO] [stdout] 332 | ... worker.mosi.send(MasterMessage::DoWork(work_tasks[work_index])); [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] 332 | let _ = worker.mosi.send(MasterMessage::DoWork(work_tasks[work_index])); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:337:33 [INFO] [stdout] | [INFO] [stdout] 337 | ... worker.mosi.send(MasterMessage::Done); [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] 337 | let _ = worker.mosi.send(MasterMessage::Done); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | miso_sender.send(SlaveMessage::RequestWork); [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] 382 | let _ = miso_sender.send(SlaveMessage::RequestWork); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:405:33 [INFO] [stdout] | [INFO] [stdout] 405 | ... miso_sender.send(SlaveMessage::WorkDone(res)); [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] 405 | let _ = miso_sender.send(SlaveMessage::WorkDone(res)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ray_image.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | img.save(path); [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] 29 | let _ = img.save(path); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:332:33 [INFO] [stdout] | [INFO] [stdout] 332 | ... worker.mosi.send(MasterMessage::DoWork(work_tasks[work_index])); [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] 332 | let _ = worker.mosi.send(MasterMessage::DoWork(work_tasks[work_index])); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:337:33 [INFO] [stdout] | [INFO] [stdout] 337 | ... worker.mosi.send(MasterMessage::Done); [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] 337 | let _ = worker.mosi.send(MasterMessage::Done); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:382:17 [INFO] [stdout] | [INFO] [stdout] 382 | miso_sender.send(SlaveMessage::RequestWork); [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] 382 | let _ = miso_sender.send(SlaveMessage::RequestWork); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:405:33 [INFO] [stdout] | [INFO] [stdout] 405 | ... miso_sender.send(SlaveMessage::WorkDone(res)); [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] 405 | let _ = miso_sender.send(SlaveMessage::WorkDone(res)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/ray_image.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | img.save(path); [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] 29 | let _ = img.save(path); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.46s [INFO] running `Command { std: "docker" "inspect" "a57e9003c223cb5c2e352a1eec170b88e3edde58ff77b51ef301892dc2a45463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a57e9003c223cb5c2e352a1eec170b88e3edde58ff77b51ef301892dc2a45463", kill_on_drop: false }` [INFO] [stdout] a57e9003c223cb5c2e352a1eec170b88e3edde58ff77b51ef301892dc2a45463