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