[INFO] cloning repository https://github.com/mapi456/rtow_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mapi456/rtow_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmapi456%2Frtow_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmapi456%2Frtow_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc881dc4bc7b1aa06f319c320447ca3d51966bae [INFO] checking mapi456/rtow_rust against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmapi456%2Frtow_rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mapi456/rtow_rust on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mapi456/rtow_rust [INFO] finished tweaking git repo https://github.com/mapi456/rtow_rust [INFO] tweaked toml for git repo https://github.com/mapi456/rtow_rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mapi456/rtow_rust 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nalgebra-macros v0.1.0 [INFO] [stderr] Downloaded bytemuck v1.15.0 [INFO] [stderr] Downloaded num-rational v0.4.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.81 [INFO] [stderr] Downloaded matrixmultiply v0.3.8 [INFO] [stderr] Downloaded wide v0.7.17 [INFO] [stderr] Downloaded rand_distr v0.4.3 [INFO] [stderr] Downloaded safe_arch v0.7.1 [INFO] [stderr] Downloaded statrs v0.16.0 [INFO] [stderr] Downloaded simba v0.6.0 [INFO] [stderr] Downloaded approx v0.5.1 [INFO] [stderr] Downloaded num-complex v0.4.5 [INFO] [stderr] Downloaded nalgebra v0.29.0 [INFO] [stderr] Downloaded libc v0.2.154 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fff224ae6999241bea1efd002efd4c34d8fea5bb4247c0a5353e7cefa19375b6 [INFO] running `Command { std: "docker" "start" "-a" "fff224ae6999241bea1efd002efd4c34d8fea5bb4247c0a5353e7cefa19375b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fff224ae6999241bea1efd002efd4c34d8fea5bb4247c0a5353e7cefa19375b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fff224ae6999241bea1efd002efd4c34d8fea5bb4247c0a5353e7cefa19375b6", kill_on_drop: false }` [INFO] [stdout] fff224ae6999241bea1efd002efd4c34d8fea5bb4247c0a5353e7cefa19375b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5637529564cc7a15e1e8927ae27f91aca2576d5b174540d6fe4562efc13dc7d [INFO] running `Command { std: "docker" "start" "-a" "c5637529564cc7a15e1e8927ae27f91aca2576d5b174540d6fe4562efc13dc7d", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking wide v0.7.17 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking simba v0.6.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Checking nalgebra v0.29.0 [INFO] [stderr] Checking statrs v0.16.0 [INFO] [stderr] Checking rtow_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Material` [INFO] [stdout] --> src/main.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | use materials::{MatRc, Material}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `distributions::Distribution` and `rngs::OsRng` [INFO] [stdout] --> src/common/vec3.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{ distributions::Distribution, rngs::OsRng }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `standard_normal` [INFO] [stdout] --> src/common/vec3.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | use super::random::{ random_f64, random_f64_standard, standard_normal }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UNIFORM_INCL` should have an upper camel case name [INFO] [stdout] --> src/common/random.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | UNIFORM_INCL(f64, f64) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UniformIncl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Material` [INFO] [stdout] --> src/main.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | use materials::{MatRc, Material}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `distributions::Distribution` and `rngs::OsRng` [INFO] [stdout] --> src/common/vec3.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{ distributions::Distribution, rngs::OsRng }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `standard_normal` [INFO] [stdout] --> src/common/vec3.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | use super::random::{ random_f64, random_f64_standard, standard_normal }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UNIFORM_INCL` should have an upper camel case name [INFO] [stdout] --> src/common/random.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | UNIFORM_INCL(f64, f64) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `UniformIncl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/materials/lambertian.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | ray_in: & Ray, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/materials/lambertian.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | ray_in: & Ray, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut world = HittableList::new(); [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: function `ray_colour` is never used [INFO] [stdout] --> src/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn ray_colour(ray: & Ray, world: & dyn Hittable) -> Colour{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TO_COLOUR` is never used [INFO] [stdout] --> src/common/colour.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const TO_COLOUR : f64 = 255.999; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/ray.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 10 | pub fn new() -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_on_hemisphere` is never used [INFO] [stdout] --> src/common/vec3.rs:347:8 [INFO] [stdout] | [INFO] [stdout] 347 | pub fn random_on_hemisphere(normal: & Vector3) -> Vector3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `size`, and `contains` are never used [INFO] [stdout] --> src/common/interval.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Interval { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new() -> Interval { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn size(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn contains(&self, x: f64) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY` is never used [INFO] [stdout] --> src/common/interval.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const EMPTY: Interval = Interval{min: f64::INFINITY, max: f64::NEG_INFINITY}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNIVERSE` is never used [INFO] [stdout] --> src/common/interval.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const UNIVERSE: Interval = Interval{min: f64::NEG_INFINITY, max: f64::INFINITY}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NORMAL` is never constructed [INFO] [stdout] --> src/common/random.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Distributions { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | NORMAL(f64, f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `standard_normal` is never used [INFO] [stdout] --> src/common/random.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn standard_normal() -> Normal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normal` is never used [INFO] [stdout] --> src/common/random.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn normal(mu: f64, std_dev: f64) -> Normal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `standard_uniform` is never used [INFO] [stdout] --> src/common/random.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn standard_uniform() -> Uniform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `standard_uniform_incl` is never used [INFO] [stdout] --> src/common/random.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn standard_uniform_incl() -> Uniform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/primitive/sphere.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(material: & Rc>) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `material` is never used [INFO] [stdout] --> src/primitive/hittable.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl HitRecord { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn material<'a>(&self) -> Rc>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/primitive/hittable_list.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl HittableList<'_> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 13 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build` is never used [INFO] [stdout] --> src/primitive/hittable_list.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a> HittableList<'a> { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn build(object: impl Hittable + 'a) -> HittableList<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/engine/camera.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl Camera { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 92 | pub fn new() -> Camera { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `build`, and `build_explicit` are never used [INFO] [stdout] --> src/materials/lambertian.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Lambertian { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 14 | pub fn new() -> Lambertian { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn build(colour: Colour) -> Lambertian { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn build_explicit(r: f64, g: f64, b: f64) -> Lambertian { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `build`, and `build_explicit` are never used [INFO] [stdout] --> src/materials/metal.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Metal { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 15 | pub fn new() -> Metal { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn build(colour: Colour, fuzz: f64) -> Metal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn build_explicit(r: f64, g: f64, b: f64, fuzz: f64) -> Metal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `albedo` is never read [INFO] [stdout] --> src/materials/dielectric.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Dialectric { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 10 | albedo: Colour, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `build`, and `build_explicit` are never used [INFO] [stdout] --> src/materials/dielectric.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Dialectric { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 16 | pub fn new() -> Dialectric { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn build(colour: Colour, refractive_index: f64) -> Dialectric { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn build_explicit(r: f64, g: f64, b: f64, refractive_index: f64) -> Dialectric { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut world = HittableList::new(); [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: function `ray_colour` is never used [INFO] [stdout] --> src/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn ray_colour(ray: & Ray, world: & dyn Hittable) -> Colour{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TO_COLOUR` is never used [INFO] [stdout] --> src/common/colour.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const TO_COLOUR : f64 = 255.999; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/ray.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 10 | pub fn new() -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_on_hemisphere` is never used [INFO] [stdout] --> src/common/vec3.rs:347:8 [INFO] [stdout] | [INFO] [stdout] 347 | pub fn random_on_hemisphere(normal: & Vector3) -> Vector3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `size`, and `contains` are never used [INFO] [stdout] --> src/common/interval.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Interval { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new() -> Interval { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn size(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn contains(&self, x: f64) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY` is never used [INFO] [stdout] --> src/common/interval.rs:50:7 [INFO] [stdout] | [INFO] [stdout] 50 | const EMPTY: Interval = Interval{min: f64::INFINITY, max: f64::NEG_INFINITY}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNIVERSE` is never used [INFO] [stdout] --> src/common/interval.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | const UNIVERSE: Interval = Interval{min: f64::NEG_INFINITY, max: f64::INFINITY}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NORMAL` is never constructed [INFO] [stdout] --> src/common/random.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Distributions { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | NORMAL(f64, f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `standard_normal` is never used [INFO] [stdout] --> src/common/random.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn standard_normal() -> Normal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normal` is never used [INFO] [stdout] --> src/common/random.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn normal(mu: f64, std_dev: f64) -> Normal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `standard_uniform` is never used [INFO] [stdout] --> src/common/random.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn standard_uniform() -> Uniform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `standard_uniform_incl` is never used [INFO] [stdout] --> src/common/random.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn standard_uniform_incl() -> Uniform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/primitive/sphere.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(material: & Rc>) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `material` is never used [INFO] [stdout] --> src/primitive/hittable.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl HitRecord { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn material<'a>(&self) -> Rc>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/primitive/hittable_list.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl HittableList<'_> { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 13 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build` is never used [INFO] [stdout] --> src/primitive/hittable_list.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl<'a> HittableList<'a> { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn build(object: impl Hittable + 'a) -> HittableList<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/engine/camera.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl Camera { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 92 | pub fn new() -> Camera { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `build`, and `build_explicit` are never used [INFO] [stdout] --> src/materials/lambertian.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Lambertian { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 14 | pub fn new() -> Lambertian { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn build(colour: Colour) -> Lambertian { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn build_explicit(r: f64, g: f64, b: f64) -> Lambertian { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `build`, and `build_explicit` are never used [INFO] [stdout] --> src/materials/metal.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Metal { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 15 | pub fn new() -> Metal { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn build(colour: Colour, fuzz: f64) -> Metal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn build_explicit(r: f64, g: f64, b: f64, fuzz: f64) -> Metal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `albedo` is never read [INFO] [stdout] --> src/materials/dielectric.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Dialectric { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 10 | albedo: Colour, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `build`, and `build_explicit` are never used [INFO] [stdout] --> src/materials/dielectric.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Dialectric { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 16 | pub fn new() -> Dialectric { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn build(colour: Colour, refractive_index: f64) -> Dialectric { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn build_explicit(r: f64, g: f64, b: f64, refractive_index: f64) -> Dialectric { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.07s [INFO] running `Command { std: "docker" "inspect" "c5637529564cc7a15e1e8927ae27f91aca2576d5b174540d6fe4562efc13dc7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5637529564cc7a15e1e8927ae27f91aca2576d5b174540d6fe4562efc13dc7d", kill_on_drop: false }` [INFO] [stdout] c5637529564cc7a15e1e8927ae27f91aca2576d5b174540d6fe4562efc13dc7d