[INFO] cloning repository https://github.com/eikrt/buck [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eikrt/buck" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feikrt%2Fbuck", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feikrt%2Fbuck'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92b859e054768081b19c75238396e818f80a3948 [INFO] checking eikrt/buck against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feikrt%2Fbuck" "/workspace/builds/worker-52/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-52/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eikrt/buck on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eikrt/buck [INFO] finished tweaking git repo https://github.com/eikrt/buck [INFO] tweaked toml for git repo https://github.com/eikrt/buck written to /workspace/builds/worker-52/source/Cargo.toml [INFO] crate git repo https://github.com/eikrt/buck already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8cd4969d77fe0a9657d1401bae008ee71c8aea933a664e524f4987bbdbd13120 [INFO] running `Command { std: "docker" "start" "-a" "8cd4969d77fe0a9657d1401bae008ee71c8aea933a664e524f4987bbdbd13120", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8cd4969d77fe0a9657d1401bae008ee71c8aea933a664e524f4987bbdbd13120", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cd4969d77fe0a9657d1401bae008ee71c8aea933a664e524f4987bbdbd13120", kill_on_drop: false }` [INFO] [stdout] 8cd4969d77fe0a9657d1401bae008ee71c8aea933a664e524f4987bbdbd13120 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63ed73da7807773d1242d1d05a8fe804e5fd3c1b5cc351f3ce1bbbca4782dec9 [INFO] running `Command { std: "docker" "start" "-a" "63ed73da7807773d1242d1d05a8fe804e5fd3c1b5cc351f3ce1bbbca4782dec9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling getrandom v0.2.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling sdl2 v0.34.3 [INFO] [stderr] Compiling sdl2-sys v0.34.3 [INFO] [stderr] Checking rand_core v0.6.1 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.1 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking descend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `toml::Value` [INFO] [stdout] --> src/mapgenerator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use toml::Value; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/mapgenerator.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `toml::Value` [INFO] [stdout] --> src/mapgenerator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use toml::Value; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/mapgenerator.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m_x` [INFO] [stdout] --> src/main.rs:26:38 [INFO] [stdout] | [INFO] [stdout] 26 | fn render(canvas: &mut WindowCanvas, m_x: f32, m_y: f32, attack_box: &mut world::AttackBox, player: &mut world::Entity, map: &mut world::... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_m_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m_y` [INFO] [stdout] --> src/main.rs:26:48 [INFO] [stdout] | [INFO] [stdout] 26 | fn render(canvas: &mut WindowCanvas, m_x: f32, m_y: f32, attack_box: &mut world::AttackBox, player: &mut world::Entity, map: &mut world::... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_m_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shoot_time` [INFO] [stdout] --> src/main.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut shoot_time = 200.0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shoot_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shoot_change` [INFO] [stdout] --> src/main.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut shoot_change = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shoot_change` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:246:11 [INFO] [stdout] | [INFO] [stdout] 246 | let mut state = event_pump.mouse_state(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/main.rs:303:10 [INFO] [stdout] | [INFO] [stdout] 303 | let input = std::io::stdin().read_line(&mut line).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:323:15 [INFO] [stdout] | [INFO] [stdout] 323 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/ui.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | for h in 0..player.hp { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/ui.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn draw_ui(state: &str, player: &crate::world::Entity) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/ui.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let input = std::io::stdin().read_line(&mut line).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:92:7 [INFO] [stdout] | [INFO] [stdout] 92 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:115:7 [INFO] [stdout] | [INFO] [stdout] 115 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:160:7 [INFO] [stdout] | [INFO] [stdout] 160 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m_x` [INFO] [stdout] --> src/main.rs:26:38 [INFO] [stdout] | [INFO] [stdout] 26 | fn render(canvas: &mut WindowCanvas, m_x: f32, m_y: f32, attack_box: &mut world::AttackBox, player: &mut world::Entity, map: &mut world::... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_m_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m_y` [INFO] [stdout] --> src/main.rs:26:48 [INFO] [stdout] | [INFO] [stdout] 26 | fn render(canvas: &mut WindowCanvas, m_x: f32, m_y: f32, attack_box: &mut world::AttackBox, player: &mut world::Entity, map: &mut world::... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_m_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shoot_time` [INFO] [stdout] --> src/main.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut shoot_time = 200.0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shoot_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shoot_change` [INFO] [stdout] --> src/main.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut shoot_change = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shoot_change` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:246:11 [INFO] [stdout] | [INFO] [stdout] 246 | let mut state = event_pump.mouse_state(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/main.rs:303:10 [INFO] [stdout] | [INFO] [stdout] 303 | let input = std::io::stdin().read_line(&mut line).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/main.rs:323:15 [INFO] [stdout] | [INFO] [stdout] 323 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/ui.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | for h in 0..player.hp { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/ui.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn draw_ui(state: &str, player: &crate::world::Entity) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/ui.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let input = std::io::stdin().read_line(&mut line).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:92:7 [INFO] [stdout] | [INFO] [stdout] 92 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:115:7 [INFO] [stdout] | [INFO] [stdout] 115 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input2` [INFO] [stdout] --> src/ui.rs:160:7 [INFO] [stdout] | [INFO] [stdout] 160 | let input2 = std::io::stdin().read_line(&mut line2).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_input2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let mut shoot_time = 200.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/main.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let mut shoot_change = 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/main.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut attack_time = 200.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/main.rs:230:7 [INFO] [stdout] | [INFO] [stdout] 230 | let mut state = event_pump.mouse_state(); [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/main.rs:246:7 [INFO] [stdout] | [INFO] [stdout] 246 | let mut state = event_pump.mouse_state(); [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/main.rs:323:11 [INFO] [stdout] | [INFO] [stdout] 323 | let mut rng = rand::thread_rng(); [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/mapgenerator.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let mut entities = Vec::with_capacity(1); [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/mapgenerator.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | let mut entities = Vec::with_capacity(1); [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/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let mut shoot_time = 200.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/main.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let mut shoot_change = 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/main.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut attack_time = 200.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/main.rs:230:7 [INFO] [stdout] | [INFO] [stdout] 230 | let mut state = event_pump.mouse_state(); [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/main.rs:246:7 [INFO] [stdout] | [INFO] [stdout] 246 | let mut state = event_pump.mouse_state(); [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/main.rs:323:11 [INFO] [stdout] | [INFO] [stdout] 323 | let mut rng = rand::thread_rng(); [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/mapgenerator.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | let mut map_content = [ [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/mapgenerator.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | let mut map_content = [ [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/mapgenerator.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | let mut level = crate::world::Level { [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/mapgenerator.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let mut entities = Vec::with_capacity(1); [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/mapgenerator.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | let mut entities = Vec::with_capacity(1); [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/mapgenerator.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | let mut map_content = [ [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/mapgenerator.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | let mut map_content = [ [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/mapgenerator.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | let mut level = crate::world::Level { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_station_map` [INFO] [stdout] --> src/mapgenerator.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_station_map() -> crate::world::Level { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_station_map` [INFO] [stdout] --> src/mapgenerator.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn get_station_map() -> crate::world::Level { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 43 | ... canvas.fill_rect(Rect::new(x as i32 * TILE_SIZE as i32 - camera.x as i32, y as i32 * TILE_SIZE as i32 - camera.y as i32, TILE_SIZE as u32, TILE_SIZE as u32)); [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:48:3 [INFO] [stdout] | [INFO] [stdout] 48 | ... canvas.fill_rect(Rect::new(x as i32 * TILE_SIZE as i32 - camera.x as i32, y as i32 * TILE_SIZE as i32 - camera.y as i32, TILE_SIZE as u32, TILE_SIZE as u32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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:54:3 [INFO] [stdout] | [INFO] [stdout] 54 | ... canvas.fill_rect(Rect::new(x as i32 * TILE_SIZE as i32 - camera.x as i32, y as i32 * TILE_SIZE as i32 - camera.y as i32, TILE_SIZE as u32, TILE_SIZE as u32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | canvas.fill_rect(Rect::new(player.x as i32 - camera.x as i32, player.y as i32 - camera.y as i32, 16,16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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:65:2 [INFO] [stdout] | [INFO] [stdout] 65 | canvas.fill_rect(Rect::new((player.x - camera.x - attack_box.x) as i32, (player.y - camera.y - attack_box.y) as i32, 16,16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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:71:6 [INFO] [stdout] | [INFO] [stdout] 71 | canvas.fill_rect(Rect::new(entity.x as i32 - camera.x as i32, entity.y as i32 - camera.y as i32, 16,16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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:414:1 [INFO] [stdout] | [INFO] [stdout] 414 | main_loop(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [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:43:3 [INFO] [stdout] | [INFO] [stdout] 43 | ... canvas.fill_rect(Rect::new(x as i32 * TILE_SIZE as i32 - camera.x as i32, y as i32 * TILE_SIZE as i32 - camera.y as i32, TILE_SIZE as u32, TILE_SIZE as u32)); [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:48:3 [INFO] [stdout] | [INFO] [stdout] 48 | ... canvas.fill_rect(Rect::new(x as i32 * TILE_SIZE as i32 - camera.x as i32, y as i32 * TILE_SIZE as i32 - camera.y as i32, TILE_SIZE as u32, TILE_SIZE as u32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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:54:3 [INFO] [stdout] | [INFO] [stdout] 54 | ... canvas.fill_rect(Rect::new(x as i32 * TILE_SIZE as i32 - camera.x as i32, y as i32 * TILE_SIZE as i32 - camera.y as i32, TILE_SIZE as u32, TILE_SIZE as u32)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `empty_texts` should have an upper case name [INFO] [stdout] --> src/ui.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const empty_texts: &[&str] = &["You hear stones crumbling...", "The earth moves...", "You listen to beetles..."]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `EMPTY_TEXTS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | canvas.fill_rect(Rect::new(player.x as i32 - camera.x as i32, player.y as i32 - camera.y as i32, 16,16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `scenarios` should have an upper case name [INFO] [stdout] --> src/ui.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const scenarios: &[&str] = &["wounded_man", "empty_cavern", "drill_wreck", "ancient_ruins", "ancient_remains"]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `SCENARIOS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:65:2 [INFO] [stdout] | [INFO] [stdout] 65 | canvas.fill_rect(Rect::new((player.x - camera.x - attack_box.x) as i32, (player.y - camera.y - attack_box.y) as i32, 16,16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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:71:6 [INFO] [stdout] | [INFO] [stdout] 71 | canvas.fill_rect(Rect::new(entity.x as i32 - camera.x as i32, entity.y as i32 - camera.y as i32, 16,16)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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:414:1 [INFO] [stdout] | [INFO] [stdout] 414 | main_loop(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `empty_texts` should have an upper case name [INFO] [stdout] --> src/ui.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const empty_texts: &[&str] = &["You hear stones crumbling...", "The earth moves...", "You listen to beetles..."]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `EMPTY_TEXTS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `scenarios` should have an upper case name [INFO] [stdout] --> src/ui.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const scenarios: &[&str] = &["wounded_man", "empty_cavern", "drill_wreck", "ancient_ruins", "ancient_remains"]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `SCENARIOS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.41s [INFO] running `Command { std: "docker" "inspect" "63ed73da7807773d1242d1d05a8fe804e5fd3c1b5cc351f3ce1bbbca4782dec9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63ed73da7807773d1242d1d05a8fe804e5fd3c1b5cc351f3ce1bbbca4782dec9", kill_on_drop: false }` [INFO] [stdout] 63ed73da7807773d1242d1d05a8fe804e5fd3c1b5cc351f3ce1bbbca4782dec9