[INFO] cloning repository https://github.com/pcostasgr/rustraytracing [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pcostasgr/rustraytracing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcostasgr%2Frustraytracing", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcostasgr%2Frustraytracing'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b7212a880090b581e665325344ef4a0ae2280045 [INFO] checking pcostasgr/rustraytracing against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpcostasgr%2Frustraytracing" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pcostasgr/rustraytracing 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/pcostasgr/rustraytracing [INFO] finished tweaking git repo https://github.com/pcostasgr/rustraytracing [INFO] tweaked toml for git repo https://github.com/pcostasgr/rustraytracing written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/pcostasgr/rustraytracing 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] 8b9628213d130e1b0e30da610eebd9880a6d7769aed36c91f415bfeaa9fc8a11 [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" "8b9628213d130e1b0e30da610eebd9880a6d7769aed36c91f415bfeaa9fc8a11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8b9628213d130e1b0e30da610eebd9880a6d7769aed36c91f415bfeaa9fc8a11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b9628213d130e1b0e30da610eebd9880a6d7769aed36c91f415bfeaa9fc8a11", kill_on_drop: false }` [INFO] [stdout] 8b9628213d130e1b0e30da610eebd9880a6d7769aed36c91f415bfeaa9fc8a11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] 7105d141d7f0eafe29798d896fafba5940fa9d0b77e951e4dbdd637857110b1d [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" "7105d141d7f0eafe29798d896fafba5940fa9d0b77e951e4dbdd637857110b1d", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.40 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking ray_tracing v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `fmt`, `ptr` [INFO] [stdout] --> src/math3d.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{ptr,fmt}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v3f` should have an upper camel case name [INFO] [stdout] --> src/math3d.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type v3f=Vec3D; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `V3f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v3i` should have an upper camel case name [INFO] [stdout] --> src/math3d.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type v3i=Vec3D; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `V3i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math3d.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | fn GetMaterial(&self)->& Box; [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/math3d.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | (v1.x*v2.x+v1.y*v2.y+v1.z*v2.z) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math3d.rs:144:24 [INFO] [stdout] | [INFO] [stdout] 144 | pub material: Box, [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math3d.rs:182:35 [INFO] [stdout] | [INFO] [stdout] 182 | fn GetMaterial(&self)->& Box{ [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math3d.rs:263:27 [INFO] [stdout] | [INFO] [stdout] 263 | pub objects: Vec >, [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v3f` should have an upper camel case name [INFO] [stdout] --> src/main.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | type v3f=math3d::Vec3D; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `V3f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v3i` should have an upper camel case name [INFO] [stdout] --> src/main.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | type v3i=math3d::Vec3D; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `V3i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt`, `ptr` [INFO] [stdout] --> src/math3d.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{ptr,fmt}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v3f` should have an upper camel case name [INFO] [stdout] --> src/math3d.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | type v3f=Vec3D; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `V3f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v3i` should have an upper camel case name [INFO] [stdout] --> src/math3d.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | type v3i=Vec3D; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `V3i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math3d.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | fn GetMaterial(&self)->& Box; [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/math3d.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | (v1.x*v2.x+v1.y*v2.y+v1.z*v2.z) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math3d.rs:144:24 [INFO] [stdout] | [INFO] [stdout] 144 | pub material: Box, [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math3d.rs:182:35 [INFO] [stdout] | [INFO] [stdout] 182 | fn GetMaterial(&self)->& Box{ [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math3d.rs:263:27 [INFO] [stdout] | [INFO] [stdout] 263 | pub objects: Vec >, [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Hitable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v3f` should have an upper camel case name [INFO] [stdout] --> src/main.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | type v3f=math3d::Vec3D; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `V3f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `v3i` should have an upper camel case name [INFO] [stdout] --> src/main.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | type v3i=math3d::Vec3D; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `V3i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let n=500; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/main.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn CreateRandomScene(world:& mut math3d::World){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lower_lef_corner` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let lower_lef_corner:v3f=v3f{x:-2.0,y:-1.0,z:-1.0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lower_lef_corner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `horizontal` [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let horizontal:v3f=v3f{x:4.0,y:0.0,z:0.0}; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vertical` [INFO] [stdout] --> src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let vertical:v3f=v3f{x:0.0,y:2.0,z:0.0}; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vertical` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let origin:v3f=v3f{x:0.0,y:0.0,z:0.0}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v00` [INFO] [stdout] --> src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let v00=math3d::VecSub3D(&look_from,&look_at); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_v00` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r1` is never read [INFO] [stdout] --> src/main.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut r1:f32=0.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r2` is never read [INFO] [stdout] --> src/main.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 123 | let mut r2:f32=0.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | for s in 0..ns{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/math3d.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let b:bool; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p` is never read [INFO] [stdout] --> src/math3d.rs:481:9 [INFO] [stdout] | [INFO] [stdout] 481 | let mut p=v3f{x:0.0,y:0.0,z:0.0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit` [INFO] [stdout] --> src/math3d.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | let mut hit:bool=false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/math3d.rs:513:25 [INFO] [stdout] | [INFO] [stdout] 513 | fn Scatter(&self,r_in:&Ray,rec:&HitRecord,attenuation:&mut v3f,scattered:&mut Ray)->bool{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ni_over_nt` is never read [INFO] [stdout] --> src/math3d.rs:640:17 [INFO] [stdout] | [INFO] [stdout] 640 | let mut ni_over_nt:f32=0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cosine` is never read [INFO] [stdout] --> src/math3d.rs:647:17 [INFO] [stdout] | [INFO] [stdout] 647 | let mut cosine:f32=0.0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `reflect_prob` is never read [INFO] [stdout] --> src/math3d.rs:648:17 [INFO] [stdout] | [INFO] [stdout] 648 | let mut reflect_prob:f32=0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut value:f32=self.x*self.x+self.y*self.y+self.z*self.z; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut value:f32=self.x*self.x+self.y*self.y+self.z*self.z; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn GetColor(mut ray:Ray,world:& World,depth:i16)->v3f{ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:226:17 [INFO] [stdout] | [INFO] [stdout] 226 | let mut unit_direction=VecNorm3D(&ray.direction); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | let mut hit:bool=false; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let n=500; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/main.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn CreateRandomScene(world:& mut math3d::World){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lower_lef_corner` [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let lower_lef_corner:v3f=v3f{x:-2.0,y:-1.0,z:-1.0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lower_lef_corner` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `horizontal` [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let horizontal:v3f=v3f{x:4.0,y:0.0,z:0.0}; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_horizontal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vertical` [INFO] [stdout] --> src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let vertical:v3f=v3f{x:0.0,y:2.0,z:0.0}; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vertical` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let origin:v3f=v3f{x:0.0,y:0.0,z:0.0}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v00` [INFO] [stdout] --> src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let v00=math3d::VecSub3D(&look_from,&look_at); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_v00` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r1` is never read [INFO] [stdout] --> src/main.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | let mut r1:f32=0.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r2` is never read [INFO] [stdout] --> src/main.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 123 | let mut r2:f32=0.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | for s in 0..ns{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/math3d.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let b:bool; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `v3i` [INFO] [stdout] --> src/math3d.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | type v3i=Vec3D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `Refrect` [INFO] [stdout] --> src/math3d.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn Refrect(v:&v3f,n:&v3f)->v3f{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `HitSphere` [INFO] [stdout] --> src/math3d.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn HitSphere(center:v3f,radius:f32,r:Ray)->f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CameraOld` [INFO] [stdout] --> src/math3d.rs:312:12 [INFO] [stdout] | [INFO] [stdout] 312 | pub struct CameraOld{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/math3d.rs:322:12 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `GetRay` [INFO] [stdout] --> src/math3d.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn GetRay(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `GetRayOld` [INFO] [stdout] --> src/math3d.rs:436:12 [INFO] [stdout] | [INFO] [stdout] 436 | pub fn GetRayOld(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/math3d.rs:502:12 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn new(a:v3f)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/math3d.rs:539:12 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn new(a:v3f,f:f32)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/math3d.rs:627:12 [INFO] [stdout] | [INFO] [stdout] 627 | pub fn new(ri:f32)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `v3i` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | type v3i=math3d::Vec3D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Ray` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | type Ray=math3d::Ray; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `CameraOld` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | type CameraOld=math3d::CameraOld; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `HitRecord` [INFO] [stdout] --> src/main.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | type HitRecord=math3d::HitRecord; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p` is never read [INFO] [stdout] --> src/math3d.rs:481:9 [INFO] [stdout] | [INFO] [stdout] 481 | let mut p=v3f{x:0.0,y:0.0,z:0.0}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hit` [INFO] [stdout] --> src/math3d.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | let mut hit:bool=false; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/math3d.rs:513:25 [INFO] [stdout] | [INFO] [stdout] 513 | fn Scatter(&self,r_in:&Ray,rec:&HitRecord,attenuation:&mut v3f,scattered:&mut Ray)->bool{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ni_over_nt` is never read [INFO] [stdout] --> src/math3d.rs:640:17 [INFO] [stdout] | [INFO] [stdout] 640 | let mut ni_over_nt:f32=0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CreateRandomScene` should have a snake case name [INFO] [stdout] --> src/main.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn CreateRandomScene(world:& mut math3d::World){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_random_scene` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cosine` is never read [INFO] [stdout] --> src/math3d.rs:647:17 [INFO] [stdout] | [INFO] [stdout] 647 | let mut cosine:f32=0.0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `reflect_prob` is never read [INFO] [stdout] --> src/math3d.rs:648:17 [INFO] [stdout] | [INFO] [stdout] 648 | let mut reflect_prob:f32=0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut value:f32=self.x*self.x+self.y*self.y+self.z*self.z; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut value:f32=self.x*self.x+self.y*self.y+self.z*self.z; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn GetColor(mut ray:Ray,world:& World,depth:i16)->v3f{ [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:226:17 [INFO] [stdout] | [INFO] [stdout] 226 | let mut unit_direction=VecNorm3D(&ray.direction); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math3d.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | let mut hit:bool=false; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `v3i` [INFO] [stdout] --> src/math3d.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | type v3i=Vec3D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `Refrect` [INFO] [stdout] --> src/math3d.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn Refrect(v:&v3f,n:&v3f)->v3f{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `HitSphere` [INFO] [stdout] --> src/math3d.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn HitSphere(center:v3f,radius:f32,r:Ray)->f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/math3d.rs:322:12 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn new()->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `GetRay` [INFO] [stdout] --> src/math3d.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn GetRay(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `GetRayOld` [INFO] [stdout] --> src/math3d.rs:436:12 [INFO] [stdout] | [INFO] [stdout] 436 | pub fn GetRayOld(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/math3d.rs:502:12 [INFO] [stdout] | [INFO] [stdout] 502 | pub fn new(a:v3f)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/math3d.rs:539:12 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn new(a:v3f,f:f32)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/math3d.rs:627:12 [INFO] [stdout] | [INFO] [stdout] 627 | pub fn new(ri:f32)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CreateRandomScene` should have a snake case name [INFO] [stdout] --> src/main.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn CreateRandomScene(world:& mut math3d::World){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_random_scene` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | writeln!(buffer,"P3"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | writeln!(buffer,"{} {}",nx,ny); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | writeln!(buffer,"255"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | writeln!(buffer,"{} {} {}",iclr.x,iclr.y,iclr.z); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `Hit` should have a snake case name [INFO] [stdout] --> src/math3d.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn Hit(&self,r:Ray,t_min:f32,t_max:f32,rec:& mut HitRecord)->bool; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `hit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `GetMaterial` should have a snake case name [INFO] [stdout] --> src/math3d.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn GetMaterial(&self)->& Box; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Length` should have a snake case name [INFO] [stdout] --> src/math3d.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn Length(&self)-> f32{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SquaredLength` should have a snake case name [INFO] [stdout] --> src/math3d.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn SquaredLength(&self)-> f32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `squared_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ToI32` should have a snake case name [INFO] [stdout] --> src/math3d.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn ToI32(&self)->Vec3D{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `PointAtParameter` should have a snake case name [INFO] [stdout] --> src/math3d.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn PointAtParameter(&self,t:f32) -> v3f{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `point_at_parameter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecDot3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn VecDot3D(v1:&Vec3D,v2:&Vec3D)-> f32{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_dot3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecCross3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn VecCross3D(v1:&Vec3D,v2:&Vec3D)-> Vec3D{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `vec_cross3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecAdd3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn VecAdd3D(v1:&Vec3D,v2:&Vec3D)-> Vec3D{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_add3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecSub3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn VecSub3D(v1:&Vec3D,v2:&Vec3D)-> Vec3D{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_sub3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecMul3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn VecMul3D(v:&Vec3D,f:f32)->Vec3D{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_mul3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecMulVec3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn VecMulVec3D(v1:&Vec3D,v2:&Vec3D)->Vec3D{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vec_mul_vec3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecDiv3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn VecDiv3D(v:&v3f,f:f32)->v3f{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_div3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | writeln!(buffer,"P3"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | writeln!(buffer,"{} {}",nx,ny); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecNorm3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn VecNorm3D(v:&v3f)->v3f{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `vec_norm3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | writeln!(buffer,"255"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Refrect` should have a snake case name [INFO] [stdout] --> src/math3d.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn Refrect(v:&v3f,n:&v3f)->v3f{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `refrect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | writeln!(buffer,"{} {} {}",iclr.x,iclr.y,iclr.z); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GetColor` should have a snake case name [INFO] [stdout] --> src/math3d.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn GetColor(mut ray:Ray,world:& World,depth:i16)->v3f{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `Hit` should have a snake case name [INFO] [stdout] --> src/math3d.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn Hit(&self,r:Ray,t_min:f32,t_max:f32,rec:& mut HitRecord)->bool; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `hit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `GetMaterial` should have a snake case name [INFO] [stdout] --> src/math3d.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn GetMaterial(&self)->& Box; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Length` should have a snake case name [INFO] [stdout] --> src/math3d.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn Length(&self)-> f32{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HitSphere` should have a snake case name [INFO] [stdout] --> src/math3d.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn HitSphere(center:v3f,radius:f32,r:Ray)->f32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hit_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SquaredLength` should have a snake case name [INFO] [stdout] --> src/math3d.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn SquaredLength(&self)-> f32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `squared_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ToI32` should have a snake case name [INFO] [stdout] --> src/math3d.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn ToI32(&self)->Vec3D{ [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Hit` should have a snake case name [INFO] [stdout] --> src/math3d.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | fn Hit(&self,r:Ray,t_min:f32,t_max:f32,rec:& mut HitRecord)->bool{ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `hit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `PointAtParameter` should have a snake case name [INFO] [stdout] --> src/math3d.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn PointAtParameter(&self,t:f32) -> v3f{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `point_at_parameter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecDot3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn VecDot3D(v1:&Vec3D,v2:&Vec3D)-> f32{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_dot3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecCross3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn VecCross3D(v1:&Vec3D,v2:&Vec3D)-> Vec3D{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `vec_cross3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetRay` should have a snake case name [INFO] [stdout] --> src/math3d.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn GetRay(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecAdd3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn VecAdd3D(v1:&Vec3D,v2:&Vec3D)-> Vec3D{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_add3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecSub3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn VecSub3D(v1:&Vec3D,v2:&Vec3D)-> Vec3D{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_sub3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `RandomInUnitDisk` should have a snake case name [INFO] [stdout] --> src/math3d.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn RandomInUnitDisk()->v3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `random_in_unit_disk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecMul3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn VecMul3D(v:&Vec3D,f:f32)->Vec3D{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_mul3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecMulVec3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn VecMulVec3D(v1:&Vec3D,v2:&Vec3D)->Vec3D{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vec_mul_vec3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecDiv3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn VecDiv3D(v:&v3f,f:f32)->v3f{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `vec_div3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `VecNorm3D` should have a snake case name [INFO] [stdout] --> src/math3d.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn VecNorm3D(v:&v3f)->v3f{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `vec_norm3_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Refrect` should have a snake case name [INFO] [stdout] --> src/math3d.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn Refrect(v:&v3f,n:&v3f)->v3f{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `refrect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `GetColor` should have a snake case name [INFO] [stdout] --> src/math3d.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn GetColor(mut ray:Ray,world:& World,depth:i16)->v3f{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `get_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HitSphere` should have a snake case name [INFO] [stdout] --> src/math3d.rs:246:8 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn HitSphere(center:v3f,radius:f32,r:Ray)->f32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `hit_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Hit` should have a snake case name [INFO] [stdout] --> src/math3d.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | fn Hit(&self,r:Ray,t_min:f32,t_max:f32,rec:& mut HitRecord)->bool{ [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `hit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetRayOld` should have a snake case name [INFO] [stdout] --> src/math3d.rs:436:12 [INFO] [stdout] | [INFO] [stdout] 436 | pub fn GetRayOld(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_ray_old` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetRay` should have a snake case name [INFO] [stdout] --> src/math3d.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn GetRay(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetRay` should have a snake case name [INFO] [stdout] --> src/math3d.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn GetRay(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `RandomInUnitSphere` should have a snake case name [INFO] [stdout] --> src/math3d.rs:480:8 [INFO] [stdout] | [INFO] [stdout] 480 | pub fn RandomInUnitSphere()->v3f{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `random_in_unit_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `RandomInUnitDisk` should have a snake case name [INFO] [stdout] --> src/math3d.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn RandomInUnitDisk()->v3f { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `random_in_unit_disk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `Scatter` should have a snake case name [INFO] [stdout] --> src/math3d.rs:494:8 [INFO] [stdout] | [INFO] [stdout] 494 | fn Scatter(&self,r_in:&Ray,rec:&HitRecord,attenuation:&mut v3f,scattered:&mut Ray)->bool; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `scatter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetRayOld` should have a snake case name [INFO] [stdout] --> src/math3d.rs:436:12 [INFO] [stdout] | [INFO] [stdout] 436 | pub fn GetRayOld(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_ray_old` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetRay` should have a snake case name [INFO] [stdout] --> src/math3d.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn GetRay(&self,u:f32,v:f32)->Ray{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `get_ray` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Reflect` should have a snake case name [INFO] [stdout] --> src/math3d.rs:573:8 [INFO] [stdout] | [INFO] [stdout] 573 | pub fn Reflect(v:&v3f,n:&v3f)->v3f{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `reflect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `RandomInUnitSphere` should have a snake case name [INFO] [stdout] --> src/math3d.rs:480:8 [INFO] [stdout] | [INFO] [stdout] 480 | pub fn RandomInUnitSphere()->v3f{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `random_in_unit_sphere` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Refract` should have a snake case name [INFO] [stdout] --> src/math3d.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | pub fn Refract(v:&v3f,n:&v3f,ni_over_nt:f32,refracted:& mut v3f)-> bool{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `refract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Schlick` should have a snake case name [INFO] [stdout] --> src/math3d.rs:615:8 [INFO] [stdout] | [INFO] [stdout] 615 | pub fn Schlick(cosine:f32,ref_idx:f32)->f32{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `schlick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `Scatter` should have a snake case name [INFO] [stdout] --> src/math3d.rs:494:8 [INFO] [stdout] | [INFO] [stdout] 494 | fn Scatter(&self,r_in:&Ray,rec:&HitRecord,attenuation:&mut v3f,scattered:&mut Ray)->bool; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `scatter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Reflect` should have a snake case name [INFO] [stdout] --> src/math3d.rs:573:8 [INFO] [stdout] | [INFO] [stdout] 573 | pub fn Reflect(v:&v3f,n:&v3f)->v3f{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `reflect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Refract` should have a snake case name [INFO] [stdout] --> src/math3d.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | pub fn Refract(v:&v3f,n:&v3f,ni_over_nt:f32,refracted:& mut v3f)-> bool{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `refract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Schlick` should have a snake case name [INFO] [stdout] --> src/math3d.rs:615:8 [INFO] [stdout] | [INFO] [stdout] 615 | pub fn Schlick(cosine:f32,ref_idx:f32)->f32{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `schlick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 74 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.73s [INFO] running `Command { std: "docker" "inspect" "7105d141d7f0eafe29798d896fafba5940fa9d0b77e951e4dbdd637857110b1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7105d141d7f0eafe29798d896fafba5940fa9d0b77e951e4dbdd637857110b1d", kill_on_drop: false }` [INFO] [stdout] 7105d141d7f0eafe29798d896fafba5940fa9d0b77e951e4dbdd637857110b1d