[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#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmikialex%2Frainray" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mikialex/rainray on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-3/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: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b439a22e3a44c707413259daf6ea2223f364fff598c7e788b40689e45970c449 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b439a22e3a44c707413259daf6ea2223f364fff598c7e788b40689e45970c449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b439a22e3a44c707413259daf6ea2223f364fff598c7e788b40689e45970c449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b439a22e3a44c707413259daf6ea2223f364fff598c7e788b40689e45970c449", kill_on_drop: false }` [INFO] [stdout] b439a22e3a44c707413259daf6ea2223f364fff598c7e788b40689e45970c449 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97137661d2a4b2c6a209ab6e1761acdac982379421d9c32ea1a0311ce1ed68bb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "97137661d2a4b2c6a209ab6e1761acdac982379421d9c32ea1a0311ce1ed68bb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Checking smallvec v0.6.9 [INFO] [stderr] Compiling num-derive v0.2.3 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Compiling num-rational v0.2.1 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Checking regex-syntax v0.6.5 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Checking inflate v0.4.4 [INFO] [stderr] Checking deflate v0.7.19 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking gif v0.10.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Compiling syn v0.15.23 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking rand_os v0.1.2 [INFO] [stderr] Checking num_cpus v1.9.0 [INFO] [stderr] Checking termios v0.3.1 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking clicolors-control v1.0.0 [INFO] [stderr] Checking rayon-core v1.4.1 [INFO] [stderr] Checking number_prefix v0.2.8 [INFO] [stderr] Checking rayon v1.0.3 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking regex v1.1.0 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking console v0.7.5 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [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: 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 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: `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: `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: `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: variant is never constructed: `SAH` [INFO] [stdout] --> src/bvh.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | SAH, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Middle` [INFO] [stdout] --> src/bvh.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Middle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `EqualCounts` [INFO] [stdout] --> src/bvh.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | EqualCounts, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Axis` [INFO] [stdout] --> src/bvh.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Axis { [INFO] [stdout] | ^^^^ [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: struct is never constructed: `BVHNode` [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 is never used: `BVH_MAX_BIN_SIZE` [INFO] [stdout] --> src/bvh.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const BVH_MAX_BIN_SIZE: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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: constant is never used: `BVH_MAX_DEPTH` [INFO] [stdout] --> src/bvh.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | const BVH_MAX_DEPTH: u64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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: associated function is never used: `build_from_range_primitives` [INFO] [stdout] --> src/bvh.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn build_from_range_primitives( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `computed_split_axis` [INFO] [stdout] --> src/bvh.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn computed_split_axis(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [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: associated function is never used: `should_split` [INFO] [stdout] --> src/bvh.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn should_split(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `split` [INFO] [stdout] --> src/bvh.rs:56:12 [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: variant is never constructed: `SAH` [INFO] [stdout] --> src/bvh.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | SAH, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_equal_counts` [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 is never constructed: `Primitive` [INFO] [stdout] --> src/bvh.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Primitive { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_center_x` [INFO] [stdout] --> src/bvh.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn cmp_center_x(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_center_y` [INFO] [stdout] --> src/bvh.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn cmp_center_y(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Middle` [INFO] [stdout] --> src/bvh.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Middle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_center_z` [INFO] [stdout] --> src/bvh.rs:109:12 [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: variant is never constructed: `EqualCounts` [INFO] [stdout] --> src/bvh.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | EqualCounts, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BVHAccel` [INFO] [stdout] --> src/bvh.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct BVHAccel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Axis` [INFO] [stdout] --> src/bvh.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Axis { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build` [INFO] [stdout] --> src/bvh.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn build(primitives: Vec) -> BVHAccel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_range_primitives_bounding` [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 is never used: `get_longest_axis_of_bounding` [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 is never used: `clear` [INFO] [stdout] --> src/frame.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn clear(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BVHNode` [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 is never constructed: `IndexMesh` [INFO] [stdout] --> src/geometry/mesh.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct IndexMesh { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BVH_MAX_BIN_SIZE` [INFO] [stdout] --> src/bvh.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const BVH_MAX_BIN_SIZE: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BVH_MAX_DEPTH` [INFO] [stdout] --> src/bvh.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | const BVH_MAX_DEPTH: u64 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build_from_range_primitives` [INFO] [stdout] --> src/bvh.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn build_from_range_primitives( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geometry/mesh.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(index: Vec, position: Vec, normal: Vec) -> IndexMesh { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `computed_split_axis` [INFO] [stdout] --> src/bvh.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn computed_split_axis(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `should_split` [INFO] [stdout] --> src/bvh.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn should_split(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `split` [INFO] [stdout] --> src/bvh.rs:56:12 [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 function is never used: `gen_primitive_list` [INFO] [stdout] --> src/geometry/mesh.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn gen_primitive_list(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_equal_counts` [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 is never constructed: `Primitive` [INFO] [stdout] --> src/bvh.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct Primitive { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_center_x` [INFO] [stdout] --> src/bvh.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn cmp_center_x(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_center_y` [INFO] [stdout] --> src/bvh.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn cmp_center_y(&self, other: &Primitive) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_bvh_from_index_mesh` [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: associated function is never used: `cmp_center_z` [INFO] [stdout] --> src/bvh.rs:109:12 [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: field is never read: `center` [INFO] [stdout] --> src/geometry/plane.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | center: Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BVHAccel` [INFO] [stdout] --> src/bvh.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub struct BVHAccel { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `normal` [INFO] [stdout] --> src/geometry/plane.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | normal: Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `build` [INFO] [stdout] --> src/bvh.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn build(primitives: Vec) -> BVHAccel { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geometry/plane.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(center: Vec3, normal: Vec3) -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_range_primitives_bounding` [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: associated function is never used: `from_3points` [INFO] [stdout] --> src/math/box3.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn from_3points(p1: &Vec3, p2: &Vec3, p3: &Vec3) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_longest_axis_of_bounding` [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 is never used: `center` [INFO] [stdout] --> src/math/box3.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn center(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_by_box` [INFO] [stdout] --> src/math/box3.rs:21:12 [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 is never used: `rand2` [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: associated function is never used: `clear` [INFO] [stdout] --> src/frame.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn clear(&mut self, color: &Color) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cosine_sample_hemisphere` [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 function is never used: `copy_from` [INFO] [stdout] --> src/ray.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn copy_from(&mut self, ray: &Ray) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_intersection_is_visible_to_point` [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: struct is never constructed: `IndexMesh` [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 `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: associated function is never used: `new` [INFO] [stdout] --> src/geometry/mesh.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(index: Vec, position: Vec, normal: Vec) -> IndexMesh { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `gen_primitive_list` [INFO] [stdout] --> src/geometry/mesh.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn gen_primitive_list(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_bvh_from_index_mesh` [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: field is never read: `center` [INFO] [stdout] --> src/geometry/plane.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | center: Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `normal` [INFO] [stdout] --> src/geometry/plane.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | normal: Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geometry/plane.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(center: Vec3, normal: Vec3) -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_3points` [INFO] [stdout] --> src/math/box3.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn from_3points(p1: &Vec3, p2: &Vec3, p3: &Vec3) -> Box3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `center` [INFO] [stdout] --> src/math/box3.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn center(&self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extend_by_box` [INFO] [stdout] --> src/math/box3.rs:21:12 [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 is never used: `rand2` [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 is never used: `cosine_sample_hemisphere` [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 function is never used: `copy_from` [INFO] [stdout] --> src/ray.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn copy_from(&mut self, ray: &Ray) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_intersection_is_visible_to_point` [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: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.50s [INFO] running `Command { std: "docker" "inspect" "97137661d2a4b2c6a209ab6e1761acdac982379421d9c32ea1a0311ce1ed68bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97137661d2a4b2c6a209ab6e1761acdac982379421d9c32ea1a0311ce1ed68bb", kill_on_drop: false }` [INFO] [stdout] 97137661d2a4b2c6a209ab6e1761acdac982379421d9c32ea1a0311ce1ed68bb