[INFO] cloning repository https://github.com/telf-dev/parhelia [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/telf-dev/parhelia" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftelf-dev%2Fparhelia", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftelf-dev%2Fparhelia'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e1d3bbd1396d280e9c58b2cbc6f25e39bf064be9 [INFO] checking telf-dev/parhelia against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftelf-dev%2Fparhelia" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/telf-dev/parhelia 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/telf-dev/parhelia [INFO] finished tweaking git repo https://github.com/telf-dev/parhelia [INFO] tweaked toml for git repo https://github.com/telf-dev/parhelia written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/telf-dev/parhelia 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] dfc86dbd241e7dc4612305ff0e9bd5849431539a40ec4456f6e8382e07ae20a4 [INFO] running `Command { std: "docker" "start" "-a" "dfc86dbd241e7dc4612305ff0e9bd5849431539a40ec4456f6e8382e07ae20a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dfc86dbd241e7dc4612305ff0e9bd5849431539a40ec4456f6e8382e07ae20a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfc86dbd241e7dc4612305ff0e9bd5849431539a40ec4456f6e8382e07ae20a4", kill_on_drop: false }` [INFO] [stdout] dfc86dbd241e7dc4612305ff0e9bd5849431539a40ec4456f6e8382e07ae20a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] dcc2ef5bc59c1a3ab8a5bae31cd69fe236497fce8908a7193bb8f5b6b7de10f4 [INFO] running `Command { std: "docker" "start" "-a" "dcc2ef5bc59c1a3ab8a5bae31cd69fe236497fce8908a7193bb8f5b6b7de10f4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking num_cpus v1.16.0 [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 rayon v1.7.0 [INFO] [stderr] Checking raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/hit.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HitRecord`, `Hit` [INFO] [stdout] --> src/light.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use super::hit::{Hit, HitRecord}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec3` [INFO] [stdout] --> src/light.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use super::vec3::{Color, Point3, Vec3}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::index` [INFO] [stdout] --> src/material.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::seq::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hit` [INFO] [stdout] --> src/material.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use super::hit::{Hit, HitRecord, OccludingHit, World}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/material.rs:180:31 [INFO] [stdout] | [INFO] [stdout] 180 | let diffuse = (L.dot(rec.normal)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 180 - let diffuse = (L.dot(rec.normal)); [INFO] [stdout] 180 + let diffuse = L.dot(rec.normal); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/hit.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HitRecord`, `Hit` [INFO] [stdout] --> src/light.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use super::hit::{Hit, HitRecord}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec3` [INFO] [stdout] --> src/light.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use super::vec3::{Color, Point3, Vec3}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::index` [INFO] [stdout] --> src/material.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::seq::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hit` [INFO] [stdout] --> src/material.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use super::hit::{Hit, HitRecord, OccludingHit, World}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/material.rs:180:31 [INFO] [stdout] | [INFO] [stdout] 180 | let diffuse = (L.dot(rec.normal)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 180 - let diffuse = (L.dot(rec.normal)); [INFO] [stdout] 180 + let diffuse = L.dot(rec.normal); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Light` [INFO] [stdout] --> src/material.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use super::light::{Light, Lighting}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Light` [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use light::{Light, Lighting, SimpleLight}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vpos` [INFO] [stdout] --> src/material.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vpos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lights` [INFO] [stdout] --> src/material.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/material.rs:30:56 [INFO] [stdout] | [INFO] [stdout] 30 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material.rs:30:71 [INFO] [stdout] | [INFO] [stdout] 30 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vpos` [INFO] [stdout] --> src/material.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vpos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lights` [INFO] [stdout] --> src/material.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/material.rs:60:56 [INFO] [stdout] | [INFO] [stdout] 60 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vpos` [INFO] [stdout] --> src/material.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vpos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lights` [INFO] [stdout] --> src/material.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/material.rs:94:56 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material.rs:242:26 [INFO] [stdout] | [INFO] [stdout] 242 | fn lambertian(&self, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/sphere.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let normal = (p - self.centre) / self.radius; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light_color` [INFO] [stdout] --> src/main.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let light_color = match is_lit(rec.p, rec.normal, &world, &lights) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_light_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let r: f64 = (std::f64::consts::PI / 4.0).cos(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere_left` [INFO] [stdout] --> src/main.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | let sphere_left = Sphere::new(Point3::new(-1.0, 0.0, -1.0), 0.5, mat_left); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere_left_inner` [INFO] [stdout] --> src/main.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let sphere_left_inner = Sphere::new(Point3::new(-1.0, 0.0, -1.0), -0.4, mat_left_inner); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_left_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere_right` [INFO] [stdout] --> src/main.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | let sphere_right = Sphere::new(Point3::new(1.0, 0.0, -1.0), 0.5, mat_right); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light_top` [INFO] [stdout] --> src/main.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | let light_top = SimpleLight::new(Color::new(1.0, 1.0, 1.0), Color::new(1.0, 0.0, 0.0), Point3::new(0.0, 1.0, -1.0)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_light_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lambertian_hardcoded` is never used [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn lambertian_hardcoded(rec: &HitRecord, world: &World, lights: &Lighting, depth: u64) -> Color{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene` is never used [INFO] [stdout] --> src/main.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn random_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FOCAL_LENGTH` is never used [INFO] [stdout] --> src/camera.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | const FOCAL_LENGTH: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a` and `shine` are never read [INFO] [stdout] --> src/material.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct PhongMat { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 128 | a: f64, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 131 | shine: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `B` should have a snake case name [INFO] [stdout] --> src/material.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | B: f64, [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/material.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | let L = (light.origin()-rec.p).normalized(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/material.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | let R = L.reflect(rec.normal).normalized(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Light` [INFO] [stdout] --> src/material.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use super::light::{Light, Lighting}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Light` [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use light::{Light, Lighting, SimpleLight}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vpos` [INFO] [stdout] --> src/material.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vpos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lights` [INFO] [stdout] --> src/material.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)>{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/material.rs:30:56 [INFO] [stdout] | [INFO] [stdout] 30 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)>{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material.rs:30:71 [INFO] [stdout] | [INFO] [stdout] 30 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)>{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vpos` [INFO] [stdout] --> src/material.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vpos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lights` [INFO] [stdout] --> src/material.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/material.rs:60:56 [INFO] [stdout] | [INFO] [stdout] 60 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vpos` [INFO] [stdout] --> src/material.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vpos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lights` [INFO] [stdout] --> src/material.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/material.rs:94:56 [INFO] [stdout] | [INFO] [stdout] 94 | fn scatter(&self, vpos: Point3, lights: &Lighting, world: &World, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material.rs:242:26 [INFO] [stdout] | [INFO] [stdout] 242 | fn lambertian(&self, r_in: &Ray, rec: &HitRecord) -> Option<(Color, Ray)> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/sphere.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let normal = (p - self.centre) / self.radius; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light_color` [INFO] [stdout] --> src/main.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let light_color = match is_lit(rec.p, rec.normal, &world, &lights) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_light_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let r: f64 = (std::f64::consts::PI / 4.0).cos(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere_left` [INFO] [stdout] --> src/main.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | let sphere_left = Sphere::new(Point3::new(-1.0, 0.0, -1.0), 0.5, mat_left); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere_left_inner` [INFO] [stdout] --> src/main.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let sphere_left_inner = Sphere::new(Point3::new(-1.0, 0.0, -1.0), -0.4, mat_left_inner); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_left_inner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere_right` [INFO] [stdout] --> src/main.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | let sphere_right = Sphere::new(Point3::new(1.0, 0.0, -1.0), 0.5, mat_right); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `light_top` [INFO] [stdout] --> src/main.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | let light_top = SimpleLight::new(Color::new(1.0, 1.0, 1.0), Color::new(1.0, 0.0, 0.0), Point3::new(0.0, 1.0, -1.0)); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_light_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lambertian_hardcoded` is never used [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn lambertian_hardcoded(rec: &HitRecord, world: &World, lights: &Lighting, depth: u64) -> Color{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene` is never used [INFO] [stdout] --> src/main.rs:244:4 [INFO] [stdout] | [INFO] [stdout] 244 | fn random_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FOCAL_LENGTH` is never used [INFO] [stdout] --> src/camera.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | const FOCAL_LENGTH: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a` and `shine` are never read [INFO] [stdout] --> src/material.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub struct PhongMat { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 128 | a: f64, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 131 | shine: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `B` should have a snake case name [INFO] [stdout] --> src/material.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | B: f64, [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/material.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | let L = (light.origin()-rec.p).normalized(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R` should have a snake case name [INFO] [stdout] --> src/material.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | let R = L.reflect(rec.normal).normalized(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.25s [INFO] running `Command { std: "docker" "inspect" "dcc2ef5bc59c1a3ab8a5bae31cd69fe236497fce8908a7193bb8f5b6b7de10f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcc2ef5bc59c1a3ab8a5bae31cd69fe236497fce8908a7193bb8f5b6b7de10f4", kill_on_drop: false }` [INFO] [stdout] dcc2ef5bc59c1a3ab8a5bae31cd69fe236497fce8908a7193bb8f5b6b7de10f4