[INFO] cloning repository https://github.com/rdimas-ut/ray-tracing-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rdimas-ut/ray-tracing-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frdimas-ut%2Fray-tracing-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frdimas-ut%2Fray-tracing-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 13760d566f3de66b4f0f94e400a35bfc0f028059 [INFO] testing rdimas-ut/ray-tracing-rust against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frdimas-ut%2Fray-tracing-rust" "/workspace/builds/worker-74/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-74/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rdimas-ut/ray-tracing-rust on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rdimas-ut/ray-tracing-rust [INFO] finished tweaking git repo https://github.com/rdimas-ut/ray-tracing-rust [INFO] tweaked toml for git repo https://github.com/rdimas-ut/ray-tracing-rust written to /workspace/builds/worker-74/source/Cargo.toml [INFO] crate git repo https://github.com/rdimas-ut/ray-tracing-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 837ee02baf5be05f6afd66012496d2738aef82c22438323fecb7cdba1ed9ef28 [INFO] running `Command { std: "docker" "start" "-a" "837ee02baf5be05f6afd66012496d2738aef82c22438323fecb7cdba1ed9ef28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "837ee02baf5be05f6afd66012496d2738aef82c22438323fecb7cdba1ed9ef28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "837ee02baf5be05f6afd66012496d2738aef82c22438323fecb7cdba1ed9ef28", kill_on_drop: false }` [INFO] [stdout] 837ee02baf5be05f6afd66012496d2738aef82c22438323fecb7cdba1ed9ef28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25f5a19bb009d4e5707bebe39669fdf7765f48531e4832fe7f2a0249d8de26ad [INFO] running `Command { std: "docker" "start" "-a" "25f5a19bb009d4e5707bebe39669fdf7765f48531e4832fe7f2a0249d8de26ad", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.99 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling gif v0.11.3 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling ray-tracing-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `vec3::PI` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use vec3::PI; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/material.rs:147:24 [INFO] [stdout] | [INFO] [stdout] 147 | albedo: Rc> [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Texture` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec3::Vec3` [INFO] [stdout] --> src/abox.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::vec3::Vec3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/abox.rs:38:58 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new(p0: &Point3, p1: &Point3, ptr: Rc>) -> Self { [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec3::Vec3` [INFO] [stdout] --> src/bvh_node.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::vec3::Vec3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::DefaultMaterial` [INFO] [stdout] --> src/bvh_node.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::material::DefaultMaterial; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `five_tenths_to_one_dist` [INFO] [stdout] --> src/main.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let five_tenths_to_one_dist = Uniform::new(0.5f64, 1.0f64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_five_tenths_to_one_dist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere_material` [INFO] [stdout] --> src/main.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | let sphere_material: Rc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `world` is never read [INFO] [stdout] --> src/main.rs:412:17 [INFO] [stdout] | [INFO] [stdout] 412 | let mut world: HittableList = HittableList { objects: Vec::new() }; [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 `lookfrom` is never read [INFO] [stdout] --> src/main.rs:414:17 [INFO] [stdout] | [INFO] [stdout] 414 | let mut lookfrom: Point3 = Point3(0.0, 0.0, 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 `lookat` is never read [INFO] [stdout] --> src/main.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | let mut lookat: Point3 = Point3(0.0, 0.0, 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 `vfov` is never read [INFO] [stdout] --> src/main.rs:416:17 [INFO] [stdout] | [INFO] [stdout] 416 | let mut vfov: f64 = 40.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/hittable.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/hittable.rs:126:40 [INFO] [stdout] | [INFO] [stdout] 126 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:76:23 [INFO] [stdout] | [INFO] [stdout] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:76:31 [INFO] [stdout] | [INFO] [stdout] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:76:39 [INFO] [stdout] | [INFO] [stdout] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `direction` is never read [INFO] [stdout] --> src/material.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let mut direction: Vec3 = Vec3(0.0, 0.0, 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: `u` [INFO] [stdout] --> src/material.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:111:31 [INFO] [stdout] | [INFO] [stdout] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:111:39 [INFO] [stdout] | [INFO] [stdout] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, 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: unused variable: `rec` [INFO] [stdout] --> src/material.rs:129:35 [INFO] [stdout] | [INFO] [stdout] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attenuation` [INFO] [stdout] --> src/material.rs:129:52 [INFO] [stdout] | [INFO] [stdout] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attenuation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scattered` [INFO] [stdout] --> src/material.rs:129:77 [INFO] [stdout] | [INFO] [stdout] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scattered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:161:31 [INFO] [stdout] | [INFO] [stdout] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:161:39 [INFO] [stdout] | [INFO] [stdout] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/sphere.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/sphere.rs:55:40 [INFO] [stdout] | [INFO] [stdout] 55 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/texture.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/texture.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:78:37 [INFO] [stdout] | [INFO] [stdout] 78 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/perlin.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/perlin.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | for i in 0..7 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:48:40 [INFO] [stdout] | [INFO] [stdout] 48 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 106 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:106:40 [INFO] [stdout] | [INFO] [stdout] 106 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:164:28 [INFO] [stdout] | [INFO] [stdout] 164 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:164:40 [INFO] [stdout] | [INFO] [stdout] 164 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/abox.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/abox.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 28 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/bvh_node.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/bvh_node.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comparator` [INFO] [stdout] --> src/bvh_node.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let comparator = box_x_compare; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comparator` [INFO] [stdout] --> src/bvh_node.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let comparator = box_y_compare; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comparator` [INFO] [stdout] --> src/bvh_node.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let comparator = box_z_compare; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/perlin.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut rng = rand::thread_rng(); [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: function is never used: `random_in_hemisphere` [INFO] [stdout] --> src/vec3.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn random_in_hemisphere(normal: Vec3) -> Vec3{ [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: `reflectance` [INFO] [stdout] --> src/material.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn reflectance(cosine: f64, ref_idx: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/hittable_list.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bytes_per_scanline` [INFO] [stdout] --> src/texture.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | bytes_per_scanline: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `point_count` [INFO] [stdout] --> src/perlin.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | point_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hit_sphere` [INFO] [stdout] --> src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn hit_sphere(center: Point3, radius: f64, r: Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ASPECT_RATIO` should have a snake case name [INFO] [stdout] --> src/main.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | let mut ASPECT_RATIO: f64 = 16.0/9.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `aspect_ratio` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `IMAGE_WIDTH` should have a snake case name [INFO] [stdout] --> src/main.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | let mut IMAGE_WIDTH: u64 = 400; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `image_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SAMPLES_PER_PIXEL` should have a snake case name [INFO] [stdout] --> src/main.rs:407:17 [INFO] [stdout] | [INFO] [stdout] 407 | let mut SAMPLES_PER_PIXEL: u64 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `samples_per_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `IMAGE_HEIGTH` should have a snake case name [INFO] [stdout] --> src/main.rs:501:13 [INFO] [stdout] | [INFO] [stdout] 501 | let IMAGE_HEIGTH: u64 = (IMAGE_WIDTH as f64/ASPECT_RATIO) as u64; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `image_heigth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ASPECT_RATIO` should have a snake case name [INFO] [stdout] --> src/camera.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let ASPECT_RATIO: f64 = aspect_ratio; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `aspect_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VIEWPORT_HEIGHT` should have a snake case name [INFO] [stdout] --> src/camera.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let VIEWPORT_HEIGHT: f64 = 2.0 * h; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `viewport_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VIEWPORT_WIDTH` should have a snake case name [INFO] [stdout] --> src/camera.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let VIEWPORT_WIDTH: f64 = ASPECT_RATIO * VIEWPORT_HEIGHT; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `viewport_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enableDebug` should have a snake case name [INFO] [stdout] --> src/constant_medium.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let enableDebug: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `enable_debug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 72 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 59s [INFO] running `Command { std: "docker" "inspect" "25f5a19bb009d4e5707bebe39669fdf7765f48531e4832fe7f2a0249d8de26ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25f5a19bb009d4e5707bebe39669fdf7765f48531e4832fe7f2a0249d8de26ad", kill_on_drop: false }` [INFO] [stdout] 25f5a19bb009d4e5707bebe39669fdf7765f48531e4832fe7f2a0249d8de26ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64c78ae60265166c688e5f6dc2f5a3408e1fb3111734dc7dd5f1a1d5a6014c7f [INFO] running `Command { std: "docker" "start" "-a" "64c78ae60265166c688e5f6dc2f5a3408e1fb3111734dc7dd5f1a1d5a6014c7f", kill_on_drop: false }` [INFO] [stderr] Compiling ray-tracing-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `vec3::PI` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use vec3::PI; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/material.rs:147:24 [INFO] [stdout] | [INFO] [stdout] 147 | albedo: Rc> [INFO] [stdout] | ^^^^^^^ help: use `dyn`: `dyn Texture` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec3::Vec3` [INFO] [stdout] --> src/abox.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::vec3::Vec3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/abox.rs:38:58 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new(p0: &Point3, p1: &Point3, ptr: Rc>) -> Self { [INFO] [stdout] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec3::Vec3` [INFO] [stdout] --> src/bvh_node.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::vec3::Vec3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::material::DefaultMaterial` [INFO] [stdout] --> src/bvh_node.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::material::DefaultMaterial; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `five_tenths_to_one_dist` [INFO] [stdout] --> src/main.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let five_tenths_to_one_dist = Uniform::new(0.5f64, 1.0f64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_five_tenths_to_one_dist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sphere_material` [INFO] [stdout] --> src/main.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | let sphere_material: Rc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_material` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `world` is never read [INFO] [stdout] --> src/main.rs:412:17 [INFO] [stdout] | [INFO] [stdout] 412 | let mut world: HittableList = HittableList { objects: Vec::new() }; [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 `lookfrom` is never read [INFO] [stdout] --> src/main.rs:414:17 [INFO] [stdout] | [INFO] [stdout] 414 | let mut lookfrom: Point3 = Point3(0.0, 0.0, 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 `lookat` is never read [INFO] [stdout] --> src/main.rs:415:17 [INFO] [stdout] | [INFO] [stdout] 415 | let mut lookat: Point3 = Point3(0.0, 0.0, 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 `vfov` is never read [INFO] [stdout] --> src/main.rs:416:17 [INFO] [stdout] | [INFO] [stdout] 416 | let mut vfov: f64 = 40.0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/hittable.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/hittable.rs:126:40 [INFO] [stdout] | [INFO] [stdout] 126 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:76:23 [INFO] [stdout] | [INFO] [stdout] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:76:31 [INFO] [stdout] | [INFO] [stdout] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:76:39 [INFO] [stdout] | [INFO] [stdout] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `direction` is never read [INFO] [stdout] --> src/material.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let mut direction: Vec3 = Vec3(0.0, 0.0, 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: `u` [INFO] [stdout] --> src/material.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:111:31 [INFO] [stdout] | [INFO] [stdout] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:111:39 [INFO] [stdout] | [INFO] [stdout] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_in` [INFO] [stdout] --> src/material.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, 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: unused variable: `rec` [INFO] [stdout] --> src/material.rs:129:35 [INFO] [stdout] | [INFO] [stdout] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attenuation` [INFO] [stdout] --> src/material.rs:129:52 [INFO] [stdout] | [INFO] [stdout] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attenuation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scattered` [INFO] [stdout] --> src/material.rs:129:77 [INFO] [stdout] | [INFO] [stdout] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scattered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/material.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/material.rs:161:31 [INFO] [stdout] | [INFO] [stdout] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/material.rs:161:39 [INFO] [stdout] | [INFO] [stdout] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/sphere.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/sphere.rs:55:40 [INFO] [stdout] | [INFO] [stdout] 55 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/texture.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/texture.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/texture.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/texture.rs:78:37 [INFO] [stdout] | [INFO] [stdout] 78 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/perlin.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/perlin.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | for i in 0..7 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:48:40 [INFO] [stdout] | [INFO] [stdout] 48 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 106 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:106:40 [INFO] [stdout] | [INFO] [stdout] 106 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/aarect.rs:164:28 [INFO] [stdout] | [INFO] [stdout] 164 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/aarect.rs:164:40 [INFO] [stdout] | [INFO] [stdout] 164 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/abox.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/abox.rs:28:40 [INFO] [stdout] | [INFO] [stdout] 28 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time0` [INFO] [stdout] --> src/bvh_node.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time1` [INFO] [stdout] --> src/bvh_node.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comparator` [INFO] [stdout] --> src/bvh_node.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let comparator = box_x_compare; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comparator` [INFO] [stdout] --> src/bvh_node.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let comparator = box_y_compare; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comparator` [INFO] [stdout] --> src/bvh_node.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let comparator = box_z_compare; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/perlin.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut rng = rand::thread_rng(); [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: function is never used: `random_in_hemisphere` [INFO] [stdout] --> src/vec3.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | pub fn random_in_hemisphere(normal: Vec3) -> Vec3{ [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: `reflectance` [INFO] [stdout] --> src/material.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn reflectance(cosine: f64, ref_idx: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/hittable_list.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bytes_per_scanline` [INFO] [stdout] --> src/texture.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | bytes_per_scanline: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `point_count` [INFO] [stdout] --> src/perlin.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | point_count: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hit_sphere` [INFO] [stdout] --> src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn hit_sphere(center: Point3, radius: f64, r: Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ASPECT_RATIO` should have a snake case name [INFO] [stdout] --> src/main.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | let mut ASPECT_RATIO: f64 = 16.0/9.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `aspect_ratio` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `IMAGE_WIDTH` should have a snake case name [INFO] [stdout] --> src/main.rs:406:17 [INFO] [stdout] | [INFO] [stdout] 406 | let mut IMAGE_WIDTH: u64 = 400; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `image_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SAMPLES_PER_PIXEL` should have a snake case name [INFO] [stdout] --> src/main.rs:407:17 [INFO] [stdout] | [INFO] [stdout] 407 | let mut SAMPLES_PER_PIXEL: u64 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `samples_per_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `IMAGE_HEIGTH` should have a snake case name [INFO] [stdout] --> src/main.rs:501:13 [INFO] [stdout] | [INFO] [stdout] 501 | let IMAGE_HEIGTH: u64 = (IMAGE_WIDTH as f64/ASPECT_RATIO) as u64; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `image_heigth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ASPECT_RATIO` should have a snake case name [INFO] [stdout] --> src/camera.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | let ASPECT_RATIO: f64 = aspect_ratio; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `aspect_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VIEWPORT_HEIGHT` should have a snake case name [INFO] [stdout] --> src/camera.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let VIEWPORT_HEIGHT: f64 = 2.0 * h; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `viewport_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VIEWPORT_WIDTH` should have a snake case name [INFO] [stdout] --> src/camera.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let VIEWPORT_WIDTH: f64 = ASPECT_RATIO * VIEWPORT_HEIGHT; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `viewport_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enableDebug` should have a snake case name [INFO] [stdout] --> src/constant_medium.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let enableDebug: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `enable_debug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 72 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.77s [INFO] running `Command { std: "docker" "inspect" "64c78ae60265166c688e5f6dc2f5a3408e1fb3111734dc7dd5f1a1d5a6014c7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64c78ae60265166c688e5f6dc2f5a3408e1fb3111734dc7dd5f1a1d5a6014c7f", kill_on_drop: false }` [INFO] [stdout] 64c78ae60265166c688e5f6dc2f5a3408e1fb3111734dc7dd5f1a1d5a6014c7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-74/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5d34eedc01511e70365d59c553310cd3fcddecda113caeb358570c926121b5c4 [INFO] running `Command { std: "docker" "start" "-a" "5d34eedc01511e70365d59c553310cd3fcddecda113caeb358570c926121b5c4", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `vec3::PI` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use vec3::PI; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/material.rs:147:24 [INFO] [stderr] | [INFO] [stderr] 147 | albedo: Rc> [INFO] [stderr] | ^^^^^^^ help: use `dyn`: `dyn Texture` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::vec3::Vec3` [INFO] [stderr] --> src/abox.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::vec3::Vec3; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/abox.rs:38:58 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn new(p0: &Point3, p1: &Point3, ptr: Rc>) -> Self { [INFO] [stderr] | ^^^^^^^^ help: use `dyn`: `dyn Material` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::vec3::Vec3` [INFO] [stderr] --> src/bvh_node.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::vec3::Vec3; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::material::DefaultMaterial` [INFO] [stderr] --> src/bvh_node.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use crate::material::DefaultMaterial; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `five_tenths_to_one_dist` [INFO] [stderr] --> src/main.rs:138:9 [INFO] [stderr] | [INFO] [stderr] 138 | let five_tenths_to_one_dist = Uniform::new(0.5f64, 1.0f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_five_tenths_to_one_dist` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sphere_material` [INFO] [stderr] --> src/main.rs:149:21 [INFO] [stderr] | [INFO] [stderr] 149 | let sphere_material: Rc>; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sphere_material` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `world` is never read [INFO] [stderr] --> src/main.rs:412:17 [INFO] [stderr] | [INFO] [stderr] 412 | let mut world: HittableList = HittableList { objects: Vec::new() }; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `lookfrom` is never read [INFO] [stderr] --> src/main.rs:414:17 [INFO] [stderr] | [INFO] [stderr] 414 | let mut lookfrom: Point3 = Point3(0.0, 0.0, 0.0); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `lookat` is never read [INFO] [stderr] --> src/main.rs:415:17 [INFO] [stderr] | [INFO] [stderr] 415 | let mut lookat: Point3 = Point3(0.0, 0.0, 0.0); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `vfov` is never read [INFO] [stderr] --> src/main.rs:416:17 [INFO] [stderr] | [INFO] [stderr] 416 | let mut vfov: f64 = 40.0; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time0` [INFO] [stderr] --> src/hittable.rs:126:28 [INFO] [stderr] | [INFO] [stderr] 126 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time1` [INFO] [stderr] --> src/hittable.rs:126:40 [INFO] [stderr] | [INFO] [stderr] 126 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u` [INFO] [stderr] --> src/material.rs:39:23 [INFO] [stderr] | [INFO] [stderr] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/material.rs:39:31 [INFO] [stderr] | [INFO] [stderr] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/material.rs:39:39 [INFO] [stderr] | [INFO] [stderr] 39 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u` [INFO] [stderr] --> src/material.rs:57:23 [INFO] [stderr] | [INFO] [stderr] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/material.rs:57:31 [INFO] [stderr] | [INFO] [stderr] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/material.rs:57:39 [INFO] [stderr] | [INFO] [stderr] 57 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u` [INFO] [stderr] --> src/material.rs:76:23 [INFO] [stderr] | [INFO] [stderr] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/material.rs:76:31 [INFO] [stderr] | [INFO] [stderr] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/material.rs:76:39 [INFO] [stderr] | [INFO] [stderr] 76 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `direction` is never read [INFO] [stderr] --> src/material.rs:99:17 [INFO] [stderr] | [INFO] [stderr] 99 | let mut direction: Vec3 = Vec3(0.0, 0.0, 0.0); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u` [INFO] [stderr] --> src/material.rs:111:23 [INFO] [stderr] | [INFO] [stderr] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/material.rs:111:31 [INFO] [stderr] | [INFO] [stderr] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/material.rs:111:39 [INFO] [stderr] | [INFO] [stderr] 111 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r_in` [INFO] [stderr] --> src/material.rs:129:23 [INFO] [stderr] | [INFO] [stderr] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_r_in` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rec` [INFO] [stderr] --> src/material.rs:129:35 [INFO] [stderr] | [INFO] [stderr] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rec` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `attenuation` [INFO] [stderr] --> src/material.rs:129:52 [INFO] [stderr] | [INFO] [stderr] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attenuation` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scattered` [INFO] [stderr] --> src/material.rs:129:77 [INFO] [stderr] | [INFO] [stderr] 129 | fn scatter(&self, r_in: &Ray, rec: &HitRecord, attenuation: &mut Color, scattered: &mut Ray) -> bool { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scattered` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u` [INFO] [stderr] --> src/material.rs:161:23 [INFO] [stderr] | [INFO] [stderr] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/material.rs:161:31 [INFO] [stderr] | [INFO] [stderr] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/material.rs:161:39 [INFO] [stderr] | [INFO] [stderr] 161 | fn emitted(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time0` [INFO] [stderr] --> src/sphere.rs:55:28 [INFO] [stderr] | [INFO] [stderr] 55 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time1` [INFO] [stderr] --> src/sphere.rs:55:40 [INFO] [stderr] | [INFO] [stderr] 55 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u` [INFO] [stderr] --> src/texture.rs:21:21 [INFO] [stderr] | [INFO] [stderr] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/texture.rs:21:29 [INFO] [stderr] | [INFO] [stderr] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/texture.rs:21:37 [INFO] [stderr] | [INFO] [stderr] 21 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `u` [INFO] [stderr] --> src/texture.rs:65:21 [INFO] [stderr] | [INFO] [stderr] 65 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/texture.rs:65:29 [INFO] [stderr] | [INFO] [stderr] 65 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `p` [INFO] [stderr] --> src/texture.rs:78:37 [INFO] [stderr] | [INFO] [stderr] 78 | fn value(&self, u: f64, v: f64, p: &Point3) -> Color { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rng` [INFO] [stderr] --> src/perlin.rs:17:17 [INFO] [stderr] | [INFO] [stderr] 17 | let mut rng = rand::thread_rng(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/perlin.rs:64:13 [INFO] [stderr] | [INFO] [stderr] 64 | for i in 0..7 { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time0` [INFO] [stderr] --> src/aarect.rs:48:28 [INFO] [stderr] | [INFO] [stderr] 48 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time1` [INFO] [stderr] --> src/aarect.rs:48:40 [INFO] [stderr] | [INFO] [stderr] 48 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time0` [INFO] [stderr] --> src/aarect.rs:106:28 [INFO] [stderr] | [INFO] [stderr] 106 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time1` [INFO] [stderr] --> src/aarect.rs:106:40 [INFO] [stderr] | [INFO] [stderr] 106 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time0` [INFO] [stderr] --> src/aarect.rs:164:28 [INFO] [stderr] | [INFO] [stderr] 164 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time1` [INFO] [stderr] --> src/aarect.rs:164:40 [INFO] [stderr] | [INFO] [stderr] 164 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time0` [INFO] [stderr] --> src/abox.rs:28:28 [INFO] [stderr] | [INFO] [stderr] 28 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time1` [INFO] [stderr] --> src/abox.rs:28:40 [INFO] [stderr] | [INFO] [stderr] 28 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time0` [INFO] [stderr] --> src/bvh_node.rs:35:28 [INFO] [stderr] | [INFO] [stderr] 35 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time0` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time1` [INFO] [stderr] --> src/bvh_node.rs:35:40 [INFO] [stderr] | [INFO] [stderr] 35 | fn bounding_box(&self, time0: f64, time1: f64, output_box: &mut AABB) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_time1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comparator` [INFO] [stderr] --> src/bvh_node.rs:51:17 [INFO] [stderr] | [INFO] [stderr] 51 | let comparator = box_x_compare; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comparator` [INFO] [stderr] --> src/bvh_node.rs:54:17 [INFO] [stderr] | [INFO] [stderr] 54 | let comparator = box_y_compare; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comparator` [INFO] [stderr] --> src/bvh_node.rs:57:17 [INFO] [stderr] | [INFO] [stderr] 57 | let comparator = box_z_compare; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comparator` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/perlin.rs:17:13 [INFO] [stderr] | [INFO] [stderr] 17 | let mut rng = rand::thread_rng(); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `random_in_hemisphere` [INFO] [stderr] --> src/vec3.rs:210:8 [INFO] [stderr] | [INFO] [stderr] 210 | pub fn random_in_hemisphere(normal: Vec3) -> Vec3{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `reflectance` [INFO] [stderr] --> src/material.rs:117:8 [INFO] [stderr] | [INFO] [stderr] 117 | fn reflectance(cosine: f64, ref_idx: f64) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `clear` [INFO] [stderr] --> src/hittable_list.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn clear(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `bytes_per_scanline` [INFO] [stderr] --> src/texture.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | bytes_per_scanline: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `point_count` [INFO] [stderr] --> src/perlin.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | point_count: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `hit_sphere` [INFO] [stderr] --> src/main.rs:73:4 [INFO] [stderr] | [INFO] [stderr] 73 | fn hit_sphere(center: Point3, radius: f64, r: Ray) -> f64 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `ASPECT_RATIO` should have a snake case name [INFO] [stderr] --> src/main.rs:405:17 [INFO] [stderr] | [INFO] [stderr] 405 | let mut ASPECT_RATIO: f64 = 16.0/9.0; [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `aspect_ratio` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `IMAGE_WIDTH` should have a snake case name [INFO] [stderr] --> src/main.rs:406:17 [INFO] [stderr] | [INFO] [stderr] 406 | let mut IMAGE_WIDTH: u64 = 400; [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `image_width` [INFO] [stderr] [INFO] [stderr] warning: variable `SAMPLES_PER_PIXEL` should have a snake case name [INFO] [stderr] --> src/main.rs:407:17 [INFO] [stderr] | [INFO] [stderr] 407 | let mut SAMPLES_PER_PIXEL: u64 = 100; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `samples_per_pixel` [INFO] [stderr] [INFO] [stderr] warning: variable `IMAGE_HEIGTH` should have a snake case name [INFO] [stderr] --> src/main.rs:501:13 [INFO] [stderr] | [INFO] [stderr] 501 | let IMAGE_HEIGTH: u64 = (IMAGE_WIDTH as f64/ASPECT_RATIO) as u64; [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `image_heigth` [INFO] [stderr] [INFO] [stderr] warning: variable `ASPECT_RATIO` should have a snake case name [INFO] [stderr] --> src/camera.rs:41:17 [INFO] [stderr] | [INFO] [stderr] 41 | let ASPECT_RATIO: f64 = aspect_ratio; [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `aspect_ratio` [INFO] [stderr] [INFO] [stderr] warning: variable `VIEWPORT_HEIGHT` should have a snake case name [INFO] [stderr] --> src/camera.rs:42:17 [INFO] [stderr] | [INFO] [stderr] 42 | let VIEWPORT_HEIGHT: f64 = 2.0 * h; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `viewport_height` [INFO] [stderr] [INFO] [stderr] warning: variable `VIEWPORT_WIDTH` should have a snake case name [INFO] [stderr] --> src/camera.rs:43:17 [INFO] [stderr] | [INFO] [stderr] 43 | let VIEWPORT_WIDTH: f64 = ASPECT_RATIO * VIEWPORT_HEIGHT; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `viewport_width` [INFO] [stderr] [INFO] [stderr] warning: variable `enableDebug` should have a snake case name [INFO] [stderr] --> src/constant_medium.rs:28:13 [INFO] [stderr] | [INFO] [stderr] 28 | let enableDebug: bool = false; [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `enable_debug` [INFO] [stderr] [INFO] [stderr] warning: `ray-tracing-rust` (bin "ray-tracing-rust" test) generated 72 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ray_tracing_rust-5b911f0e0231f1f9) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5d34eedc01511e70365d59c553310cd3fcddecda113caeb358570c926121b5c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d34eedc01511e70365d59c553310cd3fcddecda113caeb358570c926121b5c4", kill_on_drop: false }` [INFO] [stdout] 5d34eedc01511e70365d59c553310cd3fcddecda113caeb358570c926121b5c4