[INFO] cloning repository https://github.com/ollisco5/Raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ollisco5/Raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Follisco5%2FRaytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Follisco5%2FRaytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5536c623e9e801e193c9f8fd87410e4b0c58540b [INFO] building ollisco5/Raytracer against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Follisco5%2FRaytracer" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ollisco5/Raytracer on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ollisco5/Raytracer [INFO] finished tweaking git repo https://github.com/ollisco5/Raytracer [INFO] tweaked toml for git repo https://github.com/ollisco5/Raytracer written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ollisco5/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded macaw v0.11.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 372073e391b807c0fd550677472bda147dcf3ae0a028017bb43da79fcbba9f07 [INFO] running `Command { std: "docker" "start" "-a" "372073e391b807c0fd550677472bda147dcf3ae0a028017bb43da79fcbba9f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "372073e391b807c0fd550677472bda147dcf3ae0a028017bb43da79fcbba9f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "372073e391b807c0fd550677472bda147dcf3ae0a028017bb43da79fcbba9f07", kill_on_drop: false }` [INFO] [stdout] 372073e391b807c0fd550677472bda147dcf3ae0a028017bb43da79fcbba9f07 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38220919b93a6874279c436a2103d3b9da53ce6f2ba53a3def3411b68eaf2037 [INFO] running `Command { std: "docker" "start" "-a" "38220919b93a6874279c436a2103d3b9da53ce6f2ba53a3def3411b68eaf2037", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.103 [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 rayon-core v1.9.1 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling glam v0.17.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling macaw v0.11.2 [INFO] [stderr] Compiling raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `vec_refract` [INFO] [stdout] --> src/material.rs:4:80 [INFO] [stdout] | [INFO] [stdout] 4 | random_unit_vector, random_vec_in_unit_sphere, vec_near_zero, vec_reflect, vec_refract, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/sphere.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::material::{self, Material}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HitRecord` [INFO] [stdout] --> src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use hittable::{HitRecord, Hittable}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `random_unit_vector` and `random_vec_in_hemisphere` [INFO] [stdout] --> src/main.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | use util::{random_f32, random_unit_vector, random_vec_in_hemisphere, write_pixel_color, *}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray` [INFO] [stdout] --> src/hittable.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ray` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_min` [INFO] [stdout] --> src/hittable.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_max` [INFO] [stdout] --> src/hittable.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/material.rs:74:28 [INFO] [stdout] | [INFO] [stdout] 74 | &Material::Light { color } => false, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `color: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:78:35 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn emitt(material: &Material, u: f32, v: f32, point: Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:78:43 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn emitt(material: &Material, u: f32, v: f32, point: Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/material.rs:78:51 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn emitt(material: &Material, u: f32, v: f32, point: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/util.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut rng = rand::thread_rng(); [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: multiple fields are never read [INFO] [stdout] --> src/camera.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | //Todo: Cleanup public [INFO] [stdout] 7 | pub aspect_ratio: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | pub viewport_height: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub viewport_width: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub focal_length: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | u: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] 17 | v: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] 18 | w: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `u` and `v` are never read [INFO] [stdout] --> src/hittable.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HitRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub u: f32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | pub v: f32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `HitRecord` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Glass` and `Light` are never constructed [INFO] [stdout] --> src/material.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Material { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Glass { refractive_index: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Light { color: Vec3 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Material` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `emitt` is never used [INFO] [stdout] --> src/material.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn emitt(material: &Material, u: f32, v: f32, point: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_vec_in_hemisphere` is never used [INFO] [stdout] --> src/util.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn random_vec_in_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_refract` is never used [INFO] [stdout] --> src/util.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn vec_refract(uv: &Vec3, normal: &Vec3, refractive_index_quotion: f32) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.47s [INFO] running `Command { std: "docker" "inspect" "38220919b93a6874279c436a2103d3b9da53ce6f2ba53a3def3411b68eaf2037", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38220919b93a6874279c436a2103d3b9da53ce6f2ba53a3def3411b68eaf2037", kill_on_drop: false }` [INFO] [stdout] 38220919b93a6874279c436a2103d3b9da53ce6f2ba53a3def3411b68eaf2037 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 20002299a59053145b47f268549d5adb865a339fe51fcd001c511df9a919ee2e [INFO] running `Command { std: "docker" "start" "-a" "20002299a59053145b47f268549d5adb865a339fe51fcd001c511df9a919ee2e", kill_on_drop: false }` [INFO] [stderr] Compiling raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `vec_refract` [INFO] [stdout] --> src/material.rs:4:80 [INFO] [stdout] | [INFO] [stdout] 4 | random_unit_vector, random_vec_in_unit_sphere, vec_near_zero, vec_reflect, vec_refract, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/sphere.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::material::{self, Material}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HitRecord` [INFO] [stdout] --> src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use hittable::{HitRecord, Hittable}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `random_unit_vector` and `random_vec_in_hemisphere` [INFO] [stdout] --> src/main.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | use util::{random_f32, random_unit_vector, random_vec_in_hemisphere, write_pixel_color, *}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray` [INFO] [stdout] --> src/hittable.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ray` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_min` [INFO] [stdout] --> src/hittable.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_max` [INFO] [stdout] --> src/hittable.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | fn hit(&self, ray: &Ray, t_min: f32, t_max: f32) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_t_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/material.rs:74:28 [INFO] [stdout] | [INFO] [stdout] 74 | &Material::Light { color } => false, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `color: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:78:35 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn emitt(material: &Material, u: f32, v: f32, point: Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:78:43 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn emitt(material: &Material, u: f32, v: f32, point: Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/material.rs:78:51 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn emitt(material: &Material, u: f32, v: f32, point: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/util.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/util.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut rng = rand::thread_rng(); [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: multiple fields are never read [INFO] [stdout] --> src/camera.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | //Todo: Cleanup public [INFO] [stdout] 7 | pub aspect_ratio: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 8 | pub viewport_height: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub viewport_width: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub focal_length: f32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | u: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] 17 | v: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] 18 | w: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `u` and `v` are never read [INFO] [stdout] --> src/hittable.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct HitRecord { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub u: f32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | pub v: f32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `HitRecord` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Glass` and `Light` are never constructed [INFO] [stdout] --> src/material.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Material { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Glass { refractive_index: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Light { color: Vec3 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Material` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `emitt` is never used [INFO] [stdout] --> src/material.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn emitt(material: &Material, u: f32, v: f32, point: Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_vec_in_hemisphere` is never used [INFO] [stdout] --> src/util.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn random_vec_in_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "20002299a59053145b47f268549d5adb865a339fe51fcd001c511df9a919ee2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20002299a59053145b47f268549d5adb865a339fe51fcd001c511df9a919ee2e", kill_on_drop: false }` [INFO] [stdout] 20002299a59053145b47f268549d5adb865a339fe51fcd001c511df9a919ee2e