[INFO] cloning repository https://github.com/DemonusPC/ray-tracing-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DemonusPC/ray-tracing-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemonusPC%2Fray-tracing-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemonusPC%2Fray-tracing-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ccd50e8007f756a18f86ccecb99f6e36161c64e [INFO] building DemonusPC/ray-tracing-demo 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%2FDemonusPC%2Fray-tracing-demo" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DemonusPC/ray-tracing-demo 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/DemonusPC/ray-tracing-demo [INFO] finished tweaking git repo https://github.com/DemonusPC/ray-tracing-demo [INFO] tweaked toml for git repo https://github.com/DemonusPC/ray-tracing-demo written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/DemonusPC/ray-tracing-demo 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] a9a5cc33c164256dc9749b1381be5dfb83e30f6b7082db365e36a5d8733fcb55 [INFO] running `Command { std: "docker" "start" "-a" "a9a5cc33c164256dc9749b1381be5dfb83e30f6b7082db365e36a5d8733fcb55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9a5cc33c164256dc9749b1381be5dfb83e30f6b7082db365e36a5d8733fcb55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9a5cc33c164256dc9749b1381be5dfb83e30f6b7082db365e36a5d8733fcb55", kill_on_drop: false }` [INFO] [stdout] a9a5cc33c164256dc9749b1381be5dfb83e30f6b7082db365e36a5d8733fcb55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 2edbbd6c96b62cb18a058001c7929a7db8fb401d232e14c415dabc3adda7fee7 [INFO] running `Command { std: "docker" "start" "-a" "2edbbd6c96b62cb18a058001c7929a7db8fb401d232e14c415dabc3adda7fee7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling ray-trace v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hit::HitRecord` [INFO] [stdout] --> src/bvh.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{hit::HitRecord, utility::random_int_from_values, world::World}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `world::World` [INFO] [stdout] --> src/models.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{aabb::{self, AABB}, world::World}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::Material` [INFO] [stdout] --> src/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::material::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/models.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `png::Decoder` [INFO] [stdout] --> src/texture.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use png::Decoder; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random_double` [INFO] [stdout] --> src/texture.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | utility::{random_double, random_int_from_values}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bvh.rs:160:26 [INFO] [stdout] | [INFO] [stdout] 160 | let (object, material) = world.get(self.id.unwrap()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:68:23 [INFO] [stdout] | [INFO] [stdout] 68 | fn emitted(&self, u: f64, v: f64, p: &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:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:68:39 [INFO] [stdout] | [INFO] [stdout] 68 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | fn emitted(&self, u: f64, v: f64, p: &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:109:31 [INFO] [stdout] | [INFO] [stdout] 109 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:173:23 [INFO] [stdout] | [INFO] [stdout] 173 | fn emitted(&self, u: f64, v: f64, p: &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:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:173:39 [INFO] [stdout] | [INFO] [stdout] 173 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/material.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | ray_in: &Ray, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rec` [INFO] [stdout] --> src/material.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | rec: &HitRecord, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attenuation` [INFO] [stdout] --> src/material.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | attenuation: &mut Vec3, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attenuation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scattered` [INFO] [stdout] --> src/material.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | scattered: &mut Ray, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scattered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/models.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_sphere_uv(p: &Vec3, u: f64, v: f64) -> (f64, f64) { [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/models.rs:31:44 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_sphere_uv(p: &Vec3, u: f64, v: f64) -> (f64, f64) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:81:40 [INFO] [stdout] | [INFO] [stdout] 81 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:231:28 [INFO] [stdout] | [INFO] [stdout] 231 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:231:40 [INFO] [stdout] | [INFO] [stdout] 231 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:294:28 [INFO] [stdout] | [INFO] [stdout] 294 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:294:40 [INFO] [stdout] | [INFO] [stdout] 294 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:358:28 [INFO] [stdout] | [INFO] [stdout] 358 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:358:40 [INFO] [stdout] | [INFO] [stdout] 358 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:416:28 [INFO] [stdout] | [INFO] [stdout] 416 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:416:40 [INFO] [stdout] | [INFO] [stdout] 416 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | fn value(&self, u: f64, v: f64, p: &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/texture.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn value(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:33:37 [INFO] [stdout] | [INFO] [stdout] 33 | fn value(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:128:21 [INFO] [stdout] | [INFO] [stdout] 128 | fn value(&self, u: f64, v: f64, p: &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/texture.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | fn value(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/texture.rs:198:16 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn new(filename: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:218:37 [INFO] [stdout] | [INFO] [stdout] 218 | fn value(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tnode` [INFO] [stdout] --> src/world.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let tnode = BvhNode::new_from_list(&mut objects, 0.0, 10.0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tnode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/transforms.rs:136:28 [INFO] [stdout] | [INFO] [stdout] 136 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/transforms.rs:136:40 [INFO] [stdout] | [INFO] [stdout] 136 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `id` is never read [INFO] [stdout] --> src/main.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | id += 1; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pertext2` [INFO] [stdout] --> src/main.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | let pertext2 = PerlinTexture::new(4.0); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pertext2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `id` is never read [INFO] [stdout] --> src/main.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 314 | id += 1; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene_new` is never used [INFO] [stdout] --> src/main.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn random_scene_new() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `earth` is never used [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn earth() -> World { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_light` is never used [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn simple_light() -> World { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `empty`, `hit`, and `surrounding_box_mut` are never used [INFO] [stdout] --> src/aabb.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl AABB { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn hit(&self, r: &Ray, t_min: f64, t_max: f64) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn surrounding_box_mut(box0: &mut AABB, box1: AABB) -> AABB { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left`, `right`, and `id` are never read [INFO] [stdout] --> src/bvh.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BvhNode { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | pub left: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | pub right: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub node_box: AABB, [INFO] [stdout] 11 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `BvhNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hit` is never used [INFO] [stdout] --> src/bvh.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl BvhNode { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn hit( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `w` is never read [INFO] [stdout] --> src/camera.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | w: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_normal`, and `copy_into` are never used [INFO] [stdout] --> src/hit.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl HitRecord { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn set_normal(&mut self, v: Vec3) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn copy_into(&mut self, other: &HitRecord) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_checker`, `from_perlin`, and `from_image` are never used [INFO] [stdout] --> src/material.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Lambertian { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn from_checker(texture: CheckerTexture) -> Lambertian { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn from_perlin(texture: PerlinTexture) -> Lambertian { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn from_image(texture: ImageTexture) -> Lambertian { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Metal { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 79 | pub fn new(color: Vec3, fuzz: f64) -> Metal { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 126 | pub fn new(ri: f64) -> Dielectric { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(cen: Vec3, r: f64, id: usize) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 101 | impl MovingSphere { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 102 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POINT_COUNT` is never used [INFO] [stdout] --> src/texture.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const POINT_COUNT: i32 = 256; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_rgb` is never used [INFO] [stdout] --> src/texture.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl SolidColor { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn from_rgb(r: f64, g: f64, b: f64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/texture.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl CheckerTexture { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 44 | pub fn new(c1: Vec3, c2: Vec3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/texture.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl PerlinTexture { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 71 | pub fn new(scale: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `perlin_generate_perm` is never used [INFO] [stdout] --> src/texture.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn perlin_generate_perm() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permute` is never used [INFO] [stdout] --> src/texture.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn permute(p: &mut [i32], n: i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/texture.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl ImageTexture { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 198 | pub fn new(filename: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node` is never read [INFO] [stdout] --> src/world.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct World { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | node: BvhNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bounding_box` is never used [INFO] [stdout] --> src/world.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl World { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.52s [INFO] running `Command { std: "docker" "inspect" "2edbbd6c96b62cb18a058001c7929a7db8fb401d232e14c415dabc3adda7fee7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2edbbd6c96b62cb18a058001c7929a7db8fb401d232e14c415dabc3adda7fee7", kill_on_drop: false }` [INFO] [stdout] 2edbbd6c96b62cb18a058001c7929a7db8fb401d232e14c415dabc3adda7fee7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 25477182ead61e02f9a1ef5170221685167b44e7551efda18865cbed250d2ad6 [INFO] running `Command { std: "docker" "start" "-a" "25477182ead61e02f9a1ef5170221685167b44e7551efda18865cbed250d2ad6", kill_on_drop: false }` [INFO] [stderr] Compiling ray-trace v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hit::HitRecord` [INFO] [stdout] --> src/bvh.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{hit::HitRecord, utility::random_int_from_values, world::World}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `world::World` [INFO] [stdout] --> src/models.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{aabb::{self, AABB}, world::World}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::Material` [INFO] [stdout] --> src/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::material::Material; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/models.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `png::Decoder` [INFO] [stdout] --> src/texture.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use png::Decoder; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random_double` [INFO] [stdout] --> src/texture.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | utility::{random_double, random_int_from_values}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material` [INFO] [stdout] --> src/bvh.rs:160:26 [INFO] [stdout] | [INFO] [stdout] 160 | let (object, material) = world.get(self.id.unwrap()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:68:23 [INFO] [stdout] | [INFO] [stdout] 68 | fn emitted(&self, u: f64, v: f64, p: &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:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:68:39 [INFO] [stdout] | [INFO] [stdout] 68 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | fn emitted(&self, u: f64, v: f64, p: &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:109:31 [INFO] [stdout] | [INFO] [stdout] 109 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:173:23 [INFO] [stdout] | [INFO] [stdout] 173 | fn emitted(&self, u: f64, v: f64, p: &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:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:173:39 [INFO] [stdout] | [INFO] [stdout] 173 | fn emitted(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ray_in` [INFO] [stdout] --> src/material.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | ray_in: &Ray, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ray_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rec` [INFO] [stdout] --> src/material.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | rec: &HitRecord, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attenuation` [INFO] [stdout] --> src/material.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | attenuation: &mut Vec3, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attenuation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scattered` [INFO] [stdout] --> src/material.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | scattered: &mut Ray, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scattered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/models.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_sphere_uv(p: &Vec3, u: f64, v: f64) -> (f64, f64) { [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/models.rs:31:44 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn get_sphere_uv(p: &Vec3, u: f64, v: f64) -> (f64, f64) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:81:40 [INFO] [stdout] | [INFO] [stdout] 81 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:231:28 [INFO] [stdout] | [INFO] [stdout] 231 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:231:40 [INFO] [stdout] | [INFO] [stdout] 231 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:294:28 [INFO] [stdout] | [INFO] [stdout] 294 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:294:40 [INFO] [stdout] | [INFO] [stdout] 294 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:358:28 [INFO] [stdout] | [INFO] [stdout] 358 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:358:40 [INFO] [stdout] | [INFO] [stdout] 358 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/models.rs:416:28 [INFO] [stdout] | [INFO] [stdout] 416 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/models.rs:416:40 [INFO] [stdout] | [INFO] [stdout] 416 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | fn value(&self, u: f64, v: f64, p: &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/texture.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn value(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:33:37 [INFO] [stdout] | [INFO] [stdout] 33 | fn value(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:128:21 [INFO] [stdout] | [INFO] [stdout] 128 | fn value(&self, u: f64, v: f64, p: &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/texture.rs:128:29 [INFO] [stdout] | [INFO] [stdout] 128 | fn value(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/texture.rs:198:16 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn new(filename: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:218:37 [INFO] [stdout] | [INFO] [stdout] 218 | fn value(&self, u: f64, v: f64, p: &Vec3) -> Vec3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tnode` [INFO] [stdout] --> src/world.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let tnode = BvhNode::new_from_list(&mut objects, 0.0, 10.0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tnode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/transforms.rs:136:28 [INFO] [stdout] | [INFO] [stdout] 136 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/transforms.rs:136:40 [INFO] [stdout] | [INFO] [stdout] 136 | fn bounding_box(&self, time0: f64, time1: f64) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `id` is never read [INFO] [stdout] --> src/main.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | id += 1; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pertext2` [INFO] [stdout] --> src/main.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | let pertext2 = PerlinTexture::new(4.0); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pertext2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `id` is never read [INFO] [stdout] --> src/main.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 314 | id += 1; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_scene_new` is never used [INFO] [stdout] --> src/main.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn random_scene_new() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `earth` is never used [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn earth() -> World { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_light` is never used [INFO] [stdout] --> src/main.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn simple_light() -> World { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `empty`, `hit`, and `surrounding_box_mut` are never used [INFO] [stdout] --> src/aabb.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl AABB { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn hit(&self, r: &Ray, t_min: f64, t_max: f64) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn surrounding_box_mut(box0: &mut AABB, box1: AABB) -> AABB { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left`, `right`, and `id` are never read [INFO] [stdout] --> src/bvh.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BvhNode { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | pub left: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | pub right: Option>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub node_box: AABB, [INFO] [stdout] 11 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `BvhNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hit` is never used [INFO] [stdout] --> src/bvh.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl BvhNode { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn hit( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `w` is never read [INFO] [stdout] --> src/camera.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Camera { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | w: Vec3, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copy_into` is never used [INFO] [stdout] --> src/hit.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl HitRecord { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn copy_into(&mut self, other: &HitRecord) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_checker`, `from_perlin`, and `from_image` are never used [INFO] [stdout] --> src/material.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Lambertian { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn from_checker(texture: CheckerTexture) -> Lambertian { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn from_perlin(texture: PerlinTexture) -> Lambertian { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn from_image(texture: ImageTexture) -> Lambertian { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 78 | impl Metal { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 79 | pub fn new(color: Vec3, fuzz: f64) -> Metal { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/material.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 125 | impl Dielectric { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 126 | pub fn new(ri: f64) -> Dielectric { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(cen: Vec3, r: f64, id: usize) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 101 | impl MovingSphere { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 102 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `POINT_COUNT` is never used [INFO] [stdout] --> src/texture.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const POINT_COUNT: i32 = 256; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_rgb` is never used [INFO] [stdout] --> src/texture.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl SolidColor { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn from_rgb(r: f64, g: f64, b: f64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/texture.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl CheckerTexture { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 44 | pub fn new(c1: Vec3, c2: Vec3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/texture.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl PerlinTexture { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 71 | pub fn new(scale: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `perlin_generate_perm` is never used [INFO] [stdout] --> src/texture.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn perlin_generate_perm() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permute` is never used [INFO] [stdout] --> src/texture.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn permute(p: &mut [i32], n: i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/texture.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 197 | impl ImageTexture { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 198 | pub fn new(filename: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node` is never read [INFO] [stdout] --> src/world.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct World { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | node: BvhNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bounding_box` is never used [INFO] [stdout] --> src/world.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl World { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "25477182ead61e02f9a1ef5170221685167b44e7551efda18865cbed250d2ad6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25477182ead61e02f9a1ef5170221685167b44e7551efda18865cbed250d2ad6", kill_on_drop: false }` [INFO] [stdout] 25477182ead61e02f9a1ef5170221685167b44e7551efda18865cbed250d2ad6