[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] testing simonrenger/RustberryShips against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimonrenger%2FRustberryShips" "/workspace/builds/worker-58/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-58/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/simonrenger/RustberryShips on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-58/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" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 913d4f39250c7b6d2bcea342301e44dda82a6cc9b73345f003f9e63961be719b [INFO] running `Command { std: "docker" "start" "-a" "913d4f39250c7b6d2bcea342301e44dda82a6cc9b73345f003f9e63961be719b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "913d4f39250c7b6d2bcea342301e44dda82a6cc9b73345f003f9e63961be719b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "913d4f39250c7b6d2bcea342301e44dda82a6cc9b73345f003f9e63961be719b", kill_on_drop: false }` [INFO] [stdout] 913d4f39250c7b6d2bcea342301e44dda82a6cc9b73345f003f9e63961be719b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5cb2a48ee2316625b220cef9f1d6a6df8606e2915196a13b3014413a83ee0f5c [INFO] running `Command { std: "docker" "start" "-a" "5cb2a48ee2316625b220cef9f1d6a6df8606e2915196a13b3014413a83ee0f5c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling num-traits v0.2.2 [INFO] [stderr] Compiling libc v0.2.40 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling cc v1.0.10 [INFO] [stderr] Compiling bitflags v0.9.1 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling khronos_api v1.0.1 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling nom v1.2.4 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling recs v2.0.1 [INFO] [stderr] Compiling approx v0.1.1 [INFO] [stderr] Compiling tobj v0.1.6 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling xml-rs v0.6.1 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling rustberry_ecs v0.1.0 (/opt/rustwide/workdir/lib/rustberry-ecs) [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling cmake v0.1.30 [INFO] [stderr] Compiling semver v0.2.3 [INFO] [stderr] Compiling glfw-sys v3.2.2 [INFO] [stderr] Compiling num-integer v0.1.36 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling gl_generator v0.5.5 [INFO] [stderr] Compiling enum_primitive v0.1.1 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling num-bigint v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.35 [INFO] [stderr] Compiling rustberry_ecs_derive v0.1.0 (/opt/rustwide/workdir/lib/rustberry-ecs/rustberry-ecs-derive) [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] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling glfw v0.21.0 (https://github.com/bjz/glfw-rs.git#8676c2cc) [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: 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-aef8cb7e1f3d8783/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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [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] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 - systems: Vec>, [INFO] [stdout] 44 + systems: Vec>, [INFO] [stdout] | [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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - _resources: HashMap>, [INFO] [stdout] 23 + _resources: HashMap>, [INFO] [stdout] | [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] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 - pub fn add(&mut self, system: Box){ [INFO] [stdout] 98 + pub fn add(&mut self, system: Box){ [INFO] [stdout] | [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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 - fn as_any(&self) -> &Any; [INFO] [stdout] 12 + fn as_any(&self) -> &dyn Any; [INFO] [stdout] | [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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fn as_any(&self) -> &Any{ [INFO] [stdout] 16 + fn as_any(&self) -> &dyn Any{ [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: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: `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-aef8cb7e1f3d8783/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: 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] = note: `#[warn(dead_code)]` on by default [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: field is never read: `pos` [INFO] [stdout] --> src/rendering/debug_draw.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | pos: Vector3, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PointLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rendering/debug_draw.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `color` [INFO] [stdout] --> src/rendering/debug_draw.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | color: Vector4, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PointLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rendering/debug_draw.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [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: 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_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [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] [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 usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [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] [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: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 35.73s [INFO] running `Command { std: "docker" "inspect" "5cb2a48ee2316625b220cef9f1d6a6df8606e2915196a13b3014413a83ee0f5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cb2a48ee2316625b220cef9f1d6a6df8606e2915196a13b3014413a83ee0f5c", kill_on_drop: false }` [INFO] [stdout] 5cb2a48ee2316625b220cef9f1d6a6df8606e2915196a13b3014413a83ee0f5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca808840d84d4df53ba954f350c18b0f3457ff3a496262b29629a3efa03d4d7f [INFO] running `Command { std: "docker" "start" "-a" "ca808840d84d4df53ba954f350c18b0f3457ff3a496262b29629a3efa03d4d7f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] [stderr] Compiling rustberry_ships v0.1.0 (/opt/rustwide/workdir) [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] [stdout] warning: 4 warnings emitted [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: 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-aef8cb7e1f3d8783/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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stdout] | [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] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 - systems: Vec>, [INFO] [stdout] 44 + systems: Vec>, [INFO] [stdout] | [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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - _resources: HashMap>, [INFO] [stdout] 23 + _resources: HashMap>, [INFO] [stdout] | [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] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 - pub fn add(&mut self, system: Box){ [INFO] [stdout] 98 + pub fn add(&mut self, system: Box){ [INFO] [stdout] | [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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 - fn as_any(&self) -> &Any; [INFO] [stdout] 12 + fn as_any(&self) -> &dyn Any; [INFO] [stdout] | [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] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fn as_any(&self) -> &Any{ [INFO] [stdout] 16 + fn as_any(&self) -> &dyn Any{ [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: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: `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-aef8cb7e1f3d8783/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: 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] = note: `#[warn(dead_code)]` on by default [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: field is never read: `pos` [INFO] [stdout] --> src/rendering/debug_draw.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | pos: Vector3, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PointLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rendering/debug_draw.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `color` [INFO] [stdout] --> src/rendering/debug_draw.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | color: Vector4, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PointLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rendering/debug_draw.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [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: 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_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [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] [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 usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [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] [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: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 21.32s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/rustberry_ships-568e163c043cea41) [INFO] running `Command { std: "docker" "inspect" "ca808840d84d4df53ba954f350c18b0f3457ff3a496262b29629a3efa03d4d7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca808840d84d4df53ba954f350c18b0f3457ff3a496262b29629a3efa03d4d7f", kill_on_drop: false }` [INFO] [stdout] ca808840d84d4df53ba954f350c18b0f3457ff3a496262b29629a3efa03d4d7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 045addb7d056e9367599c0a9519a00032ff0814f4933d918e35d6cc50742e4df [INFO] running `Command { std: "docker" "start" "-a" "045addb7d056e9367599c0a9519a00032ff0814f4933d918e35d6cc50742e4df", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> build.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::path::PathBuf; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::process::Command` [INFO] [stderr] --> build.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::process::Command; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::str` [INFO] [stderr] --> build.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::str; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Read` [INFO] [stderr] --> build.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::io::Read; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rustberry_ships` (build script) generated 4 warnings [INFO] [stderr] warning: unused import: `TypeId` [INFO] [stderr] --> src/resource_manager.rs:9:21 [INFO] [stderr] | [INFO] [stderr] 9 | use std::any::{Any, TypeId}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `resource_manager::Resource` [INFO] [stderr] --> src/engine_resources.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use resource_manager::Resource; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `TilePosCmp` [INFO] [stderr] --> src/main.rs:50:44 [INFO] [stderr] | [INFO] [stderr] 50 | use game_content::components::{TilemapCmp, TilePosCmp, BoardManagerCmp}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> /opt/rustwide/target/debug/build/rustberry_ships-aef8cb7e1f3d8783/out/bindings.rs:9:40 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 9 - fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] 9 + fn metaloadfn(mut loadfn: &mut dyn FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/system_manager.rs:44:22 [INFO] [stderr] | [INFO] [stderr] 44 | systems: Vec>, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 44 - systems: Vec>, [INFO] [stderr] 44 + systems: Vec>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/resource_manager.rs:23:37 [INFO] [stderr] | [INFO] [stderr] 23 | _resources: HashMap>, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 23 - _resources: HashMap>, [INFO] [stderr] 23 + _resources: HashMap>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/system_manager.rs:98:39 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn add(&mut self, system: Box){ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 98 - pub fn add(&mut self, system: Box){ [INFO] [stderr] 98 + pub fn add(&mut self, system: Box){ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/resource_manager.rs:12:26 [INFO] [stderr] | [INFO] [stderr] 12 | fn as_any(&self) -> &Any; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 12 - fn as_any(&self) -> &Any; [INFO] [stderr] 12 + fn as_any(&self) -> &dyn Any; [INFO] [stderr] | [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/resource_manager.rs:16:26 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 16 | fn as_any(&self) -> &Any{ [INFO] [stdout] [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 16 - fn as_any(&self) -> &Any{ [INFO] [stderr] 16 + fn as_any(&self) -> &dyn Any{ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ecs` [INFO] [stderr] --> src/system_manager.rs:60:28 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn init(&mut self, ecs: &mut Ecs){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ecs` [INFO] [stderr] --> src/system_manager.rs:88:36 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn handle_event(&mut self, ecs: &mut Ecs, event: &glfw::WindowEvent){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/system_manager.rs:104:30 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn remove(&mut self, index: u32){ [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `materials` [INFO] [stderr] --> src/model_loader.rs:17:18 [INFO] [stderr] | [INFO] [stderr] 17 | let (models, materials) = tobj_var.unwrap(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_materials` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/model_loader.rs:21:10 [INFO] [stderr] | [INFO] [stderr] 21 | for (i, m) in models.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/model_loader.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | for v in 0..mesh.positions.len() / 3 { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ecs` [INFO] [stderr] --> src/engine_content.rs:113:24 [INFO] [stderr] | [INFO] [stderr] 113 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ecs` [INFO] [stderr] --> src/game_content/systems.rs:17:24 [INFO] [stderr] | [INFO] [stderr] 17 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ecs` [INFO] [stderr] --> src/game_content/systems.rs:194:24 [INFO] [stderr] | [INFO] [stderr] 194 | fn init(&mut self, ecs: &mut Ecs){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ecs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board_manager` [INFO] [stderr] --> src/game_content/systems.rs:256:17 [INFO] [stderr] | [INFO] [stderr] 256 | let board_manager = BoardManagerCmp::retrieve_mut(ecs).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_manager` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:122:9 [INFO] [stderr] | [INFO] [stderr] 122 | let mut debug_renderer = DebugDraw::new(); [INFO] [stderr] | ----^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:123:9 [INFO] [stderr] | [INFO] [stderr] 123 | let mut resource_manager = RefCell::new(ResourceManager::new()); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> /opt/rustwide/target/debug/build/rustberry_ships-aef8cb7e1f3d8783/out/bindings.rs:9:23 [INFO] [stderr] | [INFO] [stderr] 9 | fn metaloadfn(mut loadfn: &mut FnMut(&str) -> *const __gl_imports::raw::c_void, [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `FillInstructions` [INFO] [stderr] --> src/rendering/mod.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct FillInstructions{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `remove` [INFO] [stderr] --> src/system_manager.rs:104:12 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn remove(&mut self, index: u32){ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `key_up` [INFO] [stderr] --> src/input_system.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn key_up(&self, key: Key) -> bool{ [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `key_state` [INFO] [stderr] --> src/input_system.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn key_state(&self, key: Key) -> glfw::Action{ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pos` [INFO] [stderr] --> src/rendering/debug_draw.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | pos: Vector3, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PointLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/rendering/debug_draw.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `color` [INFO] [stderr] --> src/rendering/debug_draw.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | color: Vector4, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PointLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/rendering/debug_draw.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_point` [INFO] [stderr] --> src/rendering/debug_draw.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn add_point(&mut self, pos: Vector3, color: Vector4){ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_red_point` [INFO] [stderr] --> src/rendering/debug_draw.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn add_red_point(&mut self, pos: Vector3){ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_vector` [INFO] [stderr] --> src/game_content/components.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn from_vector(v: Vector3) -> TilePosCmp{ [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `OtherTeam` [INFO] [stderr] --> src/game_content/systems.rs:121:13 [INFO] [stderr] | [INFO] [stderr] 121 | MyTeam, OtherTeam, Done [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Done` [INFO] [stderr] --> src/game_content/systems.rs:121:24 [INFO] [stderr] | [INFO] [stderr] 121 | MyTeam, OtherTeam, Done [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: static is never used: `TANK_VERTICES` [INFO] [stderr] --> src/game_content/systems.rs:124:1 [INFO] [stderr] | [INFO] [stderr] 124 | / static TANK_VERTICES: [Vector3; 36] = [ [INFO] [stderr] 125 | | Vector3{x: -1.0, y: -1.0, z: -1.0}, [INFO] [stderr] 126 | | Vector3{x: -1.0, y: -1.0, z: 1.0}, [INFO] [stderr] 127 | | Vector3{x: -1.0, y: 1.0, z: 1.0}, [INFO] [stderr] ... | [INFO] [stderr] 159 | | Vector3{x: -1.0, y: 1.0, z: 1.0}, [INFO] [stderr] 160 | | Vector3{x: 1.0, y: -1.0, z: 1.0}]; [INFO] [stderr] | |________________________________________^ [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/rendering/debug_draw.rs:39:102 [INFO] [stderr] | [INFO] [stderr] 39 | let pos_loc = gl::GetAttribLocation(shader.handle(), CString::new("a_position").unwrap().as_ptr()) as u32; [INFO] [stderr] | ----------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/rendering/debug_draw.rs:40:101 [INFO] [stderr] | [INFO] [stderr] 40 | let color_loc = gl::GetAttribLocation(shader.handle(), CString::new("a_color").unwrap().as_ptr()) as u32; [INFO] [stderr] | -------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/rendering/debug_draw.rs:41:96 [INFO] [stderr] | [INFO] [stderr] 41 | let vp_loc = gl::GetUniformLocation(shader.handle(), CString::new("u_VP").unwrap().as_ptr()); [INFO] [stderr] | ----------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/rendering/opengl_renderer.rs:30:110 [INFO] [stderr] | [INFO] [stderr] 30 | let pos_attr = gl::GetAttribLocation(mesh_cmp.shader.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stderr] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/rendering/opengl_renderer.rs:41:112 [INFO] [stderr] | [INFO] [stderr] 41 | let mvp_location = gl::GetUniformLocation(mesh_cmp.shader.handle(), CString::new("u_MVP").unwrap().as_ptr()); [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/rendering/mod.rs:32:30 [INFO] [stderr] | [INFO] [stderr] 32 | Err(_) => panic!(String::from("Cannot open file: ") + vertex_shader), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 32 | Err(_) => panic!("{}", String::from("Cannot open file: ") + vertex_shader), [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/rendering/mod.rs:40:30 [INFO] [stderr] | [INFO] [stderr] 40 | Err(_) => panic!(String::from("Cannot open file: ") + fragment_shader), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 40 | Err(_) => panic!("{}", String::from("Cannot open file: ") + fragment_shader), [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:172:97 [INFO] [stderr] | [INFO] [stderr] 172 | gl::BindFragDataLocation(shader_program.handle(), 0, CString::new("out_color").unwrap().as_ptr()); [INFO] [stderr] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:175:105 [INFO] [stderr] | [INFO] [stderr] 175 | let pos_attr = gl::GetAttribLocation(shader_program.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stderr] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:308:109 [INFO] [stderr] | [INFO] [stderr] 308 | let pos_attr = gl::GetAttribLocation(shader_program.handle(), CString::new("position").unwrap().as_ptr()); [INFO] [stderr] | --------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/main.rs:320:111 [INFO] [stderr] | [INFO] [stderr] 320 | let mvp_location = gl::GetUniformLocation(shader_program.handle(), CString::new("u_MVP").unwrap().as_ptr()); [INFO] [stderr] | ------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: variable `xPos` should have a snake case name [INFO] [stderr] --> src/game_content/systems.rs:183:42 [INFO] [stderr] | [INFO] [stderr] 183 | fn create_tank(&self, ecs: &mut Ecs, xPos: u32, yPos: u32) -> EntityId{ [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `x_pos` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `yPos` should have a snake case name [INFO] [stderr] --> src/game_content/systems.rs:183:53 [INFO] [stderr] | [INFO] [stderr] 183 | fn create_tank(&self, ecs: &mut Ecs, xPos: u32, yPos: u32) -> EntityId{ [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `y_pos` [INFO] [stderr] [INFO] [stderr] warning: `rustberry_ships` (bin "rustberry_ships" test) generated 47 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.84s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rustberry_ships-568e163c043cea41) [INFO] running `Command { std: "docker" "inspect" "045addb7d056e9367599c0a9519a00032ff0814f4933d918e35d6cc50742e4df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "045addb7d056e9367599c0a9519a00032ff0814f4933d918e35d6cc50742e4df", kill_on_drop: false }` [INFO] [stdout] 045addb7d056e9367599c0a9519a00032ff0814f4933d918e35d6cc50742e4df