[INFO] cloning repository https://github.com/Logitao/raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Logitao/raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLogitao%2Fraytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLogitao%2Fraytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f25d25c09f8c9d1433e9e1f3e8f91e090c10166 [INFO] checking Logitao/raytracer against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLogitao%2Fraytracer" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Logitao/raytracer 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/Logitao/raytracer [INFO] finished tweaking git repo https://github.com/Logitao/raytracer [INFO] tweaked toml for git repo https://github.com/Logitao/raytracer written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Logitao/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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gif v0.11.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 4ada0f97f4478b570e599f03b94eceade97c3f0d17cc2429d01da13fd7b23a50 [INFO] running `Command { std: "docker" "start" "-a" "4ada0f97f4478b570e599f03b94eceade97c3f0d17cc2429d01da13fd7b23a50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ada0f97f4478b570e599f03b94eceade97c3f0d17cc2429d01da13fd7b23a50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ada0f97f4478b570e599f03b94eceade97c3f0d17cc2429d01da13fd7b23a50", kill_on_drop: false }` [INFO] [stdout] 4ada0f97f4478b570e599f03b94eceade97c3f0d17cc2429d01da13fd7b23a50 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 3e6af2604e126d9b29471b50f51cb22adfe6c84d22aedf8200fa3a780902b065 [INFO] running `Command { std: "docker" "start" "-a" "3e6af2604e126d9b29471b50f51cb22adfe6c84d22aedf8200fa3a780902b065", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Checking bytemuck v1.7.2 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking png v0.16.8 [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 raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Pixel` [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{ImageBuffer, Pixel, RgbImage}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `light::Light` [INFO] [stdout] --> src/ray.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | camera::Camera, color::Color, light::Light, scene::Scene, sphere::Sphere, util, vec3::Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/ray.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(distance) = intersection { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direction` and `focal_length` are never read [INFO] [stdout] --> src/camera.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | pub position: Vec3, [INFO] [stdout] 4 | pub direction: Vec3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub focal_length: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `intensity` are never read [INFO] [stdout] --> src/light.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Light { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub position: Vec3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | pub intensity: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `direction`, `diffused_highlight`, and `specular_highlight` are never used [INFO] [stdout] --> src/light.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Light { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | fn direction(&self, point: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn diffused_highlight(&self, direction: Vec3, normal: Vec3) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn specular_highlight( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `surfaces` and `lights` are never read [INFO] [stdout] --> src/scene.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Scene { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub spheres: Vec, [INFO] [stdout] 5 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub lights: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pixel` [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{ImageBuffer, Pixel, RgbImage}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `light::Light` [INFO] [stdout] --> src/ray.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | camera::Camera, color::Color, light::Light, scene::Scene, sphere::Sphere, util, vec3::Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::nearly_equal` [INFO] [stdout] --> src/vec3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::util::nearly_equal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | img.save("test.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] 56 | let _ = img.save("test.png"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/ray.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(distance) = intersection { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direction` and `focal_length` are never read [INFO] [stdout] --> src/camera.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | pub position: Vec3, [INFO] [stdout] 4 | pub direction: Vec3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub focal_length: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `intensity` are never read [INFO] [stdout] --> src/light.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Light { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub position: Vec3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | pub intensity: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `direction`, `diffused_highlight`, and `specular_highlight` are never used [INFO] [stdout] --> src/light.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Light { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | fn direction(&self, point: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn diffused_highlight(&self, direction: Vec3, normal: Vec3) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn specular_highlight( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `surfaces` and `lights` are never read [INFO] [stdout] --> src/scene.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Scene { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub spheres: Vec, [INFO] [stdout] 5 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub lights: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nearly_equal` is never used [INFO] [stdout] --> src/util.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn nearly_equal(a: f32, b: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | img.save("test.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] 56 | let _ = img.save("test.png"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.81s [INFO] running `Command { std: "docker" "inspect" "3e6af2604e126d9b29471b50f51cb22adfe6c84d22aedf8200fa3a780902b065", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e6af2604e126d9b29471b50f51cb22adfe6c84d22aedf8200fa3a780902b065", kill_on_drop: false }` [INFO] [stdout] 3e6af2604e126d9b29471b50f51cb22adfe6c84d22aedf8200fa3a780902b065 [INFO] checking Logitao/raytracer against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLogitao%2Fraytracer" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Logitao/raytracer on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Logitao/raytracer [INFO] finished tweaking git repo https://github.com/Logitao/raytracer [INFO] tweaked toml for git repo https://github.com/Logitao/raytracer written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Logitao/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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 995657e616966935ca18018b43935bd45df34e8afcffccfa2e17c30698ceef27 [INFO] running `Command { std: "docker" "start" "-a" "995657e616966935ca18018b43935bd45df34e8afcffccfa2e17c30698ceef27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "995657e616966935ca18018b43935bd45df34e8afcffccfa2e17c30698ceef27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "995657e616966935ca18018b43935bd45df34e8afcffccfa2e17c30698ceef27", kill_on_drop: false }` [INFO] [stdout] 995657e616966935ca18018b43935bd45df34e8afcffccfa2e17c30698ceef27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf6e0b29b88e08fffd044118523cbd7a3c339a674182386e9bc28a2229be3170 [INFO] running `Command { std: "docker" "start" "-a" "cf6e0b29b88e08fffd044118523cbd7a3c339a674182386e9bc28a2229be3170", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking bytemuck v1.7.2 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking png v0.16.8 [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 raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Pixel` [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{ImageBuffer, Pixel, RgbImage}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `light::Light` [INFO] [stdout] --> src/ray.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | camera::Camera, color::Color, light::Light, scene::Scene, sphere::Sphere, util, vec3::Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pixel` [INFO] [stdout] --> src/main.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use image::{ImageBuffer, Pixel, RgbImage}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `light::Light` [INFO] [stdout] --> src/ray.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | camera::Camera, color::Color, light::Light, scene::Scene, sphere::Sphere, util, vec3::Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::nearly_equal` [INFO] [stdout] --> src/vec3.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::util::nearly_equal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/ray.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(distance) = intersection { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/ray.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(distance) = intersection { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direction` and `focal_length` are never read [INFO] [stdout] --> src/camera.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | pub position: Vec3, [INFO] [stdout] 4 | pub direction: Vec3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub focal_length: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `intensity` are never read [INFO] [stdout] --> src/light.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Light { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub position: Vec3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | pub intensity: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `direction`, `diffused_highlight`, and `specular_highlight` are never used [INFO] [stdout] --> src/light.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Light { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | fn direction(&self, point: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn diffused_highlight(&self, direction: Vec3, normal: Vec3) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn specular_highlight( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `surfaces` and `lights` are never read [INFO] [stdout] --> src/scene.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Scene { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub spheres: Vec, [INFO] [stdout] 5 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub lights: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nearly_equal` is never used [INFO] [stdout] --> src/util.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn nearly_equal(a: f32, b: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direction` and `focal_length` are never read [INFO] [stdout] --> src/camera.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | pub position: Vec3, [INFO] [stdout] 4 | pub direction: Vec3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | pub focal_length: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `intensity` are never read [INFO] [stdout] --> src/light.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Light { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub position: Vec3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | pub intensity: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `direction`, `diffused_highlight`, and `specular_highlight` are never used [INFO] [stdout] --> src/light.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Light { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | fn direction(&self, point: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn diffused_highlight(&self, direction: Vec3, normal: Vec3) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn specular_highlight( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `surfaces` and `lights` are never read [INFO] [stdout] --> src/scene.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Scene { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub spheres: Vec, [INFO] [stdout] 5 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub lights: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | img.save("test.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] 56 | let _ = img.save("test.png"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | img.save("test.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] 56 | let _ = img.save("test.png"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.31s [INFO] running `Command { std: "docker" "inspect" "cf6e0b29b88e08fffd044118523cbd7a3c339a674182386e9bc28a2229be3170", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf6e0b29b88e08fffd044118523cbd7a3c339a674182386e9bc28a2229be3170", kill_on_drop: false }` [INFO] [stdout] cf6e0b29b88e08fffd044118523cbd7a3c339a674182386e9bc28a2229be3170