[INFO] cloning repository https://github.com/bumzack/raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bumzack/raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbumzack%2Fraytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbumzack%2Fraytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7997bd3a992cf722e4de5c646bacb01200cb8c8c [INFO] checking bumzack/raytracer/7997bd3a992cf722e4de5c646bacb01200cb8c8c against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbumzack%2Fraytracer" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bumzack/raytracer on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bumzack/raytracer [INFO] finished tweaking git repo https://github.com/bumzack/raytracer [INFO] tweaked toml for git repo https://github.com/bumzack/raytracer written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bumzack/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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v0.4.29 [INFO] [stderr] Downloaded bitflags v1.0.5 [INFO] [stderr] Downloaded image v0.21.1 [INFO] [stderr] Downloaded libc v0.2.54 [INFO] [stderr] Downloaded syn v0.15.33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e8772ad066f42cde73043fa7a32517dbfb5db4908e837a17fa21747f2a0bf7c3 [INFO] running `Command { std: "docker" "start" "-a" "e8772ad066f42cde73043fa7a32517dbfb5db4908e837a17fa21747f2a0bf7c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8772ad066f42cde73043fa7a32517dbfb5db4908e837a17fa21747f2a0bf7c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8772ad066f42cde73043fa7a32517dbfb5db4908e837a17fa21747f2a0bf7c3", kill_on_drop: false }` [INFO] [stdout] e8772ad066f42cde73043fa7a32517dbfb5db4908e837a17fa21747f2a0bf7c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5bc25e9b5304039f199b56256f8c58d0e3935342fd31eec835a3a014e8176ea [INFO] running `Command { std: "docker" "start" "-a" "b5bc25e9b5304039f199b56256f8c58d0e3935342fd31eec835a3a014e8176ea", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.54 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling proc-macro2 v0.4.29 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling syn v0.15.33 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling bitflags v1.0.5 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking gif v0.10.1 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking num_cpus v1.10.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking png v0.14.1 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking tiff v0.2.2 [INFO] [stderr] Checking image v0.21.1 [INFO] [stderr] Checking raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/v2/solidobject.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/v2/availableshapes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/v2/availableshapes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList` and `Intersection` [INFO] [stdout] --> src/v2/availableshapes.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/availableshapes.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/availableshapes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/availableshapes.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::v2::raytracemath` [INFO] [stdout] --> src/v2/availableshapes.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::v2::raytracemath; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList` and `Intersection` [INFO] [stdout] --> src/v2/sphere.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/sphere.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList` and `Intersection` [INFO] [stdout] --> src/v2/torus.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Intersection` [INFO] [stdout] --> src/v2/solidobject.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/torus.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/algebra/solidobject.rs:15:78 [INFO] [stdout] | [INFO] [stdout] 15 | fn append_all_intersections(&self, vantage: &Vector, direction: &Vector, mut intersection_list: &IntersectionList); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove `mut` from the parameter: `intersection_list` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] = note: `#[deny(patterns_in_fns_without_body)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/v2/availableshapes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/algebra/solidobject.rs:16:83 [INFO] [stdout] | [INFO] [stdout] 16 | fn find_closest_intersection(&mut self, vantage: &Vector, direction: &Vector, mut intersection: &Intersection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove `mut` from the parameter: `intersection` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/v2/availableshapes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList` and `Intersection` [INFO] [stdout] --> src/v2/availableshapes.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/availableshapes.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/availableshapes.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/availableshapes.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::v2::raytracemath` [INFO] [stdout] --> src/v2/availableshapes.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::v2::raytracemath; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList` and `Intersection` [INFO] [stdout] --> src/v2/sphere.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/sphere.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntersectionList` and `Intersection` [INFO] [stdout] --> src/v2/torus.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::algebra::intersection::{Intersection, IntersectionList}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::Optics` [INFO] [stdout] --> src/v2/torus.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::algebra::optics::Optics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/algebra/solidobject.rs:15:78 [INFO] [stdout] | [INFO] [stdout] 15 | fn append_all_intersections(&self, vantage: &Vector, direction: &Vector, mut intersection_list: &IntersectionList); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove `mut` from the parameter: `intersection_list` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] = note: `#[deny(patterns_in_fns_without_body)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/algebra/solidobject.rs:16:83 [INFO] [stdout] | [INFO] [stdout] 16 | fn find_closest_intersection(&mut self, vantage: &Vector, direction: &Vector, mut intersection: &Intersection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove `mut` from the parameter: `intersection` [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #35203 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/raytracer_error.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/raytracer_error.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/sphere.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/torus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/torus.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `angle_in_degrees` [INFO] [stdout] --> src/v2/sphere.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | fn rotate_x(&mut self, angle_in_degrees: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_angle_in_degrees` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `angle_in_degrees` [INFO] [stdout] --> src/v2/torus.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | fn rotate_x(&mut self, angle_in_degrees: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_angle_in_degrees` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gloss_factor` [INFO] [stdout] --> src/algebra/optics.rs:78:43 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gloss_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_matte_color` [INFO] [stdout] --> src/algebra/optics.rs:78:62 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_matte_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_gloss_color` [INFO] [stdout] --> src/algebra/optics.rs:78:86 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_gloss_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/algebra/solidobject.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/algebra/solidobject.rs:36:59 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/algebra/intersection.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/algebra/intersection.rs:16:55 [INFO] [stdout] | [INFO] [stdout] 16 | fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut sphere = &mut shapes[0]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut torus = &mut shapes[1]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot subtract `Color` from `Color` [INFO] [stdout] --> src/algebra/color.rs:162:38 [INFO] [stdout] | [INFO] [stdout] 162 | println!("diff of a + b = {}", c - c1); [INFO] [stdout] | - ^ -- Color [INFO] [stdout] | | [INFO] [stdout] | Color [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Sub` might be missing for `Color` [INFO] [stdout] --> src/algebra/color.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Color { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ must implement `Sub` [INFO] [stdout] note: the trait `Sub` must be implemented [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/ops/arith.rs:185:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EPSILON` is never used [INFO] [stdout] --> src/v2/solidobject.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const EPSILON: f32 = 1.0e-6; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uniform_optics`, `refractive_index`, `is_fully_enclose`, `cached_intersection_list`, and `enclosure_list` are never read [INFO] [stdout] --> src/v2/solidobject.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct SolidObject { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | pub center: Vector, [INFO] [stdout] 14 | pub uniform_optics: Optics, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub refractive_index: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub is_fully_enclose: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub cached_intersection_list: IntersectionList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | pub enclosure_list: IntersectionList, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EPSILON` is never used [INFO] [stdout] --> src/v2/availableshapes.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const EPSILON: f32 = 1.0e-6; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `radius` is never read [INFO] [stdout] --> src/v2/sphere.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Sphere { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 12 | pub solid_object: SolidObject, [INFO] [stdout] 13 | pub radius: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `radius1` and `radius2` are never read [INFO] [stdout] --> src/v2/torus.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Torus { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 12 | pub solid_object: SolidObject, [INFO] [stdout] 13 | pub radius1: f32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | pub radius2: f32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EPSILON` is never used [INFO] [stdout] --> src/v2/raytracemath.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EPSILON: f32 = 1.0e-6; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `magnitude`, `unit_vector`, `new`, `dot_product`, and `cross_product` are never used [INFO] [stdout] --> src/algebra/vector.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait VectorOps { [INFO] [stdout] | --------- associated items in this trait [INFO] [stdout] 13 | fn magnitude_squared(&self) -> f32; [INFO] [stdout] 14 | fn magnitude(&self) -> f32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | fn unit_vector(&self) -> Vector; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | fn new(x: f32, y: f32, z: f32) -> Vector; [INFO] [stdout] | ^^^ [INFO] [stdout] 17 | fn default() -> Vector; [INFO] [stdout] 18 | fn dot_product(a: &Vector, b: &Vector) -> f32; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | fn cross_product(a: &Vector, b: &Vector) -> Vector; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `validate`, `default`, and `new_from_rgb_luminosity` are never used [INFO] [stdout] --> src/algebra/color.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait ColorOps { [INFO] [stdout] | -------- associated items in this trait [INFO] [stdout] 14 | fn validate(&self) -> Result<(), RayTracerError>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | fn default() -> Color; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | fn new(r: f32, g: f32, b: f32) -> Color; [INFO] [stdout] 17 | fn new_from_rgb_luminosity(r: f32, g: f32, b: f32, luminositg: f32) -> Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/algebra/optics.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait OpticsOps { [INFO] [stdout] | --------- associated items in this trait [INFO] [stdout] 15 | fn default() -> Optics; [INFO] [stdout] 16 | fn new(matte_color: Color, glosse_color: Color, opacity: f32) -> Optics; [INFO] [stdout] | ^^^ [INFO] [stdout] 17 | fn validate_reflection_color(c: Color) -> Result<(), RayTracerError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn set_matte_color(&mut self, m: Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | fn set_gloss_color(&mut self, g: Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn get_matte_color(&self) -> &Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | fn get_gloss_color(&self) -> &Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | [INFO] [stdout] 27 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | fn set_opactiy(&mut self, o: f32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_VACUUM` is never used [INFO] [stdout] --> src/algebra/refraction.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const REFRACTION_VACUUM: f32 = 1.0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_AIR` is never used [INFO] [stdout] --> src/algebra/refraction.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const REFRACTION_AIR: f32 = 1.0003; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_ICE` is never used [INFO] [stdout] --> src/algebra/refraction.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const REFRACTION_ICE: f32 = 1.3100; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_WATER` is never used [INFO] [stdout] --> src/algebra/refraction.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const REFRACTION_WATER: f32 = 1.3330; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_GASOLINE` is never used [INFO] [stdout] --> src/algebra/refraction.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const REFRACTION_GASOLINE: f32 = 1.3980; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_GLASS` is never used [INFO] [stdout] --> src/algebra/refraction.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const REFRACTION_GLASS: f32 = 1.5500; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_SAPPHIRE` is never used [INFO] [stdout] --> src/algebra/refraction.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const REFRACTION_SAPPHIRE: f32 = 1.7700; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_DIAMOND` is never used [INFO] [stdout] --> src/algebra/refraction.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const REFRACTION_DIAMOND: f32 = 2.4190; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_MINIMUM` is never used [INFO] [stdout] --> src/algebra/refraction.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const REFRACTION_MINIMUM: f32 = 1.0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRACTION_MAXIMUM` is never used [INFO] [stdout] --> src/algebra/refraction.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const REFRACTION_MAXIMUM: f32 = 9.0000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_refraction` is never used [INFO] [stdout] --> src/algebra/refraction.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn validate_refraction(refraction: f32) -> Result<(), RayTracerError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EPSILON` is never used [INFO] [stdout] --> src/algebra/solidobject.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const EPSILON: f32 = 1.0e-6; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SolidObjectOps` is never used [INFO] [stdout] --> src/algebra/solidobject.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait SolidObjectOps { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pick_closest_intersection` is never used [INFO] [stdout] --> src/algebra/solidobject.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `center`, `uniform_optics`, `refractive_index`, `is_fully_enclose`, `cached_intersection_list`, and `enclosure_list` are never read [INFO] [stdout] --> src/algebra/solidobject.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct SolidObject { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 41 | pub center: Vector, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | pub uniform_optics: Optics, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 43 | pub refractive_index: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub is_fully_enclose: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | pub cached_intersection_list: IntersectionList, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | pub enclosure_list: IntersectionList, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/algebra/solidobject.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl SolidObject { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 50 | pub fn new() -> SolidObject { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pick_closest_intersection` is never used [INFO] [stdout] --> src/algebra/intersection.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/algebra/intersection.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Intersection { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 21 | fn new() -> Intersection { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RefractionInvalid` is never constructed [INFO] [stdout] --> src/utils/raytracer_error.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum RayTracerError { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | RefractionInvalid(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RayTracerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/sphere.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/sphere.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::optics::OpticsOps` [INFO] [stdout] --> src/v2/torus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::algebra::optics::OpticsOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::algebra::vector::VectorOps` [INFO] [stdout] --> src/v2/torus.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::algebra::vector::VectorOps; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `angle_in_degrees` [INFO] [stdout] --> src/v2/sphere.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | fn rotate_x(&mut self, angle_in_degrees: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_angle_in_degrees` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `angle_in_degrees` [INFO] [stdout] --> src/v2/torus.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | fn rotate_x(&mut self, angle_in_degrees: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_angle_in_degrees` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracer` (bin "raytracer") due to 3 previous errors; 56 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `gloss_factor` [INFO] [stdout] --> src/algebra/optics.rs:78:43 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gloss_factor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_matte_color` [INFO] [stdout] --> src/algebra/optics.rs:78:62 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_matte_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `raw_gloss_color` [INFO] [stdout] --> src/algebra/optics.rs:78:86 [INFO] [stdout] | [INFO] [stdout] 78 | fn set_matte_gloss_balance(&mut self, gloss_factor: f32, raw_matte_color: Color, raw_gloss_color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raw_gloss_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/algebra/solidobject.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/algebra/solidobject.rs:36:59 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/algebra/intersection.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/algebra/intersection.rs:16:55 [INFO] [stdout] | [INFO] [stdout] 16 | fn pick_closest_intersection(list: &IntersectionList, intersection: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut sphere = &mut shapes[0]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut torus = &mut shapes[1]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0369`. [INFO] [stdout] [INFO] [stderr] error: could not compile `raytracer` (bin "raytracer" test) due to 4 previous errors; 28 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b5bc25e9b5304039f199b56256f8c58d0e3935342fd31eec835a3a014e8176ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5bc25e9b5304039f199b56256f8c58d0e3935342fd31eec835a3a014e8176ea", kill_on_drop: false }` [INFO] [stdout] b5bc25e9b5304039f199b56256f8c58d0e3935342fd31eec835a3a014e8176ea