[INFO] cloning repository https://github.com/simonrenger/RustberryShips [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/simonrenger/RustberryShips" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimonrenger%2FRustberryShips", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimonrenger%2FRustberryShips'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fbeb32ae0b621106213703c593d0195f255bc6d1 [INFO] checking simonrenger/RustberryShips against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimonrenger%2FRustberryShips" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/simonrenger/RustberryShips on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/simonrenger/RustberryShips [INFO] finished tweaking git repo https://github.com/simonrenger/RustberryShips [INFO] tweaked toml for git repo https://github.com/simonrenger/RustberryShips written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/simonrenger/RustberryShips already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/bjz/glfw-rs.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded recs v2.0.1 [INFO] [stderr] Downloaded glfw-sys v3.2.2 [INFO] [stderr] Downloaded tobj v0.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ccffdadc8eac1b80644a4a599e7a43e55e7df20f3ce535bdafb910c4bb7ee855 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ccffdadc8eac1b80644a4a599e7a43e55e7df20f3ce535bdafb910c4bb7ee855", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ccffdadc8eac1b80644a4a599e7a43e55e7df20f3ce535bdafb910c4bb7ee855", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccffdadc8eac1b80644a4a599e7a43e55e7df20f3ce535bdafb910c4bb7ee855", kill_on_drop: false }` [INFO] [stdout] ccffdadc8eac1b80644a4a599e7a43e55e7df20f3ce535bdafb910c4bb7ee855 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e380fc29d509e8caf0a97da782453383d1cbfbe2f2cc9942935481360a7566d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1e380fc29d509e8caf0a97da782453383d1cbfbe2f2cc9942935481360a7566d", kill_on_drop: false }` [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling bitflags v0.9.1 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Checking recs v2.0.1 [INFO] [stderr] Checking approx v0.1.1 [INFO] [stderr] Checking tobj v0.1.6 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Checking semver v0.2.3 [INFO] [stderr] Compiling glfw-sys v3.2.2 [INFO] [stderr] Compiling rustberry_ecs_derive v0.1.0 (/opt/rustwide/workdir/lib/rustberry-ecs/rustberry-ecs-derive) [INFO] [stderr] Compiling xml-rs v0.6.1 [INFO] [stderr] Checking rustberry_ecs v0.1.0 (/opt/rustwide/workdir/lib/rustberry-ecs) [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling gl_generator v0.5.5 [INFO] [stderr] Compiling rustberry_ships v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> build.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> build.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> build.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> build.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking num-bigint v0.1.43 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking glfw v0.21.0 (https://github.com/bjz/glfw-rs.git#8676c2cc) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> /opt/rustwide/target/debug/build/rustberry_ships-2e752ec8f11c4ce5/out/bindings.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&str) -> *const __gl_imports::raw::c_void` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/system_manager.rs:44:22 [INFO] [stdout] | [INFO] [stdout] 44 | systems: Vec>, [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn System` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/system_manager.rs:98:39 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn add(&mut self, system: Box){ [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn System` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/resource_manager.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/resource_manager.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | fn as_any(&self) -> &Any; [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/resource_manager.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn as_any(&self) -> &Any{ [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/resource_manager.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | _resources: HashMap>, [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `resource_manager::Resource` [INFO] [stdout] --> src/engine_resources.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use resource_manager::Resource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TilePosCmp` [INFO] [stdout] --> src/main.rs:50:44 [INFO] [stdout] | [INFO] [stdout] 50 | use game_content::components::{TilemapCmp, TilePosCmp, BoardManagerCmp}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> /opt/rustwide/target/debug/build/rustberry_ships-2e752ec8f11c4ce5/out/bindings.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&str) -> *const __gl_imports::raw::c_void` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/system_manager.rs:44:22 [INFO] [stdout] | [INFO] [stdout] 44 | systems: Vec>, [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn System` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/system_manager.rs:98:39 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn add(&mut self, system: Box){ [INFO] [stdout] | ^^^^^^ help: use `dyn`: `dyn System` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/resource_manager.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/resource_manager.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | fn as_any(&self) -> &Any; [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/resource_manager.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn as_any(&self) -> &Any{ [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/resource_manager.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | _resources: HashMap>, [INFO] [stdout] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `resource_manager::Resource` [INFO] [stdout] --> src/engine_resources.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use resource_manager::Resource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TilePosCmp` [INFO] [stdout] --> src/main.rs:50:44 [INFO] [stdout] | [INFO] [stdout] 50 | use game_content::components::{TilemapCmp, TilePosCmp, BoardManagerCmp}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/system_manager.rs:60:28 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn init(&mut self, ecs: &mut Ecs){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/system_manager.rs:60:28 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn init(&mut self, ecs: &mut Ecs){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/system_manager.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn handle_event(&mut self, ecs: &mut Ecs, event: &glfw::WindowEvent){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/system_manager.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn remove(&mut self, index: u32){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `materials` [INFO] [stdout] --> src/model_loader.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | let (models, materials) = tobj_var.unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_materials` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/model_loader.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | for (i, m) in models.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/system_manager.rs:88:36 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn handle_event(&mut self, ecs: &mut Ecs, event: &glfw::WindowEvent){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/model_loader.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | for v in 0..mesh.positions.len() / 3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/system_manager.rs:104:30 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn remove(&mut self, index: u32){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/engine_content.rs:113:24 [INFO] [stdout] | [INFO] [stdout] 113 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/game_content/systems.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/game_content/systems.rs:194:24 [INFO] [stdout] | [INFO] [stdout] 194 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `materials` [INFO] [stdout] --> src/model_loader.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | let (models, materials) = tobj_var.unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_materials` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_manager` [INFO] [stdout] --> src/game_content/systems.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | let board_manager = BoardManagerCmp::retrieve_mut(ecs).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/model_loader.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | for (i, m) in models.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let mut debug_renderer = DebugDraw::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut resource_manager = RefCell::new(ResourceManager::new()); [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] --> /opt/rustwide/target/debug/build/rustberry_ships-2e752ec8f11c4ce5/out/bindings.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/model_loader.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | for v in 0..mesh.positions.len() / 3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/engine_content.rs:113:24 [INFO] [stdout] | [INFO] [stdout] 113 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/game_content/systems.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ecs` [INFO] [stdout] --> src/game_content/systems.rs:194:24 [INFO] [stdout] | [INFO] [stdout] 194 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_manager` [INFO] [stdout] --> src/game_content/systems.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | let board_manager = BoardManagerCmp::retrieve_mut(ecs).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let mut debug_renderer = DebugDraw::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut resource_manager = RefCell::new(ResourceManager::new()); [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] --> /opt/rustwide/target/debug/build/rustberry_ships-2e752ec8f11c4ce5/out/bindings.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_point` [INFO] [stdout] --> src/rendering/debug_draw.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn add_point(&mut self, pos: Vector3, color: Vector4){ [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: `add_red_point` [INFO] [stdout] --> src/rendering/debug_draw.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn add_red_point(&mut self, pos: Vector3){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FillInstructions` [INFO] [stdout] --> src/rendering/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FillInstructions{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/system_manager.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn remove(&mut self, index: u32){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `key_up` [INFO] [stdout] --> src/input_system.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn key_up(&self, key: Key) -> bool{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `key_state` [INFO] [stdout] --> src/input_system.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn key_state(&self, key: Key) -> glfw::Action{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_vector` [INFO] [stdout] --> src/game_content/components.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn from_vector(v: Vector3) -> TilePosCmp{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OtherTeam` [INFO] [stdout] --> src/game_content/systems.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | MyTeam, OtherTeam, Done [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Done` [INFO] [stdout] --> src/game_content/systems.rs:121:24 [INFO] [stdout] | [INFO] [stdout] 121 | MyTeam, OtherTeam, Done [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TANK_VERTICES` [INFO] [stdout] --> src/game_content/systems.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | / static TANK_VERTICES: [Vector3; 36] = [ [INFO] [stdout] 125 | | Vector3{x: -1.0, y: -1.0, z: -1.0}, [INFO] [stdout] 126 | | Vector3{x: -1.0, y: -1.0, z: 1.0}, [INFO] [stdout] 127 | | Vector3{x: -1.0, y: 1.0, z: 1.0}, [INFO] [stdout] ... | [INFO] [stdout] 159 | | Vector3{x: -1.0, y: 1.0, z: 1.0}, [INFO] [stdout] 160 | | Vector3{x: 1.0, y: -1.0, z: 1.0}]; [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/debug_draw.rs:39:102 [INFO] [stdout] | [INFO] [stdout] 39 | let pos_loc = gl::GetAttribLocation(shader.handle(), CString::new("a_position").unwrap().as_ptr()) as u32; [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/debug_draw.rs:40:101 [INFO] [stdout] | [INFO] [stdout] 40 | let color_loc = gl::GetAttribLocation(shader.handle(), CString::new("a_color").unwrap().as_ptr()) as u32; [INFO] [stdout] | -------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/debug_draw.rs:41:96 [INFO] [stdout] | [INFO] [stdout] 41 | let vp_loc = gl::GetUniformLocation(shader.handle(), CString::new("u_VP").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/opengl_renderer.rs:30:110 [INFO] [stdout] | [INFO] [stdout] 30 | let pos_attr = gl::GetAttribLocation(mesh_cmp.shader.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stdout] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/opengl_renderer.rs:41:112 [INFO] [stdout] | [INFO] [stdout] 41 | let mvp_location = gl::GetUniformLocation(mesh_cmp.shader.handle(), CString::new("u_MVP").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rendering/mod.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | Err(_) => panic!(String::from("Cannot open file: ") + vertex_shader), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 32 | Err(_) => panic!("{}", String::from("Cannot open file: ") + vertex_shader), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 32 | Err(_) => std::panic::panic_any(String::from("Cannot open file: ") + vertex_shader), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rendering/mod.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | Err(_) => panic!(String::from("Cannot open file: ") + fragment_shader), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 40 | Err(_) => panic!("{}", String::from("Cannot open file: ") + fragment_shader), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 40 | Err(_) => std::panic::panic_any(String::from("Cannot open file: ") + fragment_shader), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:172:97 [INFO] [stdout] | [INFO] [stdout] 172 | gl::BindFragDataLocation(shader_program.handle(), 0, CString::new("out_color").unwrap().as_ptr()); [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:175:105 [INFO] [stdout] | [INFO] [stdout] 175 | let pos_attr = gl::GetAttribLocation(shader_program.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stdout] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:308:109 [INFO] [stdout] | [INFO] [stdout] 308 | let pos_attr = gl::GetAttribLocation(shader_program.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stdout] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:320:111 [INFO] [stdout] | [INFO] [stdout] 320 | let mvp_location = gl::GetUniformLocation(shader_program.handle(), CString::new("u_MVP").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `xPos` should have a snake case name [INFO] [stdout] --> src/game_content/systems.rs:183:42 [INFO] [stdout] | [INFO] [stdout] 183 | fn create_tank(&self, ecs: &mut Ecs, xPos: u32, yPos: u32) -> EntityId{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `x_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `yPos` should have a snake case name [INFO] [stdout] --> src/game_content/systems.rs:183:53 [INFO] [stdout] | [INFO] [stdout] 183 | fn create_tank(&self, ecs: &mut Ecs, xPos: u32, yPos: u32) -> EntityId{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `y_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_point` [INFO] [stdout] --> src/rendering/debug_draw.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn add_point(&mut self, pos: Vector3, color: Vector4){ [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: `add_red_point` [INFO] [stdout] --> src/rendering/debug_draw.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn add_red_point(&mut self, pos: Vector3){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `FillInstructions` [INFO] [stdout] --> src/rendering/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FillInstructions{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/system_manager.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn remove(&mut self, index: u32){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `key_up` [INFO] [stdout] --> src/input_system.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn key_up(&self, key: Key) -> bool{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `key_state` [INFO] [stdout] --> src/input_system.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn key_state(&self, key: Key) -> glfw::Action{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_vector` [INFO] [stdout] --> src/game_content/components.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn from_vector(v: Vector3) -> TilePosCmp{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OtherTeam` [INFO] [stdout] --> src/game_content/systems.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | MyTeam, OtherTeam, Done [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Done` [INFO] [stdout] --> src/game_content/systems.rs:121:24 [INFO] [stdout] | [INFO] [stdout] 121 | MyTeam, OtherTeam, Done [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TANK_VERTICES` [INFO] [stdout] --> src/game_content/systems.rs:124:1 [INFO] [stdout] | [INFO] [stdout] 124 | / static TANK_VERTICES: [Vector3; 36] = [ [INFO] [stdout] 125 | | Vector3{x: -1.0, y: -1.0, z: -1.0}, [INFO] [stdout] 126 | | Vector3{x: -1.0, y: -1.0, z: 1.0}, [INFO] [stdout] 127 | | Vector3{x: -1.0, y: 1.0, z: 1.0}, [INFO] [stdout] ... | [INFO] [stdout] 159 | | Vector3{x: -1.0, y: 1.0, z: 1.0}, [INFO] [stdout] 160 | | Vector3{x: 1.0, y: -1.0, z: 1.0}]; [INFO] [stdout] | |________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/debug_draw.rs:39:102 [INFO] [stdout] | [INFO] [stdout] 39 | let pos_loc = gl::GetAttribLocation(shader.handle(), CString::new("a_position").unwrap().as_ptr()) as u32; [INFO] [stdout] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/debug_draw.rs:40:101 [INFO] [stdout] | [INFO] [stdout] 40 | let color_loc = gl::GetAttribLocation(shader.handle(), CString::new("a_color").unwrap().as_ptr()) as u32; [INFO] [stdout] | -------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/debug_draw.rs:41:96 [INFO] [stdout] | [INFO] [stdout] 41 | let vp_loc = gl::GetUniformLocation(shader.handle(), CString::new("u_VP").unwrap().as_ptr()); [INFO] [stdout] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/opengl_renderer.rs:30:110 [INFO] [stdout] | [INFO] [stdout] 30 | let pos_attr = gl::GetAttribLocation(mesh_cmp.shader.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stdout] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/rendering/opengl_renderer.rs:41:112 [INFO] [stdout] | [INFO] [stdout] 41 | let mvp_location = gl::GetUniformLocation(mesh_cmp.shader.handle(), CString::new("u_MVP").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rendering/mod.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | Err(_) => panic!(String::from("Cannot open file: ") + vertex_shader), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 32 | Err(_) => panic!("{}", String::from("Cannot open file: ") + vertex_shader), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 32 | Err(_) => std::panic::panic_any(String::from("Cannot open file: ") + vertex_shader), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/rendering/mod.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | Err(_) => panic!(String::from("Cannot open file: ") + fragment_shader), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 40 | Err(_) => panic!("{}", String::from("Cannot open file: ") + fragment_shader), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 40 | Err(_) => std::panic::panic_any(String::from("Cannot open file: ") + fragment_shader), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:172:97 [INFO] [stdout] | [INFO] [stdout] 172 | gl::BindFragDataLocation(shader_program.handle(), 0, CString::new("out_color").unwrap().as_ptr()); [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:175:105 [INFO] [stdout] | [INFO] [stdout] 175 | let pos_attr = gl::GetAttribLocation(shader_program.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stdout] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:308:109 [INFO] [stdout] | [INFO] [stdout] 308 | let pos_attr = gl::GetAttribLocation(shader_program.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stdout] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/main.rs:320:111 [INFO] [stdout] | [INFO] [stdout] 320 | let mvp_location = gl::GetUniformLocation(shader_program.handle(), CString::new("u_MVP").unwrap().as_ptr()); [INFO] [stdout] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `xPos` should have a snake case name [INFO] [stdout] --> src/game_content/systems.rs:183:42 [INFO] [stdout] | [INFO] [stdout] 183 | fn create_tank(&self, ecs: &mut Ecs, xPos: u32, yPos: u32) -> EntityId{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `x_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `yPos` should have a snake case name [INFO] [stdout] --> src/game_content/systems.rs:183:53 [INFO] [stdout] | [INFO] [stdout] 183 | fn create_tank(&self, ecs: &mut Ecs, xPos: u32, yPos: u32) -> EntityId{ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `y_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.68s [INFO] running `Command { std: "docker" "inspect" "1e380fc29d509e8caf0a97da782453383d1cbfbe2f2cc9942935481360a7566d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e380fc29d509e8caf0a97da782453383d1cbfbe2f2cc9942935481360a7566d", kill_on_drop: false }` [INFO] [stdout] 1e380fc29d509e8caf0a97da782453383d1cbfbe2f2cc9942935481360a7566d