[INFO] cloning repository https://github.com/superosku/oskuRTS [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/superosku/oskuRTS" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperosku%2FoskuRTS", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperosku%2FoskuRTS'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 01849e8e88ae5110907ad141820d31c79cabf6b1 [INFO] checking superosku/oskuRTS against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperosku%2FoskuRTS" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/superosku/oskuRTS 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/superosku/oskuRTS [INFO] finished tweaking git repo https://github.com/superosku/oskuRTS [INFO] tweaked toml for git repo https://github.com/superosku/oskuRTS written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/superosku/oskuRTS 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] cefc44a8f9a839fde78dafa1e328694ecc66e6ff913cc67341afde1bbd10176d [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" "cefc44a8f9a839fde78dafa1e328694ecc66e6ff913cc67341afde1bbd10176d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cefc44a8f9a839fde78dafa1e328694ecc66e6ff913cc67341afde1bbd10176d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cefc44a8f9a839fde78dafa1e328694ecc66e6ff913cc67341afde1bbd10176d", kill_on_drop: false }` [INFO] [stdout] cefc44a8f9a839fde78dafa1e328694ecc66e6ff913cc67341afde1bbd10176d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] 7f8711e4b85011a3701d9da11a1581054cd7f31cbc1795b48627c21cf38f22e5 [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" "7f8711e4b85011a3701d9da11a1581054cd7f31cbc1795b48627c21cf38f22e5", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking c_vec v1.3.2 [INFO] [stderr] Checking multi_mut v0.1.3 [INFO] [stderr] Checking rand_jitter v0.1.2 [INFO] [stderr] Checking rand_os v0.1.2 [INFO] [stderr] Compiling sdl2-sys v0.32.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Checking num-integer v0.1.39 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking sdl2 v0.32.1 [INFO] [stderr] Checking rust-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem::transmute` [INFO] [stdout] --> src/map.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::map` [INFO] [stdout] --> src/projectile.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::map; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::transmute` [INFO] [stdout] --> src/map.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::map` [INFO] [stdout] --> src/projectile.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::map; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMapMultiMut` [INFO] [stdout] --> src/entity_holder.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use multi_mut::{HashMapMultiMut, BTreeMapMultiMut}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:253:29 [INFO] [stdout] | [INFO] [stdout] 253 | ... _ => Err("Invalid GroundType for drawing".to_string()) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | let (point_y, binary_data) = binary_helpers::pop_f32(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | let (point_y, binary_data) = binary_helpers::pop_f32(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resource_type` [INFO] [stdout] --> src/entity.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | let (resource_type, binary_data) = binary_helpers::pop_u8(binary_data); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity.rs:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | let (resource_type, binary_data) = binary_helpers::pop_u8(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity.rs:179:32 [INFO] [stdout] | [INFO] [stdout] 179 | let (task_binary_data, binary_data) = binary_helpers::pop_padded(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point_x` [INFO] [stdout] --> src/entity.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | let mut point_x: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point_y` [INFO] [stdout] --> src/entity.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let mut point_y: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/entity.rs:542:53 [INFO] [stdout] | [INFO] [stdout] 542 | pub fn interact_with(&mut self, other: &Entity, map: &map::Map) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity_holder.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | let (mut buildings_data, binary_data) = binary_helpers::pop_padded(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_id` [INFO] [stdout] --> src/entity_holder.rs:185:82 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn add_new_building(&mut self, map: &mut map::Map, location: (i32, i32), team_id: u32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick` [INFO] [stdout] --> src/entity_holder.rs:253:73 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn entities_interact_with_each_other(&mut self, map: &map::Map, tick: u32) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/projectile.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | let (angle, binary_data) = binary_helpers::pop_f32(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/building.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let (y, binary_data) = binary_helpers::pop_i32(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit_type` [INFO] [stdout] --> src/game_state.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 115 | GameEvent::InsertUnit { location, team_id, unit_type } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `unit_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/binary_helpers.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut binary_data: Vec = vec![0; 4]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMapMultiMut` [INFO] [stdout] --> src/entity_holder.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use multi_mut::{HashMapMultiMut, BTreeMapMultiMut}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:253:29 [INFO] [stdout] | [INFO] [stdout] 253 | ... _ => Err("Invalid GroundType for drawing".to_string()) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity.rs:61:31 [INFO] [stdout] | [INFO] [stdout] 61 | let (point_y, binary_data) = binary_helpers::pop_f32(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | let (point_y, binary_data) = binary_helpers::pop_f32(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resource_type` [INFO] [stdout] --> src/entity.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | let (resource_type, binary_data) = binary_helpers::pop_u8(binary_data); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity.rs:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | let (resource_type, binary_data) = binary_helpers::pop_u8(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity.rs:179:32 [INFO] [stdout] | [INFO] [stdout] 179 | let (task_binary_data, binary_data) = binary_helpers::pop_padded(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point_x` [INFO] [stdout] --> src/entity.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | let mut point_x: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point_y` [INFO] [stdout] --> src/entity.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let mut point_y: f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/entity.rs:542:53 [INFO] [stdout] | [INFO] [stdout] 542 | pub fn interact_with(&mut self, other: &Entity, map: &map::Map) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/entity_holder.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | let (mut buildings_data, binary_data) = binary_helpers::pop_padded(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_id` [INFO] [stdout] --> src/entity_holder.rs:185:82 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn add_new_building(&mut self, map: &mut map::Map, location: (i32, i32), team_id: u32) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tick` [INFO] [stdout] --> src/entity_holder.rs:253:73 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn entities_interact_with_each_other(&mut self, map: &map::Map, tick: u32) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/projectile.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | let (angle, binary_data) = binary_helpers::pop_f32(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/building.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let (y, binary_data) = binary_helpers::pop_i32(binary_data); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit_type` [INFO] [stdout] --> src/game_state.rs:115:60 [INFO] [stdout] | [INFO] [stdout] 115 | GameEvent::InsertUnit { location, team_id, unit_type } => { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `unit_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary_data` [INFO] [stdout] --> src/binary_helpers.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut binary_data: Vec = vec![0; 4]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | let mut point_x: f32 = 0.0; [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/entity.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let mut point_y: f32 = 0.0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | let mut point_x: f32 = 0.0; [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/entity.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | let mut point_y: f32 = 0.0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity_holder.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let mut entity = Entity::from_binary(unit_data); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity_holder.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let mut entity = Entity::from_binary(unit_data); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity_holder.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut new_entity = Entity::new(x, y, self.id_counter, team_id, entity_type); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity_holder.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let mut new_entity = Entity::new(x, y, self.id_counter, team_id, entity_type); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity_holder.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | let mut entity = self.entities.get_mut(entity_id).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/entity_holder.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | let mut entity = self.entities.get_mut(entity_id).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binary_helpers.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut binary_data: Vec = vec![0; 4]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/point.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add(&mut self, other: &Vector) { [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: `as_f` [INFO] [stdout] --> src/point.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn as_f(&self) -> (f32, f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Gold` [INFO] [stdout] --> src/entity.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Gold, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_ranged` [INFO] [stdout] --> src/entity.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn is_ranged(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `seeing_distance` [INFO] [stdout] --> src/entity.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn seeing_distance(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_reach` [INFO] [stdout] --> src/entity.rs:495:12 [INFO] [stdout] | [INFO] [stdout] 495 | pub fn can_reach(&self, distance: f32, point: &point::Point, map: &map::Map) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tick` [INFO] [stdout] --> src/game_state.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn tick(&self) -> u32 { self.tick } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/binary_helpers.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let mut binary_data: Vec = vec![0; 4]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/point.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn add(&mut self, other: &Vector) { [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: `as_f` [INFO] [stdout] --> src/point.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn as_f(&self) -> (f32, f32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Gold` [INFO] [stdout] --> src/entity.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Gold, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_ranged` [INFO] [stdout] --> src/entity.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn is_ranged(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `seeing_distance` [INFO] [stdout] --> src/entity.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn seeing_distance(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_reach` [INFO] [stdout] --> src/entity.rs:495:12 [INFO] [stdout] | [INFO] [stdout] 495 | pub fn can_reach(&self, distance: f32, point: &point::Point, map: &map::Map) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tick` [INFO] [stdout] --> src/game_state.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn tick(&self) -> u32 { self.tick } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:398:17 [INFO] [stdout] | [INFO] [stdout] 398 | / canvas.copy( [INFO] [stdout] 399 | | &texture_holder.building_1_texture, [INFO] [stdout] 400 | | None, [INFO] [stdout] 401 | | rect [INFO] [stdout] 402 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:398:17 [INFO] [stdout] | [INFO] [stdout] 398 | / canvas.copy( [INFO] [stdout] 399 | | &texture_holder.building_1_texture, [INFO] [stdout] 400 | | None, [INFO] [stdout] 401 | | rect [INFO] [stdout] 402 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.50s [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7f8711e4b85011a3701d9da11a1581054cd7f31cbc1795b48627c21cf38f22e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f8711e4b85011a3701d9da11a1581054cd7f31cbc1795b48627c21cf38f22e5", kill_on_drop: false }` [INFO] [stdout] 7f8711e4b85011a3701d9da11a1581054cd7f31cbc1795b48627c21cf38f22e5