[INFO] cloning repository https://github.com/leoherbsthofer/rust_raytracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leoherbsthofer/rust_raytracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleoherbsthofer%2Frust_raytracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleoherbsthofer%2Frust_raytracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 13d7f8bace0d1ac69a10ce4c262be75cd581efa6 [INFO] checking leoherbsthofer/rust_raytracer against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleoherbsthofer%2Frust_raytracer" "/workspace/builds/worker-27/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-27/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leoherbsthofer/rust_raytracer on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leoherbsthofer/rust_raytracer [INFO] finished tweaking git repo https://github.com/leoherbsthofer/rust_raytracer [INFO] tweaked toml for git repo https://github.com/leoherbsthofer/rust_raytracer written to /workspace/builds/worker-27/source/Cargo.toml [INFO] crate git repo https://github.com/leoherbsthofer/rust_raytracer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dyn-clone v1.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0c3cee8b979900553fb0da8d8c72632cb5776b522483e6fa84bb64475d6cc9d9 [INFO] running `Command { std: "docker" "start" "-a" "0c3cee8b979900553fb0da8d8c72632cb5776b522483e6fa84bb64475d6cc9d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c3cee8b979900553fb0da8d8c72632cb5776b522483e6fa84bb64475d6cc9d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c3cee8b979900553fb0da8d8c72632cb5776b522483e6fa84bb64475d6cc9d9", kill_on_drop: false }` [INFO] [stdout] 0c3cee8b979900553fb0da8d8c72632cb5776b522483e6fa84bb64475d6cc9d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5539c977f686391e0538c4d0be446498aa5289f048a1f05ccfd3b9dadca9e01 [INFO] running `Command { std: "docker" "start" "-a" "d5539c977f686391e0538c4d0be446498aa5289f048a1f05ccfd3b9dadca9e01", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Compiling sdl2 v0.34.1 [INFO] [stderr] Compiling raytracer v0.1.0 (/tmp/fixit) [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking bytemuck v1.2.0 [INFO] [stderr] Checking dyn-clone v1.0.1 [INFO] [stderr] Migrating build.rs from 2018 edition to 2021 [INFO] [stderr] Compiling sdl2-sys v0.34.0 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking deflate v0.8.4 [INFO] [stderr] Checking tiff v0.4.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking png v0.16.3 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking threadpool v1.8.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking jpeg-decoder v0.1.19 [INFO] [stderr] Checking image v0.23.4 [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/bvh_node.rs (2 fixes) [INFO] [stderr] Fixed src/AABB.rs (1 fix) [INFO] [stderr] Fixed src/sphere.rs (3 fixes) [INFO] [stderr] Fixed src/dielectric.rs (3 fixes) [INFO] [stderr] Fixed src/render_engine_multithread.rs (8 fixes) [INFO] [stderr] Fixed src/image_output.rs (4 fixes) [INFO] [stderr] Fixed src/main.rs (4 fixes) [INFO] [stderr] Fixed src/solid_color_texture.rs (3 fixes) [INFO] [stderr] Fixed src/hitable.rs (1 fix) [INFO] [stderr] Fixed src/sdl_preview/sdl_output.rs (9 fixes) [INFO] [stdout] warning: value assigned to `outward_normal` is never read [INFO] [stdout] --> src/dielectric.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut outward_normal = Vector3::new(0.0, 0.0, 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 `outward_normal` is never read [INFO] [stdout] --> src/dielectric.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut outward_normal = Vector3::new(0.0, 0.0, 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: associated function is never used: `new` [INFO] [stdout] --> src/image_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new (width: u32, height: u32) -> ImageOutput { [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: `remap_pixel_range` [INFO] [stdout] --> src/image_output.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn remap_pixel_range(&mut self, max_brightness: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_sdl_color` [INFO] [stdout] --> src/color.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn to_sdl_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `duplicate` [INFO] [stdout] --> src/scene.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn duplicate(&self) -> Scene { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/moving_sphere.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(center0: Vector3, center1: Vector3, t0: f64, t1: f64, radius: f64, material: Box) -> MovingSphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_compare` [INFO] [stdout] --> src/bvh_node.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn box_compare(a: &Arc, b: &Arc, axis: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_x_compare` [INFO] [stdout] --> src/bvh_node.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn box_x_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_y_compare` [INFO] [stdout] --> src/bvh_node.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn box_y_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_z_compare` [INFO] [stdout] --> src/bvh_node.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn box_z_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bvh_node.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(src_objects: Vec>, start: usize, end: usize, time0: f64, time1: f64) -> BVHNode { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_scene` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn random_scene(scene: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AABB` should have a snake case name [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | mod AABB; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `aabb` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RGB` should have a snake case name [INFO] [stdout] --> src/color.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn RGB(r: u8, g: u8, b: u8) -> Color { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `rgb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newTime` should have a snake case name [INFO] [stdout] --> src/ray.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn newTime(origin: Vector3, direction: Vector3, time: f64) -> Ray { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/render_engine_multithread.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | / tx.send(RenderThreadResult { [INFO] [stdout] 87 | | row: j, [INFO] [stdout] 88 | | pixel: row, [INFO] [stdout] 89 | | }); [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] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | self.render_end_window(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | self.sdl_thread.take().unwrap().join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | / self.send_vec.pop().unwrap().send(SetPixelResultRow { [INFO] [stdout] 46 | | y, [INFO] [stdout] 47 | | c, [INFO] [stdout] 48 | | is_real_value: true, [INFO] [stdout] 49 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | SDLOutput::start_sdl_window(width, height, rx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/image_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new (width: u32, height: u32) -> ImageOutput { [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: `remap_pixel_range` [INFO] [stdout] --> src/image_output.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn remap_pixel_range(&mut self, max_brightness: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_sdl_color` [INFO] [stdout] --> src/color.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn to_sdl_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `duplicate` [INFO] [stdout] --> src/scene.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn duplicate(&self) -> Scene { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/moving_sphere.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(center0: Vector3, center1: Vector3, t0: f64, t1: f64, radius: f64, material: Box) -> MovingSphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_compare` [INFO] [stdout] --> src/bvh_node.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn box_compare(a: &Arc, b: &Arc, axis: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_x_compare` [INFO] [stdout] --> src/bvh_node.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn box_x_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_y_compare` [INFO] [stdout] --> src/bvh_node.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn box_y_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_z_compare` [INFO] [stdout] --> src/bvh_node.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn box_z_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bvh_node.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(src_objects: Vec>, start: usize, end: usize, time0: f64, time1: f64) -> BVHNode { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_scene` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn random_scene(scene: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AABB` should have a snake case name [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | mod AABB; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `aabb` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RGB` should have a snake case name [INFO] [stdout] --> src/color.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn RGB(r: u8, g: u8, b: u8) -> Color { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `rgb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newTime` should have a snake case name [INFO] [stdout] --> src/ray.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn newTime(origin: Vector3, direction: Vector3, time: f64) -> Ray { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/render_engine_multithread.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | / tx.send(RenderThreadResult { [INFO] [stdout] 87 | | row: j, [INFO] [stdout] 88 | | pixel: row, [INFO] [stdout] 89 | | }); [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] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | self.render_end_window(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | self.sdl_thread.take().unwrap().join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | / self.send_vec.pop().unwrap().send(SetPixelResultRow { [INFO] [stdout] 46 | | y, [INFO] [stdout] 47 | | c, [INFO] [stdout] 48 | | is_real_value: true, [INFO] [stdout] 49 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | SDLOutput::start_sdl_window(width, height, rx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.76s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling raytracer v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: value assigned to `outward_normal` is never read [INFO] [stdout] --> src/dielectric.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut outward_normal = Vector3::new(0.0, 0.0, 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 `outward_normal` is never read [INFO] [stdout] --> src/dielectric.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let mut outward_normal = Vector3::new(0.0, 0.0, 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: associated function is never used: `new` [INFO] [stdout] --> src/image_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new (width: u32, height: u32) -> ImageOutput { [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: `remap_pixel_range` [INFO] [stdout] --> src/image_output.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn remap_pixel_range(&mut self, max_brightness: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_sdl_color` [INFO] [stdout] --> src/color.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn to_sdl_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `duplicate` [INFO] [stdout] --> src/scene.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn duplicate(&self) -> Scene { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/moving_sphere.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(center0: Vector3, center1: Vector3, t0: f64, t1: f64, radius: f64, material: Box) -> MovingSphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_compare` [INFO] [stdout] --> src/bvh_node.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn box_compare(a: &Arc, b: &Arc, axis: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_x_compare` [INFO] [stdout] --> src/bvh_node.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn box_x_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_y_compare` [INFO] [stdout] --> src/bvh_node.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn box_y_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_z_compare` [INFO] [stdout] --> src/bvh_node.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn box_z_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bvh_node.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(src_objects: Vec>, start: usize, end: usize, time0: f64, time1: f64) -> BVHNode { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_scene` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn random_scene(scene: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AABB` should have a snake case name [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | mod AABB; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `aabb` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RGB` should have a snake case name [INFO] [stdout] --> src/color.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn RGB(r: u8, g: u8, b: u8) -> Color { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `rgb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newTime` should have a snake case name [INFO] [stdout] --> src/ray.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn newTime(origin: Vector3, direction: Vector3, time: f64) -> Ray { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/render_engine_multithread.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | / tx.send(RenderThreadResult { [INFO] [stdout] 87 | | row: j, [INFO] [stdout] 88 | | pixel: row, [INFO] [stdout] 89 | | }); [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] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | self.render_end_window(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | self.sdl_thread.take().unwrap().join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | / self.send_vec.pop().unwrap().send(SetPixelResultRow { [INFO] [stdout] 46 | | y, [INFO] [stdout] 47 | | c, [INFO] [stdout] 48 | | is_real_value: true, [INFO] [stdout] 49 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | SDLOutput::start_sdl_window(width, height, rx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/image_output.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new (width: u32, height: u32) -> ImageOutput { [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: `remap_pixel_range` [INFO] [stdout] --> src/image_output.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn remap_pixel_range(&mut self, max_brightness: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_sdl_color` [INFO] [stdout] --> src/color.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn to_sdl_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `duplicate` [INFO] [stdout] --> src/scene.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn duplicate(&self) -> Scene { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/moving_sphere.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(center0: Vector3, center1: Vector3, t0: f64, t1: f64, radius: f64, material: Box) -> MovingSphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_compare` [INFO] [stdout] --> src/bvh_node.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn box_compare(a: &Arc, b: &Arc, axis: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_x_compare` [INFO] [stdout] --> src/bvh_node.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn box_x_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_y_compare` [INFO] [stdout] --> src/bvh_node.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn box_y_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `box_z_compare` [INFO] [stdout] --> src/bvh_node.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn box_z_compare(a: &Arc, b: &Arc) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/bvh_node.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new(src_objects: Vec>, start: usize, end: usize, time0: f64, time1: f64) -> BVHNode { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_scene` [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn random_scene(scene: &mut Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AABB` should have a snake case name [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | mod AABB; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `aabb` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RGB` should have a snake case name [INFO] [stdout] --> src/color.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn RGB(r: u8, g: u8, b: u8) -> Color { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `rgb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newTime` should have a snake case name [INFO] [stdout] --> src/ray.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn newTime(origin: Vector3, direction: Vector3, time: f64) -> Ray { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/render_engine_multithread.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | / tx.send(RenderThreadResult { [INFO] [stdout] 87 | | row: j, [INFO] [stdout] 88 | | pixel: row, [INFO] [stdout] 89 | | }); [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] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | self.render_end_window(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | self.sdl_thread.take().unwrap().join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | / self.send_vec.pop().unwrap().send(SetPixelResultRow { [INFO] [stdout] 46 | | y, [INFO] [stdout] 47 | | c, [INFO] [stdout] 48 | | is_real_value: true, [INFO] [stdout] 49 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/sdl_preview/sdl_output.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | SDLOutput::start_sdl_window(width, height, rx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.01s [INFO] running `Command { std: "docker" "inspect" "d5539c977f686391e0538c4d0be446498aa5289f048a1f05ccfd3b9dadca9e01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5539c977f686391e0538c4d0be446498aa5289f048a1f05ccfd3b9dadca9e01", kill_on_drop: false }` [INFO] [stdout] d5539c977f686391e0538c4d0be446498aa5289f048a1f05ccfd3b9dadca9e01