[INFO] cloning repository https://github.com/AntonDankov/3D-graphic-render-from-scratch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AntonDankov/3D-graphic-render-from-scratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonDankov%2F3D-graphic-render-from-scratch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonDankov%2F3D-graphic-render-from-scratch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f7c0bc4c5604b00b8f5d94415d3c71f75465f37 [INFO] checking AntonDankov/3D-graphic-render-from-scratch against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonDankov%2F3D-graphic-render-from-scratch" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AntonDankov/3D-graphic-render-from-scratch on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AntonDankov/3D-graphic-render-from-scratch [INFO] finished tweaking git repo https://github.com/AntonDankov/3D-graphic-render-from-scratch [INFO] tweaked toml for git repo https://github.com/AntonDankov/3D-graphic-render-from-scratch written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AntonDankov/3D-graphic-render-from-scratch already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d32316b6f7f3d13289288da062d27694e3b65cb81402e3e87c2cbef57d8d3f45 [INFO] running `Command { std: "docker" "start" "-a" "d32316b6f7f3d13289288da062d27694e3b65cb81402e3e87c2cbef57d8d3f45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d32316b6f7f3d13289288da062d27694e3b65cb81402e3e87c2cbef57d8d3f45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d32316b6f7f3d13289288da062d27694e3b65cb81402e3e87c2cbef57d8d3f45", kill_on_drop: false }` [INFO] [stdout] d32316b6f7f3d13289288da062d27694e3b65cb81402e3e87c2cbef57d8d3f45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 207c312b0b48ff1a6b7958519abbad13ec05ad5e1e0daaf2454ae754a17491f9 [INFO] running `Command { std: "docker" "start" "-a" "207c312b0b48ff1a6b7958519abbad13ec05ad5e1e0daaf2454ae754a17491f9", kill_on_drop: false }` [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling sdl2 v0.37.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling cc v1.2.14 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling sdl2-sys v0.37.0 [INFO] [stderr] Checking graphics_3d_from_scratch_pikuma v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if (memory.rotation == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (memory.rotation == 0) { [INFO] [stdout] 27 + if memory.rotation == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | } else if (memory.rotation == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - } else if (memory.rotation == 1) { [INFO] [stdout] 29 + } else if memory.rotation == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | } else if (memory.rotation == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - } else if (memory.rotation == 2) { [INFO] [stdout] 31 + } else if memory.rotation == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::Vec2` [INFO] [stdout] --> src/render.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::Vec2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/render.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::render::Texture` [INFO] [stdout] --> src/render.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::render::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/render.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/render.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | if (x_pos <= width_i32 && x_pos >= 0 && y_pos >= 0 && y_pos <= height_i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - if (x_pos <= width_i32 && x_pos >= 0 && y_pos >= 0 && y_pos <= height_i32) { [INFO] [stdout] 39 + if x_pos <= width_i32 && x_pos >= 0 && y_pos >= 0 && y_pos <= height_i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | while (is_loop_running) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - while (is_loop_running) { [INFO] [stdout] 45 + while is_loop_running { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | if (memory.rotation == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (memory.rotation == 0) { [INFO] [stdout] 27 + if memory.rotation == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 29 | } else if (memory.rotation == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - } else if (memory.rotation == 1) { [INFO] [stdout] 29 + } else if memory.rotation == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | } else if (memory.rotation == 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - } else if (memory.rotation == 2) { [INFO] [stdout] 31 + } else if memory.rotation == 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::types::Vec2` [INFO] [stdout] --> src/render.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::Vec2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/render.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::render::Texture` [INFO] [stdout] --> src/render.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::render::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::video::Window` [INFO] [stdout] --> src/render.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2::video::Window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/render.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | if (x_pos <= width_i32 && x_pos >= 0 && y_pos >= 0 && y_pos <= height_i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - if (x_pos <= width_i32 && x_pos >= 0 && y_pos >= 0 && y_pos <= height_i32) { [INFO] [stdout] 39 + if x_pos <= width_i32 && x_pos >= 0 && y_pos >= 0 && y_pos <= height_i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | while (is_loop_running) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - while (is_loop_running) { [INFO] [stdout] 45 + while is_loop_running { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/render.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | s.spawn(move || unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_buffer` [INFO] [stdout] --> src/render.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | color_buffer: &mut [u32], [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_buffer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/render.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | width: u32, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/render.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | height: u32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ten_millis` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let ten_millis = Duration::from_millis(10); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ten_millis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ortographic_project_entity` is never used [INFO] [stdout] --> src/math.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ortographic_project_entity() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_color_buffer` is never used [INFO] [stdout] --> src/render.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn clear_color_buffer(color: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color_buffer` is never read [INFO] [stdout] --> src/types.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Memory { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 31 | pub color_buffer: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Entity` is never constructed [INFO] [stdout] --> src/types.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Entity { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mesh` is never constructed [INFO] [stdout] --> src/types.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Mesh { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | render(&mut canvas, &mut texture, &mut color_buffer, width, height); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = render(&mut canvas, &mut texture, &mut color_buffer, width, height); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/game_state.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | unsafe { GAME_MEMORY.as_mut().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/game_state.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { &mut COLOR_BUFFER } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { &raw mut COLOR_BUFFER } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/render.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / texture.update( [INFO] [stdout] 59 | | None, [INFO] [stdout] 60 | | unsafe { [INFO] [stdout] 61 | | std::slice::from_raw_parts(color_buffer.as_ptr() as *const u8, color_buffer.len() * 4) [INFO] [stdout] 62 | | }, [INFO] [stdout] 63 | | (WIDTH * 4) as usize, [INFO] [stdout] 64 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = texture.update( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/render.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | render_color_buffer(canvas, texture); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 121 | let _ = render_color_buffer(canvas, texture); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/render.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | s.spawn(move || unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color_buffer` [INFO] [stdout] --> src/render.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | color_buffer: &mut [u32], [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_color_buffer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/render.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | width: u32, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/render.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | height: u32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ten_millis` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let ten_millis = Duration::from_millis(10); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ten_millis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ortographic_project_entity` is never used [INFO] [stdout] --> src/math.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn ortographic_project_entity() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_color_buffer` is never used [INFO] [stdout] --> src/render.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn clear_color_buffer(color: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color_buffer` is never read [INFO] [stdout] --> src/types.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Memory { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 31 | pub color_buffer: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Entity` is never constructed [INFO] [stdout] --> src/types.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Entity { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mesh` is never constructed [INFO] [stdout] --> src/types.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Mesh { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | render(&mut canvas, &mut texture, &mut color_buffer, width, height); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = render(&mut canvas, &mut texture, &mut color_buffer, width, height); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/game_state.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | unsafe { GAME_MEMORY.as_mut().unwrap() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/game_state.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { &mut COLOR_BUFFER } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { &raw mut COLOR_BUFFER } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/render.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / texture.update( [INFO] [stdout] 59 | | None, [INFO] [stdout] 60 | | unsafe { [INFO] [stdout] 61 | | std::slice::from_raw_parts(color_buffer.as_ptr() as *const u8, color_buffer.len() * 4) [INFO] [stdout] 62 | | }, [INFO] [stdout] 63 | | (WIDTH * 4) as usize, [INFO] [stdout] 64 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = texture.update( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/render.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | render_color_buffer(canvas, texture); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 121 | let _ = render_color_buffer(canvas, texture); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 51s [INFO] running `Command { std: "docker" "inspect" "207c312b0b48ff1a6b7958519abbad13ec05ad5e1e0daaf2454ae754a17491f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "207c312b0b48ff1a6b7958519abbad13ec05ad5e1e0daaf2454ae754a17491f9", kill_on_drop: false }` [INFO] [stdout] 207c312b0b48ff1a6b7958519abbad13ec05ad5e1e0daaf2454ae754a17491f9