[INFO] cloning repository https://github.com/mikialex/rainray [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mikialex/rainray" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikialex%2Frainray", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikialex%2Frainray'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 258d9642551d32b734b46619a3222ae7036c48e8 [INFO] checking mikialex/rainray against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikialex%2Frainray" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mikialex/rainray on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mikialex/rainray [INFO] finished tweaking git repo https://github.com/mikialex/rainray [INFO] tweaked toml for git repo https://github.com/mikialex/rainray written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mikialex/rainray already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded inflate v0.4.4 [INFO] [stderr] Downloaded num-derive v0.2.3 [INFO] [stderr] Downloaded tiff v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4361fe5222aae28155b9b39c9edb4a90801eb2d3265e0579c424c6e64b19d7f3 [INFO] running `Command { std: "docker" "start" "-a" "4361fe5222aae28155b9b39c9edb4a90801eb2d3265e0579c424c6e64b19d7f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4361fe5222aae28155b9b39c9edb4a90801eb2d3265e0579c424c6e64b19d7f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4361fe5222aae28155b9b39c9edb4a90801eb2d3265e0579c424c6e64b19d7f3", kill_on_drop: false }` [INFO] [stdout] 4361fe5222aae28155b9b39c9edb4a90801eb2d3265e0579c424c6e64b19d7f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7b0fed014c642b838b11c420eef63ba4f14e20e10111340fe5171eba68bde38 [INFO] running `Command { std: "docker" "start" "-a" "c7b0fed014c642b838b11c420eef63ba4f14e20e10111340fe5171eba68bde38", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking byteorder v1.2.7 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Compiling num-derive v0.2.3 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking owning_ref v0.4.0 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking smallvec v0.6.9 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Checking regex-syntax v0.6.5 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking inflate v0.4.4 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking rand_os v0.1.2 [INFO] [stderr] Checking num_cpus v1.9.0 [INFO] [stderr] Checking clicolors-control v1.0.0 [INFO] [stderr] Checking termios v0.3.1 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking gif v0.10.1 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking number_prefix v0.2.8 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Checking num-iter v0.1.37 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Checking console v0.7.5 [INFO] [stderr] Checking indicatif v0.11.0 [INFO] [stderr] Checking tiff v0.2.1 [INFO] [stderr] Checking image v0.20.1 [INFO] [stderr] Checking rainray v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `x` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | x, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `X` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `y` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | y, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `z` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | z, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `Z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::mesh::*` [INFO] [stdout] --> src/geometry/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use self::mesh::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::plane::*` [INFO] [stdout] --> src/geometry/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use self::plane::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | x, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `X` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `y` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | y, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `z` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | z, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `Z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::mesh::*` [INFO] [stdout] --> src/geometry/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use self::mesh::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::plane::*` [INFO] [stdout] --> src/geometry/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use self::plane::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `into_ray` [INFO] [stdout] --> src/material.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn next_ray(&self, into_ray: &Ray, intersection: &Intersection) -> Ray { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_into_ray` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `into_ray` [INFO] [stdout] --> src/material.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn next_ray(&self, into_ray: &Ray, intersection: &Intersection) -> Ray { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_into_ray` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `look_up_ray` [INFO] [stdout] --> src/material.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn collect_energy(&self, look_up_ray: &Ray) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_look_up_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `look_up_ray` [INFO] [stdout] --> src/material.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn collect_energy(&self, look_up_ray: &Ray) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_look_up_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/material.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | intersection: &Intersection, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/material.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | intersection: &Intersection, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_ray` [INFO] [stdout] --> src/material.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | in_ray: &Ray, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_ray` [INFO] [stdout] --> src/material.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | in_ray: &Ray, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_ray` [INFO] [stdout] --> src/material.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | out_ray: &Ray, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_ray` [INFO] [stdout] --> src/material.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | out_ray: &Ray, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/material.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/material.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_ray` [INFO] [stdout] --> src/material.rs:63:53 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_ray` [INFO] [stdout] --> src/material.rs:63:53 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_ray` [INFO] [stdout] --> src/material.rs:63:67 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_ray` [INFO] [stdout] --> src/material.rs:63:67 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/math/rand.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn cosine_sample_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/math/rand.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn cosine_sample_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SplitMethod` is never used [INFO] [stdout] --> src/bvh.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum SplitMethod { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SplitMethod` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SplitMethod` is never used [INFO] [stdout] --> src/bvh.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum SplitMethod { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SplitMethod` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Axis` is never used [INFO] [stdout] --> src/bvh.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Axis` is never used [INFO] [stdout] --> src/bvh.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BVHNode` is never constructed [INFO] [stdout] --> src/bvh.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BVHNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BVHNode` is never constructed [INFO] [stdout] --> src/bvh.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BVHNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BVH_MAX_BIN_SIZE` is never used [INFO] [stdout] --> src/bvh.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const BVH_MAX_BIN_SIZE: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BVH_MAX_DEPTH` is never used [INFO] [stdout] --> src/bvh.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const BVH_MAX_DEPTH: u64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BVH_MAX_BIN_SIZE` is never used [INFO] [stdout] --> src/bvh.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const BVH_MAX_BIN_SIZE: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BVH_MAX_DEPTH` is never used [INFO] [stdout] --> src/bvh.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const BVH_MAX_DEPTH: u64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `build_from_range_primitives`, `computed_split_axis`, `should_split`, and `split` are never used [INFO] [stdout] --> src/bvh.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl BVHNode { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 31 | pub fn build_from_range_primitives( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn computed_split_axis(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn should_split(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn split(&mut self, primtive_list: &mut [Primitive], spliter: &dyn Fn(&mut BVHNode) -> ()) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `build_from_range_primitives`, `computed_split_axis`, `should_split`, and `split` are never used [INFO] [stdout] --> src/bvh.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl BVHNode { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 31 | pub fn build_from_range_primitives( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn computed_split_axis(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn should_split(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn split(&mut self, primtive_list: &mut [Primitive], spliter: &dyn Fn(&mut BVHNode) -> ()) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_equal_counts` is never used [INFO] [stdout] --> src/bvh.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn build_equal_counts(node: &mut BVHNode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_equal_counts` is never used [INFO] [stdout] --> src/bvh.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn build_equal_counts(node: &mut BVHNode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Primitive` is never constructed [INFO] [stdout] --> src/bvh.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Primitive { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Primitive` is never constructed [INFO] [stdout] --> src/bvh.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Primitive { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cmp_center_x`, `cmp_center_y`, and `cmp_center_z` are never used [INFO] [stdout] --> src/bvh.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl Primitive { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 93 | pub fn cmp_center_x(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn cmp_center_y(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn cmp_center_z(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cmp_center_x`, `cmp_center_y`, and `cmp_center_z` are never used [INFO] [stdout] --> src/bvh.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl Primitive { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 93 | pub fn cmp_center_x(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn cmp_center_y(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn cmp_center_z(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BVHAccel` is never constructed [INFO] [stdout] --> src/bvh.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct BVHAccel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BVHAccel` is never constructed [INFO] [stdout] --> src/bvh.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct BVHAccel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build` is never used [INFO] [stdout] --> src/bvh.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl BVHAccel { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 124 | pub fn build(primitives: Vec) -> BVHAccel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_range_primitives_bounding` is never used [INFO] [stdout] --> src/bvh.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn get_range_primitives_bounding(primitive_list: &Vec, start: u64, count: u64) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_longest_axis_of_bounding` is never used [INFO] [stdout] --> src/bvh.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn get_longest_axis_of_bounding(bbox: &Box3) -> Axis { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build` is never used [INFO] [stdout] --> src/bvh.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl BVHAccel { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 124 | pub fn build(primitives: Vec) -> BVHAccel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/frame.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Frame { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn clear(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_range_primitives_bounding` is never used [INFO] [stdout] --> src/bvh.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn get_range_primitives_bounding(primitive_list: &Vec, start: u64, count: u64) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_longest_axis_of_bounding` is never used [INFO] [stdout] --> src/bvh.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn get_longest_axis_of_bounding(bbox: &Box3) -> Axis { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexMesh` is never constructed [INFO] [stdout] --> src/geometry/mesh.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct IndexMesh { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/frame.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Frame { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn clear(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexMesh` is never constructed [INFO] [stdout] --> src/geometry/mesh.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct IndexMesh { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `gen_primitive_list` are never used [INFO] [stdout] --> src/geometry/mesh.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl IndexMesh { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(index: Vec, position: Vec, normal: Vec) -> IndexMesh { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn gen_primitive_list(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `gen_primitive_list` are never used [INFO] [stdout] --> src/geometry/mesh.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl IndexMesh { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(index: Vec, position: Vec, normal: Vec) -> IndexMesh { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn gen_primitive_list(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_bvh_from_index_mesh` is never used [INFO] [stdout] --> src/geometry/mesh.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn build_bvh_from_index_mesh(mesh: &IndexMesh) -> BVHAccel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_bvh_from_index_mesh` is never used [INFO] [stdout] --> src/geometry/mesh.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn build_bvh_from_index_mesh(mesh: &IndexMesh) -> BVHAccel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/geometry/plane.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/geometry/plane.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/geometry/plane.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Plane { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(center: Vec3, normal: Vec3) -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/geometry/plane.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Plane { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(center: Vec3, normal: Vec3) -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `color` are never read [INFO] [stdout] --> src/light.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PointLight { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 5 | pub position: Vec3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub color: Vec3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PointLight` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Box3` is never constructed [INFO] [stdout] --> src/math/box3.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Box3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Box3` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `color` are never read [INFO] [stdout] --> src/light.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PointLight { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 5 | pub position: Vec3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub color: Vec3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PointLight` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Box3` is never constructed [INFO] [stdout] --> src/math/box3.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Box3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Box3` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_3points`, `center`, and `extend_by_box` are never used [INFO] [stdout] --> src/math/box3.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Box3 { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | pub fn from_3points(p1: &Vec3, p2: &Vec3, p3: &Vec3) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn center(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn extend_by_box(&mut self, the_other_box: &Box3) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand2` is never used [INFO] [stdout] --> src/math/rand.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn rand2() -> (f64, f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cosine_sample_hemisphere` is never used [INFO] [stdout] --> src/math/rand.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn cosine_sample_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_3points`, `center`, and `extend_by_box` are never used [INFO] [stdout] --> src/math/box3.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Box3 { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | pub fn from_3points(p1: &Vec3, p2: &Vec3, p3: &Vec3) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn center(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn extend_by_box(&mut self, the_other_box: &Box3) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand2` is never used [INFO] [stdout] --> src/math/rand.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn rand2() -> (f64, f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copy_from` is never used [INFO] [stdout] --> src/ray.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn copy_from(&mut self, ray: &Ray) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_intersection_is_visible_to_point` is never used [INFO] [stdout] --> src/renderer.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn test_intersection_is_visible_to_point( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cosine_sample_hemisphere` is never used [INFO] [stdout] --> src/math/rand.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn cosine_sample_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `point_lights` is never read [INFO] [stdout] --> src/scene.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | pub models: Vec>, [INFO] [stdout] 9 | pub point_lights: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copy_from` is never used [INFO] [stdout] --> src/ray.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn copy_from(&mut self, ray: &Ray) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_intersection_is_visible_to_point` is never used [INFO] [stdout] --> src/renderer.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn test_intersection_is_visible_to_point( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `BRDF` should have a snake case name [INFO] [stdout] --> src/material.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `brdf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `point_lights` is never read [INFO] [stdout] --> src/scene.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | pub models: Vec>, [INFO] [stdout] 9 | pub point_lights: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `BRDF` should have a snake case name [INFO] [stdout] --> src/material.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `brdf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.10s [INFO] running `Command { std: "docker" "inspect" "c7b0fed014c642b838b11c420eef63ba4f14e20e10111340fe5171eba68bde38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7b0fed014c642b838b11c420eef63ba4f14e20e10111340fe5171eba68bde38", kill_on_drop: false }` [INFO] [stdout] c7b0fed014c642b838b11c420eef63ba4f14e20e10111340fe5171eba68bde38 [INFO] checking mikialex/rainray against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikialex%2Frainray" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mikialex/rainray on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mikialex/rainray [INFO] finished tweaking git repo https://github.com/mikialex/rainray [INFO] tweaked toml for git repo https://github.com/mikialex/rainray written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mikialex/rainray 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 91158eb51a2c08364dd2bb614f4557d0285c93b798763a754264cc23f28500b6 [INFO] running `Command { std: "docker" "start" "-a" "91158eb51a2c08364dd2bb614f4557d0285c93b798763a754264cc23f28500b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "91158eb51a2c08364dd2bb614f4557d0285c93b798763a754264cc23f28500b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91158eb51a2c08364dd2bb614f4557d0285c93b798763a754264cc23f28500b6", kill_on_drop: false }` [INFO] [stdout] 91158eb51a2c08364dd2bb614f4557d0285c93b798763a754264cc23f28500b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1b0cf3507aa6513caf9ea1f25190363c1217df49f01a6bec297be08ee1af9b3 [INFO] running `Command { std: "docker" "start" "-a" "f1b0cf3507aa6513caf9ea1f25190363c1217df49f01a6bec297be08ee1af9b3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Checking byteorder v1.2.7 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking owning_ref v0.4.0 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Compiling num-derive v0.2.3 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Checking smallvec v0.6.9 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking regex-syntax v0.6.5 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking inflate v0.4.4 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Checking rand_os v0.1.2 [INFO] [stderr] Checking num_cpus v1.9.0 [INFO] [stderr] Checking clicolors-control v1.0.0 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking termios v0.3.1 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking number_prefix v0.2.8 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Checking gif v0.10.1 [INFO] [stderr] Checking num-iter v0.1.37 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Checking console v0.7.5 [INFO] [stderr] Checking indicatif v0.11.0 [INFO] [stderr] Checking tiff v0.2.1 [INFO] [stderr] Checking image v0.20.1 [INFO] [stderr] Checking rainray v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `x` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | x, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `X` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `y` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | y, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `z` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | z, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `Z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::mesh::*` [INFO] [stdout] --> src/geometry/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use self::mesh::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::plane::*` [INFO] [stdout] --> src/geometry/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use self::plane::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | x, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `X` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `y` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | y, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `Y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `z` should have an upper camel case name [INFO] [stdout] --> src/bvh.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | z, [INFO] [stdout] | ^ help: convert the identifier to upper camel case (notice the capitalization): `Z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::mesh::*` [INFO] [stdout] --> src/geometry/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use self::mesh::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::plane::*` [INFO] [stdout] --> src/geometry/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use self::plane::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `into_ray` [INFO] [stdout] --> src/material.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn next_ray(&self, into_ray: &Ray, intersection: &Intersection) -> Ray { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_into_ray` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `look_up_ray` [INFO] [stdout] --> src/material.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn collect_energy(&self, look_up_ray: &Ray) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_look_up_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/material.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | intersection: &Intersection, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_ray` [INFO] [stdout] --> src/material.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | in_ray: &Ray, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_ray` [INFO] [stdout] --> src/material.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | out_ray: &Ray, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/material.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_ray` [INFO] [stdout] --> src/material.rs:63:53 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_ray` [INFO] [stdout] --> src/material.rs:63:67 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/math/rand.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn cosine_sample_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SplitMethod` is never used [INFO] [stdout] --> src/bvh.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum SplitMethod { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SplitMethod` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Axis` is never used [INFO] [stdout] --> src/bvh.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BVHNode` is never constructed [INFO] [stdout] --> src/bvh.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BVHNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BVH_MAX_BIN_SIZE` is never used [INFO] [stdout] --> src/bvh.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const BVH_MAX_BIN_SIZE: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BVH_MAX_DEPTH` is never used [INFO] [stdout] --> src/bvh.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const BVH_MAX_DEPTH: u64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `build_from_range_primitives`, `computed_split_axis`, `should_split`, and `split` are never used [INFO] [stdout] --> src/bvh.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl BVHNode { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 31 | pub fn build_from_range_primitives( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn computed_split_axis(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn should_split(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn split(&mut self, primtive_list: &mut [Primitive], spliter: &dyn Fn(&mut BVHNode) -> ()) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_equal_counts` is never used [INFO] [stdout] --> src/bvh.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn build_equal_counts(node: &mut BVHNode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Primitive` is never constructed [INFO] [stdout] --> src/bvh.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Primitive { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cmp_center_x`, `cmp_center_y`, and `cmp_center_z` are never used [INFO] [stdout] --> src/bvh.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl Primitive { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 93 | pub fn cmp_center_x(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn cmp_center_y(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn cmp_center_z(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BVHAccel` is never constructed [INFO] [stdout] --> src/bvh.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct BVHAccel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build` is never used [INFO] [stdout] --> src/bvh.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl BVHAccel { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 124 | pub fn build(primitives: Vec) -> BVHAccel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_range_primitives_bounding` is never used [INFO] [stdout] --> src/bvh.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn get_range_primitives_bounding(primitive_list: &Vec, start: u64, count: u64) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_longest_axis_of_bounding` is never used [INFO] [stdout] --> src/bvh.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn get_longest_axis_of_bounding(bbox: &Box3) -> Axis { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/frame.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Frame { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn clear(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexMesh` is never constructed [INFO] [stdout] --> src/geometry/mesh.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct IndexMesh { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `gen_primitive_list` are never used [INFO] [stdout] --> src/geometry/mesh.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl IndexMesh { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(index: Vec, position: Vec, normal: Vec) -> IndexMesh { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn gen_primitive_list(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_bvh_from_index_mesh` is never used [INFO] [stdout] --> src/geometry/mesh.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn build_bvh_from_index_mesh(mesh: &IndexMesh) -> BVHAccel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/geometry/plane.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/geometry/plane.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Plane { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(center: Vec3, normal: Vec3) -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `color` are never read [INFO] [stdout] --> src/light.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PointLight { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 5 | pub position: Vec3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub color: Vec3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PointLight` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Box3` is never constructed [INFO] [stdout] --> src/math/box3.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Box3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Box3` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_3points`, `center`, and `extend_by_box` are never used [INFO] [stdout] --> src/math/box3.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Box3 { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | pub fn from_3points(p1: &Vec3, p2: &Vec3, p3: &Vec3) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn center(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn extend_by_box(&mut self, the_other_box: &Box3) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand2` is never used [INFO] [stdout] --> src/math/rand.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn rand2() -> (f64, f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cosine_sample_hemisphere` is never used [INFO] [stdout] --> src/math/rand.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn cosine_sample_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copy_from` is never used [INFO] [stdout] --> src/ray.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn copy_from(&mut self, ray: &Ray) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_intersection_is_visible_to_point` is never used [INFO] [stdout] --> src/renderer.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn test_intersection_is_visible_to_point( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `point_lights` is never read [INFO] [stdout] --> src/scene.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | pub models: Vec>, [INFO] [stdout] 9 | pub point_lights: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `BRDF` should have a snake case name [INFO] [stdout] --> src/material.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `brdf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `into_ray` [INFO] [stdout] --> src/material.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn next_ray(&self, into_ray: &Ray, intersection: &Intersection) -> Ray { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_into_ray` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `look_up_ray` [INFO] [stdout] --> src/material.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn collect_energy(&self, look_up_ray: &Ray) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_look_up_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/material.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | intersection: &Intersection, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_ray` [INFO] [stdout] --> src/material.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | in_ray: &Ray, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_ray` [INFO] [stdout] --> src/material.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | out_ray: &Ray, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intersection` [INFO] [stdout] --> src/material.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intersection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_ray` [INFO] [stdout] --> src/material.rs:63:53 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_ray` [INFO] [stdout] --> src/material.rs:63:67 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normal` [INFO] [stdout] --> src/math/rand.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn cosine_sample_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SplitMethod` is never used [INFO] [stdout] --> src/bvh.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum SplitMethod { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SplitMethod` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Axis` is never used [INFO] [stdout] --> src/bvh.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BVHNode` is never constructed [INFO] [stdout] --> src/bvh.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct BVHNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BVH_MAX_BIN_SIZE` is never used [INFO] [stdout] --> src/bvh.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const BVH_MAX_BIN_SIZE: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BVH_MAX_DEPTH` is never used [INFO] [stdout] --> src/bvh.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const BVH_MAX_DEPTH: u64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `build_from_range_primitives`, `computed_split_axis`, `should_split`, and `split` are never used [INFO] [stdout] --> src/bvh.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl BVHNode { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 31 | pub fn build_from_range_primitives( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn computed_split_axis(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn should_split(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn split(&mut self, primtive_list: &mut [Primitive], spliter: &dyn Fn(&mut BVHNode) -> ()) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_equal_counts` is never used [INFO] [stdout] --> src/bvh.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn build_equal_counts(node: &mut BVHNode) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Primitive` is never constructed [INFO] [stdout] --> src/bvh.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Primitive { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cmp_center_x`, `cmp_center_y`, and `cmp_center_z` are never used [INFO] [stdout] --> src/bvh.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl Primitive { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 93 | pub fn cmp_center_x(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn cmp_center_y(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn cmp_center_z(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BVHAccel` is never constructed [INFO] [stdout] --> src/bvh.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct BVHAccel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `build` is never used [INFO] [stdout] --> src/bvh.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl BVHAccel { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 124 | pub fn build(primitives: Vec) -> BVHAccel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_range_primitives_bounding` is never used [INFO] [stdout] --> src/bvh.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn get_range_primitives_bounding(primitive_list: &Vec, start: u64, count: u64) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_longest_axis_of_bounding` is never used [INFO] [stdout] --> src/bvh.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn get_longest_axis_of_bounding(bbox: &Box3) -> Axis { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear` is never used [INFO] [stdout] --> src/frame.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Frame { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn clear(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexMesh` is never constructed [INFO] [stdout] --> src/geometry/mesh.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct IndexMesh { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `gen_primitive_list` are never used [INFO] [stdout] --> src/geometry/mesh.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl IndexMesh { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(index: Vec, position: Vec, normal: Vec) -> IndexMesh { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn gen_primitive_list(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_bvh_from_index_mesh` is never used [INFO] [stdout] --> src/geometry/mesh.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn build_bvh_from_index_mesh(mesh: &IndexMesh) -> BVHAccel { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plane` is never constructed [INFO] [stdout] --> src/geometry/plane.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Plane { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/geometry/plane.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Plane { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(center: Vec3, normal: Vec3) -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `position` and `color` are never read [INFO] [stdout] --> src/light.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PointLight { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 5 | pub position: Vec3, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | pub color: Vec3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PointLight` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Box3` is never constructed [INFO] [stdout] --> src/math/box3.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Box3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Box3` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_3points`, `center`, and `extend_by_box` are never used [INFO] [stdout] --> src/math/box3.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Box3 { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | pub fn from_3points(p1: &Vec3, p2: &Vec3, p3: &Vec3) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn center(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn extend_by_box(&mut self, the_other_box: &Box3) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand2` is never used [INFO] [stdout] --> src/math/rand.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn rand2() -> (f64, f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cosine_sample_hemisphere` is never used [INFO] [stdout] --> src/math/rand.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn cosine_sample_hemisphere(normal: &Vec3) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `copy_from` is never used [INFO] [stdout] --> src/ray.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ray { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn copy_from(&mut self, ray: &Ray) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_intersection_is_visible_to_point` is never used [INFO] [stdout] --> src/renderer.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn test_intersection_is_visible_to_point( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `point_lights` is never read [INFO] [stdout] --> src/scene.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | pub models: Vec>, [INFO] [stdout] 9 | pub point_lights: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `BRDF` should have a snake case name [INFO] [stdout] --> src/material.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn BRDF(&self, intersection: &Intersection, in_ray: &Ray, out_ray: &Ray) -> f64 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `brdf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.90s [INFO] running `Command { std: "docker" "inspect" "f1b0cf3507aa6513caf9ea1f25190363c1217df49f01a6bec297be08ee1af9b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1b0cf3507aa6513caf9ea1f25190363c1217df49f01a6bec297be08ee1af9b3", kill_on_drop: false }` [INFO] [stdout] f1b0cf3507aa6513caf9ea1f25190363c1217df49f01a6bec297be08ee1af9b3