[INFO] cloning repository https://github.com/SalihDGN0631/rust-minecraft-clone [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SalihDGN0631/rust-minecraft-clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSalihDGN0631%2Frust-minecraft-clone", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSalihDGN0631%2Frust-minecraft-clone'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c8dbe35b0538295aa5e62481113ee5343de218fd [INFO] checking SalihDGN0631/rust-minecraft-clone against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSalihDGN0631%2Frust-minecraft-clone" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SalihDGN0631/rust-minecraft-clone [INFO] finished tweaking git repo https://github.com/SalihDGN0631/rust-minecraft-clone [INFO] tweaked toml for git repo https://github.com/SalihDGN0631/rust-minecraft-clone written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SalihDGN0631/rust-minecraft-clone on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SalihDGN0631/rust-minecraft-clone 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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: binary `rsMinecraft` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-7-tc1/source/target/.../rsMinecraft [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::non_kebab_case_bins` is set to `warn` by default [INFO] [stderr] help: to change the binary name to `rs-minecraft`, convert `package.name` [INFO] [stderr] --> Cargo.toml:6:8 [INFO] [stderr] | [INFO] [stderr] 6 - name = "rsMinecraft" [INFO] [stderr] 6 + name = "rs-minecraft" [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `rs-minecraft`, specify `bin.name` [INFO] [stderr] --> Cargo.toml:7:19 [INFO] [stderr] | [INFO] [stderr] 7 ~ version = "0.1.0" [INFO] [stderr] 8 + [[bin]] [INFO] [stderr] 9 + name = "rs-minecraft" [INFO] [stderr] 10 + path = "src/main.rs" [INFO] [stderr] | [INFO] [stderr] warning: `rsMinecraft` (manifest) generated 1 warning [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded miniquad v0.4.10 [INFO] [stderr] Downloaded macroquad v0.4.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323 [INFO] running `Command { std: "docker" "start" "75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] warning: binary `rsMinecraft` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../rsMinecraft [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::non_kebab_case_bins` is set to `warn` by default [INFO] [stderr] help: to change the binary name to `rs-minecraft`, convert `package.name` [INFO] [stderr] --> Cargo.toml:6:8 [INFO] [stderr] | [INFO] [stderr] 6 - name = "rsMinecraft" [INFO] [stderr] 6 + name = "rs-minecraft" [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `rs-minecraft`, specify `bin.name` [INFO] [stderr] --> Cargo.toml:7:19 [INFO] [stderr] | [INFO] [stderr] 7 ~ version = "0.1.0" [INFO] [stderr] 8 + [[bin]] [INFO] [stderr] 9 + name = "rs-minecraft" [INFO] [stderr] 10 + path = "src/main.rs" [INFO] [stderr] | [INFO] [stderr] warning: `rsMinecraft` (manifest) generated 1 warning [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling miniquad v0.4.10 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking macroquad v0.4.15 [INFO] [stderr] Checking rsMinecraft v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Error` [INFO] [stdout] --> src/core/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BLACK`, `BLUE`, `Color`, `GREEN`, `MaterialParams`, `Material`, `ShaderSource`, `YELLOW`, `gl::glCreateShader`, `input::KeyCode::D`, and `load_material` [INFO] [stdout] --> src/main.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | ...::{BLACK, BLUE, Color, GREEN, LIME, RED, WHITE, YELLOW}, input::KeyCode::D, material::{Material, MaterialParams, load_material}, miniquad::{ShaderSource, gl::glCreateShader}, ... [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Error` [INFO] [stdout] --> src/core/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BLACK`, `BLUE`, `Color`, `GREEN`, `MaterialParams`, `Material`, `ShaderSource`, `YELLOW`, `gl::glCreateShader`, `input::KeyCode::D`, and `load_material` [INFO] [stdout] --> src/main.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | ...::{BLACK, BLUE, Color, GREEN, LIME, RED, WHITE, YELLOW}, input::KeyCode::D, material::{Material, MaterialParams, load_material}, miniquad::{ShaderSource, gl::glCreateShader}, ... [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/Renderer.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut positions = (self.BlocksToRender).clone().into_keys(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/Renderer.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut blocks = (self.BlocksToRender).clone().into_values(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/Renderer.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let mut vec3_pos = Vec3::new(pos.0 as f32, pos.1 as f32, pos.2 as f32); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocks` [INFO] [stdout] --> src/core/Renderer.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut blocks = (self.BlocksToRender).clone().into_values(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `registry` is never read [INFO] [stdout] --> src/core/game.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub registry : Registry, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Text` is never constructed [INFO] [stdout] --> src/core/UI.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Text { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, and `update_text` are never used [INFO] [stdout] --> src/core/UI.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Text { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | [INFO] [stdout] 14 | fn new(_text:&str,_font_size:f32,color:Color,position:(f32,f32)) -> Text { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn update_text(&mut self,text:&str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Button` is never constructed [INFO] [stdout] --> src/core/UI.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_button_text` is never used [INFO] [stdout] --> src/core/UI.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn create_button_text(text:&str,pos:(f32,f32),color:Color,font_size:f32) -> Text { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw_button` are never used [INFO] [stdout] --> src/core/UI.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Button { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | fn new(pos:(f32,f32),text:&str,size:(f32,f32)) -> Button { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn draw_button(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UI` is never constructed [INFO] [stdout] --> src/core/UI.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | struct UI { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw_UI` are never used [INFO] [stdout] --> src/core/UI.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl UI { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | fn new() -> UI { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn draw_UI(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `material` is never read [INFO] [stdout] --> src/core/Renderer.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Renderer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub material : Material [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Renderer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_type` is never read [INFO] [stdout] --> src/core/Block.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub block_type : Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core/Block.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 34 | [INFO] [stdout] 35 | pub fn new(textures:Option>,_type:BlockType,_color : Color) -> Block { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getBlocks` is never used [INFO] [stdout] --> src/core/Registry.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Registry { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn getBlocks(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `disable` are never used [INFO] [stdout] --> src/core/FirstPersonController.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl FirstPersonController { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new() -> FirstPersonController { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `UI` should have a snake case name [INFO] [stdout] --> src/core.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod UI; [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `ui` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Renderer` should have a snake case name [INFO] [stdout] --> src/core.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod Renderer; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Block` should have a snake case name [INFO] [stdout] --> src/core.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod Block; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Registry` should have a snake case name [INFO] [stdout] --> src/core.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod Registry; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `FirstPersonController` should have a snake case name [INFO] [stdout] --> src/core.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod FirstPersonController; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `first_person_controller` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `camTarget` should have a snake case name [INFO] [stdout] --> src/core/game.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let camTarget = self.fpc.step(self.cam3d.position,self.delta_time); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cam_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OnHoverCallback` should have a snake case name [INFO] [stdout] --> src/core/UI.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | OnHoverCallback : (), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `on_hover_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OnClickCallback` should have a snake case name [INFO] [stdout] --> src/core/UI.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | OnClickCallback : (), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `on_click_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OnMouseLeave` should have a snake case name [INFO] [stdout] --> src/core/UI.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | OnMouseLeave : (), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `on_mouse_leave` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/core/UI.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | &self.text.draw(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 86 | let _ = &self.text.draw(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw_UI` should have a snake case name [INFO] [stdout] --> src/core/UI.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | fn draw_UI(&self) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `draw_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `BlocksToRender` should have a snake case name [INFO] [stdout] --> src/core/Renderer.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub BlocksToRender : HashMap<(i32,i32,i32),i32>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `blocks_to_render` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `BlockList` should have a snake case name [INFO] [stdout] --> src/core/Renderer.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub BlockList : HashMap, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `fragment_shader` should have an upper case name [INFO] [stdout] --> src/core/Renderer.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const fragment_shader:&str = r#"#version 100 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - pub const fragment_shader:&str = r#"#version 100 [INFO] [stdout] 22 + pub const FRAGMENT_SHADER:&str = r#"#version 100 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `vertex_shader` should have an upper case name [INFO] [stdout] --> src/core/Renderer.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const vertex_shader:&str = r#"#version 100 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 32 - pub const vertex_shader:&str = r#"#version 100 [INFO] [stdout] 32 + pub const VERTEX_SHADER:&str = r#"#version 100 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BLOCKS` should have a snake case name [INFO] [stdout] --> src/core/Renderer.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn new(BLOCKS:HashMap) -> Renderer { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newBlock` should have a snake case name [INFO] [stdout] --> src/core/Block.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn newBlock(texture:Texture2D,_type:BlockType,_color:Color) -> Block { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Blocks` should have a snake case name [INFO] [stdout] --> src/core/Registry.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub Blocks : HashMap, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/core/Registry.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | &self.Blocks.insert(self.Blocks.len() as i32, b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = &self.Blocks.insert(self.Blocks.len() as i32, b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getBlocks` should have a snake case name [INFO] [stdout] --> src/core/Registry.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn getBlocks(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/Renderer.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let mut positions = (self.BlocksToRender).clone().into_keys(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/Renderer.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut blocks = (self.BlocksToRender).clone().into_values(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/core/Renderer.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let mut vec3_pos = Vec3::new(pos.0 as f32, pos.1 as f32, pos.2 as f32); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocks` [INFO] [stdout] --> src/core/Renderer.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut blocks = (self.BlocksToRender).clone().into_values(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `registry` is never read [INFO] [stdout] --> src/core/game.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub registry : Registry, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Text` is never constructed [INFO] [stdout] --> src/core/UI.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Text { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, and `update_text` are never used [INFO] [stdout] --> src/core/UI.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Text { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | [INFO] [stdout] 14 | fn new(_text:&str,_font_size:f32,color:Color,position:(f32,f32)) -> Text { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn update_text(&mut self,text:&str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Button` is never constructed [INFO] [stdout] --> src/core/UI.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_button_text` is never used [INFO] [stdout] --> src/core/UI.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn create_button_text(text:&str,pos:(f32,f32),color:Color,font_size:f32) -> Text { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw_button` are never used [INFO] [stdout] --> src/core/UI.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Button { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | fn new(pos:(f32,f32),text:&str,size:(f32,f32)) -> Button { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn draw_button(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UI` is never constructed [INFO] [stdout] --> src/core/UI.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | struct UI { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw_UI` are never used [INFO] [stdout] --> src/core/UI.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 106 | impl UI { [INFO] [stdout] | ------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | fn new() -> UI { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn draw_UI(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `material` is never read [INFO] [stdout] --> src/core/Renderer.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Renderer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | pub material : Material [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Renderer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `block_type` is never read [INFO] [stdout] --> src/core/Block.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub block_type : Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/core/Block.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 34 | [INFO] [stdout] 35 | pub fn new(textures:Option>,_type:BlockType,_color : Color) -> Block { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getBlocks` is never used [INFO] [stdout] --> src/core/Registry.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Registry { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn getBlocks(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `disable` are never used [INFO] [stdout] --> src/core/FirstPersonController.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl FirstPersonController { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new() -> FirstPersonController { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn disable(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `UI` should have a snake case name [INFO] [stdout] --> src/core.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod UI; [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `ui` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Renderer` should have a snake case name [INFO] [stdout] --> src/core.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod Renderer; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Block` should have a snake case name [INFO] [stdout] --> src/core.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub mod Block; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Registry` should have a snake case name [INFO] [stdout] --> src/core.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod Registry; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `FirstPersonController` should have a snake case name [INFO] [stdout] --> src/core.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod FirstPersonController; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `first_person_controller` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `camTarget` should have a snake case name [INFO] [stdout] --> src/core/game.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let camTarget = self.fpc.step(self.cam3d.position,self.delta_time); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cam_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OnHoverCallback` should have a snake case name [INFO] [stdout] --> src/core/UI.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | OnHoverCallback : (), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `on_hover_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OnClickCallback` should have a snake case name [INFO] [stdout] --> src/core/UI.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | OnClickCallback : (), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `on_click_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `OnMouseLeave` should have a snake case name [INFO] [stdout] --> src/core/UI.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | OnMouseLeave : (), [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `on_mouse_leave` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/core/UI.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | &self.text.draw(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 86 | let _ = &self.text.draw(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw_UI` should have a snake case name [INFO] [stdout] --> src/core/UI.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | fn draw_UI(&self) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `draw_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `BlocksToRender` should have a snake case name [INFO] [stdout] --> src/core/Renderer.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub BlocksToRender : HashMap<(i32,i32,i32),i32>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `blocks_to_render` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `BlockList` should have a snake case name [INFO] [stdout] --> src/core/Renderer.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub BlockList : HashMap, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `block_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `fragment_shader` should have an upper case name [INFO] [stdout] --> src/core/Renderer.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const fragment_shader:&str = r#"#version 100 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 22 - pub const fragment_shader:&str = r#"#version 100 [INFO] [stdout] 22 + pub const FRAGMENT_SHADER:&str = r#"#version 100 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `vertex_shader` should have an upper case name [INFO] [stdout] --> src/core/Renderer.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const vertex_shader:&str = r#"#version 100 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 32 - pub const vertex_shader:&str = r#"#version 100 [INFO] [stdout] 32 + pub const VERTEX_SHADER:&str = r#"#version 100 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BLOCKS` should have a snake case name [INFO] [stdout] --> src/core/Renderer.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn new(BLOCKS:HashMap) -> Renderer { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newBlock` should have a snake case name [INFO] [stdout] --> src/core/Block.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn newBlock(texture:Texture2D,_type:BlockType,_color:Color) -> Block { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Blocks` should have a snake case name [INFO] [stdout] --> src/core/Registry.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub Blocks : HashMap, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/core/Registry.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | &self.Blocks.insert(self.Blocks.len() as i32, b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = &self.Blocks.insert(self.Blocks.len() as i32, b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getBlocks` should have a snake case name [INFO] [stdout] --> src/core/Registry.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn getBlocks(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.72s [INFO] running `Command { std: "docker" "inspect" "75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323", kill_on_drop: false }` [INFO] [stdout] 75f6520e3375dc3337a01c92d82acddb399e5f48e54818eb9bd9d296a9728323