[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] 097afb917212ca979bf3549e98bedb0ab956898c [INFO] checking telf-dev/parhelia against try#35b6491ce6d2b388d0a5de1e59e2123604af807f for pr-136539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftelf-dev%2Fparhelia" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/telf-dev/parhelia on toolchain 35b6491ce6d2b388d0a5de1e59e2123604af807f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "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-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 40 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: failed to save last-use data [INFO] [stderr] This may prevent cargo from accurately tracking what is being used in its global cache. This information is used for automatically removing unused data in the cache. [INFO] [stderr] [INFO] [stderr] database or disk is full [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] Error code 13: Insertion failed because database is full [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa2bff81ffb1ec4337a3ffc867d589496bb07a305d206c7c38f91d4d181bb6a7 [INFO] running `Command { std: "docker" "start" "-a" "aa2bff81ffb1ec4337a3ffc867d589496bb07a305d206c7c38f91d4d181bb6a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa2bff81ffb1ec4337a3ffc867d589496bb07a305d206c7c38f91d4d181bb6a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa2bff81ffb1ec4337a3ffc867d589496bb07a305d206c7c38f91d4d181bb6a7", kill_on_drop: false }` [INFO] [stdout] aa2bff81ffb1ec4337a3ffc867d589496bb07a305d206c7c38f91d4d181bb6a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+35b6491ce6d2b388d0a5de1e59e2123604af807f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32ef3ef91907fe21963810721fc554e98701e136e87357767e10da4e071b088f [INFO] running `Command { std: "docker" "start" "-a" "32ef3ef91907fe21963810721fc554e98701e136e87357767e10da4e071b088f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling zerocopy v0.8.17 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking rand_core v0.9.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking parhelia 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` and `Hit` [INFO] [stdout] --> src/light.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use super::hit::{Hit, HitRecord}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec3` [INFO] [stdout] --> src/light.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | 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:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::seq::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hit` and `OccludingHit` [INFO] [stdout] --> src/material.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | use super::hit::{Hit, HitRecord, OccludingHit, World}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Light` and `Lighting` [INFO] [stdout] --> src/material.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use super::light::{Light, Lighting}; [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` and `Hit` [INFO] [stdout] --> src/light.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use super::hit::{Hit, HitRecord}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec3` [INFO] [stdout] --> src/light.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | 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:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::seq::index; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hit` and `OccludingHit` [INFO] [stdout] --> src/material.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | use super::hit::{Hit, HitRecord, OccludingHit, World}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Light` and `Lighting` [INFO] [stdout] --> src/material.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use super::light::{Light, Lighting}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/material.rs:206:29 [INFO] [stdout] | [INFO] [stdout] 206 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/vec3.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/vec3.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/main.rs:132:37 [INFO] [stdout] | [INFO] [stdout] 132 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/material.rs:206:29 [INFO] [stdout] | [INFO] [stdout] 206 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/vec3.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> src/vec3.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/material.rs:208:32 [INFO] [stdout] | [INFO] [stdout] 208 | let will_reflect = rng.gen::() < Self::reflectance(cos_theta, refraction_ratio); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | e: [rng.gen_range(r.clone()), rng.gen_range(r.clone()), rng.gen_range(r.clone())], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:41:47 [INFO] [stdout] | [INFO] [stdout] 41 | e: [rng.gen_range(r.clone()), rng.gen_range(r.clone()), rng.gen_range(r.clone())], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:41:73 [INFO] [stdout] | [INFO] [stdout] 41 | e: [rng.gen_range(r.clone()), rng.gen_range(r.clone()), rng.gen_range(r.clone())], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:83:35 [INFO] [stdout] | [INFO] [stdout] 83 | let p = Vec3::new(rng.gen_range(-1.0..1.0), rng.gen_range(-1.0..1.0), 0.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:83:61 [INFO] [stdout] | [INFO] [stdout] 83 | let p = Vec3::new(rng.gen_range(-1.0..1.0), rng.gen_range(-1.0..1.0), 0.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/material.rs:208:32 [INFO] [stdout] | [INFO] [stdout] 208 | let will_reflect = rng.gen::() < Self::reflectance(cos_theta, refraction_ratio); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/main.rs:133:41 [INFO] [stdout] | [INFO] [stdout] 133 | let random_u: f64 = rng.gen(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/main.rs:134:41 [INFO] [stdout] | [INFO] [stdout] 134 | let random_v: f64 = rng.gen(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | e: [rng.gen_range(r.clone()), rng.gen_range(r.clone()), rng.gen_range(r.clone())], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:41:47 [INFO] [stdout] | [INFO] [stdout] 41 | e: [rng.gen_range(r.clone()), rng.gen_range(r.clone()), rng.gen_range(r.clone())], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:41:73 [INFO] [stdout] | [INFO] [stdout] 41 | e: [rng.gen_range(r.clone()), rng.gen_range(r.clone()), rng.gen_range(r.clone())], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:83:35 [INFO] [stdout] | [INFO] [stdout] 83 | let p = Vec3::new(rng.gen_range(-1.0..1.0), rng.gen_range(-1.0..1.0), 0.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/vec3.rs:83:61 [INFO] [stdout] | [INFO] [stdout] 83 | let p = Vec3::new(rng.gen_range(-1.0..1.0), rng.gen_range(-1.0..1.0), 0.0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/main.rs:133:41 [INFO] [stdout] | [INFO] [stdout] 133 | let random_u: f64 = rng.gen(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/main.rs:134:41 [INFO] [stdout] | [INFO] [stdout] 134 | let random_v: f64 = rng.gen(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rec` [INFO] [stdout] --> src/hit.rs:64:25 [INFO] [stdout] | [INFO] [stdout] 64 | if let Some(rec) = object.hit(r, t_min, t_max){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lp` [INFO] [stdout] --> src/hit.rs:62:37 [INFO] [stdout] | [INFO] [stdout] 62 | fn occluding_hit(&self, r:&Ray, lp: Point3, t_min:f64, t_max: f64) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_lp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vpos` [INFO] [stdout] --> src/material.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | fn scatter(&self, vpos: Point3, 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:38:52 [INFO] [stdout] | [INFO] [stdout] 38 | fn scatter(&self, vpos: Point3, 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:71:23 [INFO] [stdout] | [INFO] [stdout] 71 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:71:37 [INFO] [stdout] | [INFO] [stdout] 71 | fn scatter(&self, vpos: Point3, 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:71:52 [INFO] [stdout] | [INFO] [stdout] 71 | fn scatter(&self, vpos: Point3, 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:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 102 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | fn scatter(&self, vpos: Point3, 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:195:23 [INFO] [stdout] | [INFO] [stdout] 195 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:195:37 [INFO] [stdout] | [INFO] [stdout] 195 | fn scatter(&self, vpos: Point3, 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: `rec` [INFO] [stdout] --> src/hit.rs:64:25 [INFO] [stdout] | [INFO] [stdout] 64 | if let Some(rec) = object.hit(r, t_min, t_max){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lp` [INFO] [stdout] --> src/hit.rs:62:37 [INFO] [stdout] | [INFO] [stdout] 62 | fn occluding_hit(&self, r:&Ray, lp: Point3, t_min:f64, t_max: f64) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_lp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vpos` [INFO] [stdout] --> src/material.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | fn scatter(&self, vpos: Point3, 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: `r` [INFO] [stdout] --> src/main.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | 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: `world` [INFO] [stdout] --> src/material.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | fn scatter(&self, vpos: Point3, 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:38:52 [INFO] [stdout] | [INFO] [stdout] 38 | fn scatter(&self, vpos: Point3, 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:71:23 [INFO] [stdout] | [INFO] [stdout] 71 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:71:37 [INFO] [stdout] | [INFO] [stdout] 71 | fn scatter(&self, vpos: Point3, 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:71:52 [INFO] [stdout] | [INFO] [stdout] 71 | fn scatter(&self, vpos: Point3, 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:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 102 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | fn scatter(&self, vpos: Point3, 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:195:23 [INFO] [stdout] | [INFO] [stdout] 195 | fn scatter(&self, vpos: Point3, 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: `world` [INFO] [stdout] --> src/material.rs:195:37 [INFO] [stdout] | [INFO] [stdout] 195 | fn scatter(&self, vpos: Point3, 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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let mut world = match args[2].parse::().expect("Scene argument should be a number!") { [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: constant `FOCAL_LENGTH` is never used [INFO] [stdout] --> src/camera.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | const FOCAL_LENGTH: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `occluding_hit` is never used [INFO] [stdout] --> src/hit.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait OccludingHit: Hit { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 82 | fn occluding_hit(&self, r:&Ray, lp: Point3, t_min:f64, t_max: f64) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/light.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl SimpleLight { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(strength: f64, i_diff: Color, i_spec: Color, o: Point3) -> SimpleLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Lighting` is never used [INFO] [stdout] --> src/light.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub type Lighting = Vec>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `strength`, `diffuse`, `specular`, and `origin` are never used [INFO] [stdout] --> src/light.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait Light: Send + Sync { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 48 | fn strength(&self) -> f64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 49 | fn diffuse(&self) -> Color; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 50 | fn specular(&self) -> Color; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 51 | fn origin(&self) -> Point3; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `occlusion` is never used [INFO] [stdout] --> src/material.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Material: Send + Sync { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn occlusion(&self) -> f64; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k_diff` and `k_spec` are never read [INFO] [stdout] --> src/material.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct Phongian { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 121 | k_diff: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 122 | k_spec: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ASPECT_RATIO` should have a snake case name [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let ASPECT_RATIO: f64 = config.as_w/config.as_h; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `aspect_ratio` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `IMAGE_WIDTH` should have a snake case name [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let IMAGE_WIDTH: u64 = config.im_width; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `image_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `IMAGE_HEIGHT` should have a snake case name [INFO] [stdout] --> src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let IMAGE_HEIGHT: u64 = ((IMAGE_WIDTH as f64) / ASPECT_RATIO) as u64; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `image_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SAMPLES_PER_PIXEL` should have a snake case name [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let SAMPLES_PER_PIXEL: u64 = config.samples_per_pixel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `samples_per_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_DEPTH` should have a snake case name [INFO] [stdout] --> src/main.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let MAX_DEPTH: u64 = config.max_depth; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `max_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/main.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | 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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let mut world = match args[2].parse::().expect("Scene argument should be a number!") { [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: constant `FOCAL_LENGTH` is never used [INFO] [stdout] --> src/camera.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | const FOCAL_LENGTH: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `occluding_hit` is never used [INFO] [stdout] --> src/hit.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait OccludingHit: Hit { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 82 | fn occluding_hit(&self, r:&Ray, lp: Point3, t_min:f64, t_max: f64) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/light.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl SimpleLight { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(strength: f64, i_diff: Color, i_spec: Color, o: Point3) -> SimpleLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Lighting` is never used [INFO] [stdout] --> src/light.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub type Lighting = Vec>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `strength`, `diffuse`, `specular`, and `origin` are never used [INFO] [stdout] --> src/light.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait Light: Send + Sync { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 48 | fn strength(&self) -> f64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 49 | fn diffuse(&self) -> Color; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 50 | fn specular(&self) -> Color; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 51 | fn origin(&self) -> Point3; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `occlusion` is never used [INFO] [stdout] --> src/material.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Material: Send + Sync { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn occlusion(&self) -> f64; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k_diff` and `k_spec` are never read [INFO] [stdout] --> src/material.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct Phongian { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 121 | k_diff: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 122 | k_spec: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ASPECT_RATIO` should have a snake case name [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let ASPECT_RATIO: f64 = config.as_w/config.as_h; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `aspect_ratio` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `IMAGE_WIDTH` should have a snake case name [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let IMAGE_WIDTH: u64 = config.im_width; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `image_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `IMAGE_HEIGHT` should have a snake case name [INFO] [stdout] --> src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let IMAGE_HEIGHT: u64 = ((IMAGE_WIDTH as f64) / ASPECT_RATIO) as u64; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `image_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SAMPLES_PER_PIXEL` should have a snake case name [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let SAMPLES_PER_PIXEL: u64 = config.samples_per_pixel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `samples_per_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MAX_DEPTH` should have a snake case name [INFO] [stdout] --> src/main.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let MAX_DEPTH: u64 = config.max_depth; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `max_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.77s [INFO] running `Command { std: "docker" "inspect" "32ef3ef91907fe21963810721fc554e98701e136e87357767e10da4e071b088f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32ef3ef91907fe21963810721fc554e98701e136e87357767e10da4e071b088f", kill_on_drop: false }` [INFO] [stdout] 32ef3ef91907fe21963810721fc554e98701e136e87357767e10da4e071b088f