[INFO] cloning repository https://github.com/diptodip/raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/diptodip/raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiptodip%2Fraytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiptodip%2Fraytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2e866ed24b717533d75e66c234e84c6e5d9e564c [INFO] checking diptodip/raytracer against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiptodip%2Fraytracer" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/diptodip/raytracer on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/diptodip/raytracer [INFO] finished tweaking git repo https://github.com/diptodip/raytracer [INFO] tweaked toml for git repo https://github.com/diptodip/raytracer written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/diptodip/raytracer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4aa163ee974dcbda33263082a50a4bff1b3fea76e84ecc6965af4052bc0675b7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4aa163ee974dcbda33263082a50a4bff1b3fea76e84ecc6965af4052bc0675b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4aa163ee974dcbda33263082a50a4bff1b3fea76e84ecc6965af4052bc0675b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4aa163ee974dcbda33263082a50a4bff1b3fea76e84ecc6965af4052bc0675b7", kill_on_drop: false }` [INFO] [stdout] 4aa163ee974dcbda33263082a50a4bff1b3fea76e84ecc6965af4052bc0675b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc4fe39a4fd85a6023210fc25ac7d7ae43b64d35c0727d1434bf7e87d6150d23 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "dc4fe39a4fd85a6023210fc25ac7d7ae43b64d35c0727d1434bf7e87d6150d23", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/linalg.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: `linalg::dot` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use linalg::dot; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/geometry.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rand::prelude::*` [INFO] [stdout] --> src/geometry.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `geometry::find_intersections` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use geometry::find_intersections; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `geometry::Intersection` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use geometry::Intersection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `geometry::Intersects` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use geometry::Intersects; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::colors::RGB` [INFO] [stdout] --> src/camera.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::colors::RGB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/ray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::materials::Material` [INFO] [stdout] --> src/ray.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ray.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | let r2_par = (-(1.0 - r2_per.length_squared()).sqrt() * intersection.local_normal); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:135:39 [INFO] [stdout] | [INFO] [stdout] 135 | image[row][col][0] += (color.r / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:136:39 [INFO] [stdout] | [INFO] [stdout] 136 | image[row][col][1] += (color.g / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 137 | image[row][col][2] += (color.b / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:289:39 [INFO] [stdout] | [INFO] [stdout] 289 | image[row][col][0] += (color.r / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:290:39 [INFO] [stdout] | [INFO] [stdout] 290 | image[row][col][1] += (color.g / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:291:39 [INFO] [stdout] | [INFO] [stdout] 291 | image[row][col][2] += (color.b / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/linalg.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: `linalg::dot` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use linalg::dot; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/geometry.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::rand::prelude::*` [INFO] [stdout] --> src/geometry.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `geometry::find_intersections` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use geometry::find_intersections; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `geometry::Intersection` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use geometry::Intersection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `geometry::Intersects` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use geometry::Intersects; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::colors::RGB` [INFO] [stdout] --> src/camera.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::colors::RGB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/ray.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::materials::Material` [INFO] [stdout] --> src/ray.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::materials::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ray.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | let r2_par = (-(1.0 - r2_per.length_squared()).sqrt() * intersection.local_normal); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:135:39 [INFO] [stdout] | [INFO] [stdout] 135 | image[row][col][0] += (color.r / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:136:39 [INFO] [stdout] | [INFO] [stdout] 136 | image[row][col][1] += (color.g / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:137:39 [INFO] [stdout] | [INFO] [stdout] 137 | image[row][col][2] += (color.b / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:289:39 [INFO] [stdout] | [INFO] [stdout] 289 | image[row][col][0] += (color.r / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:290:39 [INFO] [stdout] | [INFO] [stdout] 290 | image[row][col][1] += (color.g / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:291:39 [INFO] [stdout] | [INFO] [stdout] 291 | image[row][col][2] += (color.b / samples_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel_size` [INFO] [stdout] --> src/main.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | let (rows, cols, pixel_size) = imsize_to_pixels( [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample` [INFO] [stdout] --> src/main.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | for sample in 0..samples_per_pixel as usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel_size` [INFO] [stdout] --> src/main.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let (rows, cols, pixel_size) = imsize_to_pixels( [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample` [INFO] [stdout] --> src/main.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | for sample in 0..samples_per_pixel as usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersectable` [INFO] [stdout] --> src/ray.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn diffuse_bounce(intersection: &Intersection, intersectable: &Intersectable) -> Ray { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersectable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel_size` [INFO] [stdout] --> src/main.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | let (rows, cols, pixel_size) = imsize_to_pixels( [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersectable` [INFO] [stdout] --> src/ray.rs:39:45 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn reflect(intersection: &Intersection, intersectable: &Intersectable, ray: &Ray) -> Ray { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersectable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersections` [INFO] [stdout] --> src/ray.rs:111:10 [INFO] [stdout] | [INFO] [stdout] 111 | let (intersections, result) = find_intersections(ray, world); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample` [INFO] [stdout] --> src/main.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | for sample in 0..samples_per_pixel as usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fuzz` [INFO] [stdout] --> src/ray.rs:129:52 [INFO] [stdout] | [INFO] [stdout] 129 | } else if let Surface::FuzzyReflective(fuzz) = surface { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fuzz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel_size` [INFO] [stdout] --> src/main.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let (rows, cols, pixel_size) = imsize_to_pixels( [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/ray.rs:138:47 [INFO] [stdout] | [INFO] [stdout] 138 | } else if let Surface::Refractive(r) = surface { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample` [INFO] [stdout] --> src/main.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | for sample in 0..samples_per_pixel as usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersectable` [INFO] [stdout] --> src/ray.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn diffuse_bounce(intersection: &Intersection, intersectable: &Intersectable) -> Ray { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersectable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersectable` [INFO] [stdout] --> src/ray.rs:39:45 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn reflect(intersection: &Intersection, intersectable: &Intersectable, ray: &Ray) -> Ray { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersectable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersections` [INFO] [stdout] --> src/ray.rs:111:10 [INFO] [stdout] | [INFO] [stdout] 111 | let (intersections, result) = find_intersections(ray, world); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fuzz` [INFO] [stdout] --> src/ray.rs:129:52 [INFO] [stdout] | [INFO] [stdout] 129 | } else if let Surface::FuzzyReflective(fuzz) = surface { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_fuzz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/ray.rs:138:47 [INFO] [stdout] | [INFO] [stdout] 138 | } else if let Surface::Refractive(r) = surface { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `imsize_to_fov` [INFO] [stdout] --> src/camera.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn imsize_to_fov(image_plane_height: f64, image_plane_width: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_spheres` [INFO] [stdout] --> src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn test_spheres() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `imsize_to_fov` [INFO] [stdout] --> src/camera.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn imsize_to_fov(image_plane_height: f64, image_plane_width: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_spheres` [INFO] [stdout] --> src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn test_spheres() { [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 [unoptimized + debuginfo] target(s) in 3.22s [INFO] running `Command { std: "docker" "inspect" "dc4fe39a4fd85a6023210fc25ac7d7ae43b64d35c0727d1434bf7e87d6150d23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc4fe39a4fd85a6023210fc25ac7d7ae43b64d35c0727d1434bf7e87d6150d23", kill_on_drop: false }` [INFO] [stdout] dc4fe39a4fd85a6023210fc25ac7d7ae43b64d35c0727d1434bf7e87d6150d23