[INFO] cloning repository https://github.com/sourcedennis/wasm-pathtracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sourcedennis/wasm-pathtracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsourcedennis%2Fwasm-pathtracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsourcedennis%2Fwasm-pathtracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b44cf6e5d2d64372df4864726d69e51aa30e8af9 [INFO] checking sourcedennis/wasm-pathtracer against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsourcedennis%2Fwasm-pathtracer" "/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/sourcedennis/wasm-pathtracer on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sourcedennis/wasm-pathtracer [INFO] finished tweaking git repo https://github.com/sourcedennis/wasm-pathtracer [INFO] tweaked toml for git repo https://github.com/sourcedennis/wasm-pathtracer written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/sourcedennis/wasm-pathtracer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded packed_simd_2 v0.3.4 [INFO] [stderr] Downloaded roots v0.0.4 [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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 576d51abeae4265212fbe9371b6cbd26ea864aefa33decc1b8b5b9c3480219b9 [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" "576d51abeae4265212fbe9371b6cbd26ea864aefa33decc1b8b5b9c3480219b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "576d51abeae4265212fbe9371b6cbd26ea864aefa33decc1b8b5b9c3480219b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "576d51abeae4265212fbe9371b6cbd26ea864aefa33decc1b8b5b9c3480219b9", kill_on_drop: false }` [INFO] [stdout] 576d51abeae4265212fbe9371b6cbd26ea864aefa33decc1b8b5b9c3480219b9 [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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98f0c45bbc017f7ac3be3d1ef43a4c7c4e893d37b4ca8869eb8a491220e38766 [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" "98f0c45bbc017f7ac3be3d1ef43a4c7c4e893d37b4ca8869eb8a491220e38766", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.70 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.6.0 [INFO] [stderr] Compiling libm v0.1.4 [INFO] [stderr] Compiling packed_simd_2 v0.3.4 [INFO] [stderr] Compiling wasm-bindgen v0.2.70 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking roots v0.0.4 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.70 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.70 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.70 [INFO] [stderr] Checking raytracer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/graphics/color3.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | ( Color3 { red: c_red, green: c_green, blue: c_blue } ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/graphics/color3.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | ( Color3 { red: c_red, green: c_green, blue: c_blue } ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | for i in 0..1000000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rng.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new( ) -> Rng { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_hemisphere` [INFO] [stdout] --> src/rng.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn next_hemisphere( &mut self, normal : &Vec3 ) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shuffle` [INFO] [stdout] --> src/rng.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn shuffle< T >( &mut self, xs : &mut [T] ) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/data/stack.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn len( &self ) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/lights/directional.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new( direction : Vec3, color : Color3 ) -> DirectionalLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/lights/point.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new( location : Vec3, color : Color3, strength : f32 ) -> PointLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/lights/spot.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new( location : Vec3, direction : Vec3, angle : f32, color : Color3, strength : f32 ) -> SpotLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Directional` [INFO] [stdout] --> src/graphics/lights/mod.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | Directional( DirectionalLight ), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Point` [INFO] [stdout] --> src/graphics/lights/mod.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | Point( PointLight ), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Spot` [INFO] [stdout] --> src/graphics/lights/mod.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | Spot( SpotLight ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `directional` [INFO] [stdout] --> src/graphics/lights/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn directional( direction : Vec3, color : Color3 ) -> Light { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | for i in 0..1000000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `point` [INFO] [stdout] --> src/graphics/lights/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn point( location : Vec3, color : Color3, strength : f32 ) -> Light { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `spot` [INFO] [stdout] --> src/graphics/lights/mod.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn spot( location : Vec3, direction : Vec3, angle : f32, color : Color3, strength : f32 ) -> Light { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/aa_rect.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new( x_min : f32, x_max : f32, y_min : f32, y_max : f32, z_min : f32, z_max : f32, mat : Material ) -> AARect { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cube` [INFO] [stdout] --> src/graphics/primitives/aa_rect.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn cube( center : Vec3, half_len : f32, mat : Material ) -> AARect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/plane.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new( location : Vec3, normal : Vec3, mat : Material ) -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/sphere.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new( location : Vec3, radius : f32, mat : Material ) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/square.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new( location : Vec3, size : f32, mat : Material ) -> Square { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/torus.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new( location : Vec3, big_r : f32, small_r : f32, mat : Material ) -> Torus { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/triangle.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new( v0 : Vec3, v1 : Vec3, v2 : Vec3, mat : Material ) -> Triangle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate` [INFO] [stdout] --> src/graphics/primitives/triangle.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn translate( self, v : Vec3 ) -> Triangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normal` [INFO] [stdout] --> src/graphics/primitives/triangle.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | fn normal( &self ) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/ray.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new( origin : Vec3, dir : Vec3 ) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Diffuse` [INFO] [stdout] --> src/graphics/material.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | Diffuse { color : Color3 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Emissive` [INFO] [stdout] --> src/graphics/material.rs:19:3 [INFO] [stdout] | [INFO] [stdout] 19 | Emissive { intensity : Vec3 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `diffuse` [INFO] [stdout] --> src/graphics/material.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn diffuse( color : Color3 ) -> Material { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `emissive` [INFO] [stdout] --> src/graphics/material.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn emissive( intensity : Vec3 ) -> Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_diffuse` [INFO] [stdout] --> src/graphics/material.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn is_diffuse( &self ) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sample_hemisphere` [INFO] [stdout] --> src/graphics/material.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn sample_hemisphere( &self, rng : &mut Rng, _wo : &Vec3, normal : &Vec3 ) -> (Vec3, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `brdf` [INFO] [stdout] --> src/graphics/material.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn brdf( &self, _normal : &Vec3, _wo : &Vec3, _wi : &Vec3 ) -> Color3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test_color` [INFO] [stdout] --> src/graphics/material.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn test_color( &self ) -> Color3 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `disable_bvh` [INFO] [stdout] --> src/graphics/scene.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn disable_bvh( &mut self ) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shadow_ray` [INFO] [stdout] --> src/graphics/scene.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn shadow_ray( &self, p : &Vec3, point_on_shape : &Vec3, shape : Option< ShapeId > ) -> (usize, bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trace` [INFO] [stdout] --> src/graphics/scene.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn trace( &self, ray : &Ray ) -> (usize, Option< Hit >) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trace_simple` [INFO] [stdout] --> src/graphics/scene.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn trace_simple( &self, ray : &Ray ) -> (usize, Option< f32 >) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trace_g` [INFO] [stdout] --> src/graphics/scene.rs:162:6 [INFO] [stdout] | [INFO] [stdout] 162 | fn trace_g< 'a >( &'a self, ray : &Ray ) -> (usize, Option< (f32, ShapeId) >) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closest` [INFO] [stdout] --> src/graphics/scene.rs:406:4 [INFO] [stdout] | [INFO] [stdout] 406 | fn closest< 'a, T >( a: Option< (f32, T) > [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trace_shapes` [INFO] [stdout] --> src/graphics/scene.rs:426:4 [INFO] [stdout] | [INFO] [stdout] 426 | fn trace_shapes< 'a >( ray : &Ray [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_hit_within_sq` [INFO] [stdout] --> src/graphics/scene.rs:476:4 [INFO] [stdout] | [INFO] [stdout] 476 | fn is_hit_within_sq( m_hit : Option< f32 >, d_sq : f32 ) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Mesh` [INFO] [stdout] --> src/graphics/mesh.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Mesh { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/texture.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new( width : u32, height : u32 ) -> Texture { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at` [INFO] [stdout] --> src/graphics/texture.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn at( &self, v : Vec2 ) -> Color3 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `modulo` [INFO] [stdout] --> src/graphics/texture.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn modulo( a : u32, m : u32 ) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/graphics/aabb.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn area( &self ) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_point` [INFO] [stdout] --> src/graphics/aabb.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn contains_point( &self, o : &Vec3 ) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit_furthest` [INFO] [stdout] --> src/graphics/aabb.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn hit_furthest( &self, ray : &Ray ) -> Option< f32 > { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `include` [INFO] [stdout] --> src/graphics/aabb.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn include( self, v : Vec3 ) -> AABB { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify` [INFO] [stdout] --> src/graphics/bvh.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn verify( shapes : &[Rc< dyn Tracable >], num_infinite : usize, bvh : &Vec< BVHNode > ) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `depth` [INFO] [stdout] --> src/graphics/bvh.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn depth( nodes : &Vec< BVHNode > ) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `verify_bvh` [INFO] [stdout] --> src/graphics/bvh.rs:128:4 [INFO] [stdout] | [INFO] [stdout] 128 | fn verify_bvh( shapes : &[Rc< dyn Tracable >], num_infinite : usize, bvh : &Vec< BVHNode > ) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `verify_bvh_contains` [INFO] [stdout] --> src/graphics/bvh.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn verify_bvh_contains( contained : &mut [bool], bvh : &Vec< BVHNode >, i : usize ) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `verify_bvh_bounds` [INFO] [stdout] --> src/graphics/bvh.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn verify_bvh_bounds( shapes : &[Rc< dyn Tracable >], num_infinite : usize, bvh : &Vec< BVHNode >, i : usize ) -> Option< AABB > { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvh_depth` [INFO] [stdout] --> src/graphics/bvh.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn bvh_depth( nodes : &Vec< BVHNode > ) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `depth_rec` [INFO] [stdout] --> src/graphics/bvh.rs:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | fn depth_rec( nodes : &Vec< BVHNode >, i : usize ) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `depth` [INFO] [stdout] --> src/graphics/bvh4.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn depth( bvh : &Vec< BVHNode4 > ) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `depth_rec` [INFO] [stdout] --> src/graphics/bvh4.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 100 | fn depth_rec( bvh : &Vec< BVHNode4 >, i : i32 ) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `current_cost` [INFO] [stdout] --> src/graphics/bvh4.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn current_cost( bvh : &Vec< BVHNode >, node_i : usize ) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `result` [INFO] [stdout] --> src/render_target.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | result : Vec< u8 > [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/render_target.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new( viewport_width : usize, viewport_height : usize ) -> RenderTarget { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/render_target.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn clear( &mut self ) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/render_target.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn write( &mut self, x : usize, y : usize, v : Vec3 ) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/render_target.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn read( &self, x : usize, y : usize ) -> Vec3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `results` [INFO] [stdout] --> src/render_target.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn results< 'a >( &'a self ) -> &'a Vec< u8 > { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/render_target.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new( viewport_width : usize, viewport_height : usize ) -> SimpleRenderTarget { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/render_target.rs:161:10 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn clear( &mut self ) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `results` [INFO] [stdout] --> src/render_target.rs:179:10 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn results< 'a >( &'a self ) -> &'a Vec< u8 > { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_hemisphere` [INFO] [stdout] --> src/main.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn test_hemisphere( ) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/graphics/color3.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | ( Color3 { red: c_red, green: c_green, blue: c_blue } ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/graphics/color3.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | ( Color3 { red: c_red, green: c_green, blue: c_blue } ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 69 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/rng.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new( ) -> Rng { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_hemisphere` [INFO] [stdout] --> src/rng.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn next_hemisphere( &mut self, normal : &Vec3 ) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shuffle` [INFO] [stdout] --> src/rng.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn shuffle< T >( &mut self, xs : &mut [T] ) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/data/stack.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn len( &self ) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/lights/directional.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new( direction : Vec3, color : Color3 ) -> DirectionalLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/lights/point.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new( location : Vec3, color : Color3, strength : f32 ) -> PointLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/lights/spot.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new( location : Vec3, direction : Vec3, angle : f32, color : Color3, strength : f32 ) -> SpotLight { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Directional` [INFO] [stdout] --> src/graphics/lights/mod.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | Directional( DirectionalLight ), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Point` [INFO] [stdout] --> src/graphics/lights/mod.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | Point( PointLight ), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Spot` [INFO] [stdout] --> src/graphics/lights/mod.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | Spot( SpotLight ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `directional` [INFO] [stdout] --> src/graphics/lights/mod.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn directional( direction : Vec3, color : Color3 ) -> Light { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `point` [INFO] [stdout] --> src/graphics/lights/mod.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn point( location : Vec3, color : Color3, strength : f32 ) -> Light { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `spot` [INFO] [stdout] --> src/graphics/lights/mod.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn spot( location : Vec3, direction : Vec3, angle : f32, color : Color3, strength : f32 ) -> Light { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/aa_rect.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new( x_min : f32, x_max : f32, y_min : f32, y_max : f32, z_min : f32, z_max : f32, mat : Material ) -> AARect { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cube` [INFO] [stdout] --> src/graphics/primitives/aa_rect.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn cube( center : Vec3, half_len : f32, mat : Material ) -> AARect { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/plane.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new( location : Vec3, normal : Vec3, mat : Material ) -> Plane { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/sphere.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new( location : Vec3, radius : f32, mat : Material ) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/square.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new( location : Vec3, size : f32, mat : Material ) -> Square { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/torus.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new( location : Vec3, big_r : f32, small_r : f32, mat : Material ) -> Torus { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/primitives/triangle.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new( v0 : Vec3, v1 : Vec3, v2 : Vec3, mat : Material ) -> Triangle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate` [INFO] [stdout] --> src/graphics/primitives/triangle.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn translate( self, v : Vec3 ) -> Triangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normal` [INFO] [stdout] --> src/graphics/primitives/triangle.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | fn normal( &self ) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/ray.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new( origin : Vec3, dir : Vec3 ) -> Ray { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Diffuse` [INFO] [stdout] --> src/graphics/material.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | Diffuse { color : Color3 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Emissive` [INFO] [stdout] --> src/graphics/material.rs:19:3 [INFO] [stdout] | [INFO] [stdout] 19 | Emissive { intensity : Vec3 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `diffuse` [INFO] [stdout] --> src/graphics/material.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn diffuse( color : Color3 ) -> Material { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `emissive` [INFO] [stdout] --> src/graphics/material.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn emissive( intensity : Vec3 ) -> Material { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_diffuse` [INFO] [stdout] --> src/graphics/material.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn is_diffuse( &self ) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sample_hemisphere` [INFO] [stdout] --> src/graphics/material.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn sample_hemisphere( &self, rng : &mut Rng, _wo : &Vec3, normal : &Vec3 ) -> (Vec3, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `brdf` [INFO] [stdout] --> src/graphics/material.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn brdf( &self, _normal : &Vec3, _wo : &Vec3, _wi : &Vec3 ) -> Color3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test_color` [INFO] [stdout] --> src/graphics/material.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn test_color( &self ) -> Color3 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `disable_bvh` [INFO] [stdout] --> src/graphics/scene.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn disable_bvh( &mut self ) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `shadow_ray` [INFO] [stdout] --> src/graphics/scene.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn shadow_ray( &self, p : &Vec3, point_on_shape : &Vec3, shape : Option< ShapeId > ) -> (usize, bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trace` [INFO] [stdout] --> src/graphics/scene.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn trace( &self, ray : &Ray ) -> (usize, Option< Hit >) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trace_simple` [INFO] [stdout] --> src/graphics/scene.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn trace_simple( &self, ray : &Ray ) -> (usize, Option< f32 >) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `trace_g` [INFO] [stdout] --> src/graphics/scene.rs:162:6 [INFO] [stdout] | [INFO] [stdout] 162 | fn trace_g< 'a >( &'a self, ray : &Ray ) -> (usize, Option< (f32, ShapeId) >) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closest` [INFO] [stdout] --> src/graphics/scene.rs:406:4 [INFO] [stdout] | [INFO] [stdout] 406 | fn closest< 'a, T >( a: Option< (f32, T) > [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trace_shapes` [INFO] [stdout] --> src/graphics/scene.rs:426:4 [INFO] [stdout] | [INFO] [stdout] 426 | fn trace_shapes< 'a >( ray : &Ray [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_hit_within_sq` [INFO] [stdout] --> src/graphics/scene.rs:476:4 [INFO] [stdout] | [INFO] [stdout] 476 | fn is_hit_within_sq( m_hit : Option< f32 >, d_sq : f32 ) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Mesh` [INFO] [stdout] --> src/graphics/mesh.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Mesh { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/graphics/texture.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new( width : u32, height : u32 ) -> Texture { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `at` [INFO] [stdout] --> src/graphics/texture.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn at( &self, v : Vec2 ) -> Color3 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `modulo` [INFO] [stdout] --> src/graphics/texture.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn modulo( a : u32, m : u32 ) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/graphics/aabb.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn area( &self ) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_point` [INFO] [stdout] --> src/graphics/aabb.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn contains_point( &self, o : &Vec3 ) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hit_furthest` [INFO] [stdout] --> src/graphics/aabb.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn hit_furthest( &self, ray : &Ray ) -> Option< f32 > { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `include` [INFO] [stdout] --> src/graphics/aabb.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | pub fn include( self, v : Vec3 ) -> AABB { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify` [INFO] [stdout] --> src/graphics/bvh.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn verify( shapes : &[Rc< dyn Tracable >], num_infinite : usize, bvh : &Vec< BVHNode > ) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `depth` [INFO] [stdout] --> src/graphics/bvh.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn depth( nodes : &Vec< BVHNode > ) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `verify_bvh` [INFO] [stdout] --> src/graphics/bvh.rs:128:4 [INFO] [stdout] | [INFO] [stdout] 128 | fn verify_bvh( shapes : &[Rc< dyn Tracable >], num_infinite : usize, bvh : &Vec< BVHNode > ) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `verify_bvh_contains` [INFO] [stdout] --> src/graphics/bvh.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn verify_bvh_contains( contained : &mut [bool], bvh : &Vec< BVHNode >, i : usize ) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `verify_bvh_bounds` [INFO] [stdout] --> src/graphics/bvh.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn verify_bvh_bounds( shapes : &[Rc< dyn Tracable >], num_infinite : usize, bvh : &Vec< BVHNode >, i : usize ) -> Option< AABB > { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bvh_depth` [INFO] [stdout] --> src/graphics/bvh.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn bvh_depth( nodes : &Vec< BVHNode > ) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `depth_rec` [INFO] [stdout] --> src/graphics/bvh.rs:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | fn depth_rec( nodes : &Vec< BVHNode >, i : usize ) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `depth` [INFO] [stdout] --> src/graphics/bvh4.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn depth( bvh : &Vec< BVHNode4 > ) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `depth_rec` [INFO] [stdout] --> src/graphics/bvh4.rs:100:6 [INFO] [stdout] | [INFO] [stdout] 100 | fn depth_rec( bvh : &Vec< BVHNode4 >, i : i32 ) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `current_cost` [INFO] [stdout] --> src/graphics/bvh4.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn current_cost( bvh : &Vec< BVHNode >, node_i : usize ) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `result` [INFO] [stdout] --> src/render_target.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | result : Vec< u8 > [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/render_target.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new( viewport_width : usize, viewport_height : usize ) -> RenderTarget { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/render_target.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn clear( &mut self ) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/render_target.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn write( &mut self, x : usize, y : usize, v : Vec3 ) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `read` [INFO] [stdout] --> src/render_target.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn read( &self, x : usize, y : usize ) -> Vec3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `results` [INFO] [stdout] --> src/render_target.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn results< 'a >( &'a self ) -> &'a Vec< u8 > { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/render_target.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn new( viewport_width : usize, viewport_height : usize ) -> SimpleRenderTarget { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/render_target.rs:161:10 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn clear( &mut self ) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `results` [INFO] [stdout] --> src/render_target.rs:179:10 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn results< 'a >( &'a self ) -> &'a Vec< u8 > { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_hemisphere` [INFO] [stdout] --> src/main.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn test_hemisphere( ) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 69 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [optimized + debuginfo] target(s) in 42.64s [INFO] running `Command { std: "docker" "inspect" "98f0c45bbc017f7ac3be3d1ef43a4c7c4e893d37b4ca8869eb8a491220e38766", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98f0c45bbc017f7ac3be3d1ef43a4c7c4e893d37b4ca8869eb8a491220e38766", kill_on_drop: false }` [INFO] [stdout] 98f0c45bbc017f7ac3be3d1ef43a4c7c4e893d37b4ca8869eb8a491220e38766