[INFO] cloning repository https://github.com/amieleg/quadworld [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/amieleg/quadworld" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famieleg%2Fquadworld", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famieleg%2Fquadworld'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3da0bd475b3df2e522d6d8938f75f74eeaf46cd [INFO] building amieleg/quadworld against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famieleg%2Fquadworld" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/amieleg/quadworld [INFO] finished tweaking git repo https://github.com/amieleg/quadworld [INFO] tweaked toml for git repo https://github.com/amieleg/quadworld written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/amieleg/quadworld on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/amieleg/quadworld already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded macroquad_macro v0.1.8 [INFO] [stderr] Downloaded quad-rand v0.2.2 [INFO] [stderr] Downloaded miniquad v0.4.6 [INFO] [stderr] Downloaded macroquad v0.4.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cee345c0b45476042516070720485bcf22324229826ad085b655175461112ae3 [INFO] running `Command { std: "docker" "start" "-a" "cee345c0b45476042516070720485bcf22324229826ad085b655175461112ae3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cee345c0b45476042516070720485bcf22324229826ad085b655175461112ae3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cee345c0b45476042516070720485bcf22324229826ad085b655175461112ae3", kill_on_drop: false }` [INFO] [stdout] cee345c0b45476042516070720485bcf22324229826ad085b655175461112ae3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "RUSTDOCFLAGS=--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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 318c4c66d64e8bbf080469be57248c76c89b553102913d77e40de93725257923 [INFO] running `Command { std: "docker" "start" "-a" "318c4c66d64e8bbf080469be57248c76c89b553102913d77e40de93725257923", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling miniquad v0.4.6 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling bytemuck v1.18.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling quad-rand v0.2.2 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling flate2 v1.0.33 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling fontdue v0.7.3 [INFO] [stderr] Compiling macroquad v0.4.13 [INFO] [stderr] Compiling quadworld v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::player::*` [INFO] [stdout] --> src/map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::player::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::miniquad::gl::GL_MAX_CUBE_MAP_TEXTURE_SIZE` [INFO] [stdout] --> src/renderer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::miniquad::gl::GL_MAX_CUBE_MAP_TEXTURE_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/renderer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/renderer.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 128 | for z in (-half_screen .. half_screen) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - for z in (-half_screen .. half_screen) [INFO] [stdout] 128 + for z in -half_screen .. half_screen [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/renderer.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | for x in (-half_screen .. half_screen) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - for x in (-half_screen .. half_screen) [INFO] [stdout] 130 + for x in -half_screen .. half_screen [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use util::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pl` [INFO] [stdout] --> src/renderer.rs:86:53 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn get_tile(&self, x: i32, z: i32, m: &Map, pl: &Player) -> (f32, i32) // tile, height [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `gen_fib`, `gen_stair`, `gen_block_in_air`, and `get` are never used [INFO] [stdout] --> src/map.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Map [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn gen_fib(&mut self) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn gen_stair(&mut self) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn gen_block_in_air(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get(&self, tpos: TPos) -> f32 [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_tpos` is never used [INFO] [stdout] --> src/util.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Pos [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn to_tpos(&self) -> TPos [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `campos` and `SQUARE_SIZE` are never read [INFO] [stdout] --> src/renderer.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct WorldRenderer { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 10 | pub campos: TPos, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub SQUARE_SIZE: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `highest_empty_above`, `first_full_below`, and `get_tile` are never used [INFO] [stdout] --> src/renderer.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl WorldRenderer [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn highest_empty_above(&self, tpos: TPos, m: &Map) -> TPos [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn first_full_below(&self, tpos: TPos, m: &Map) -> (TPos, i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_tile(&self, x: i32, z: i32, m: &Map, pl: &Player) -> (f32, i32) // tile, height [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SQUARE_SIZE` should have a snake case name [INFO] [stdout] --> src/renderer.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub SQUARE_SIZE: f32, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `square_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `RADIUS` should have a snake case name [INFO] [stdout] --> src/renderer.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub RADIUS: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `STEP_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub STEP_X: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `STEP_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub STEP_Z: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `step_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `BASE_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub BASE_X: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `base_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `BASE_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub BASE_Z: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `base_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `TRI_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub TRI_X: f32, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tri_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `TRI_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub TRI_Z: f32, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tri_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `COLOR_NUM` should have a snake case name [INFO] [stdout] --> src/renderer.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub COLOR_NUM: f32 [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `color_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SQUARE_SIZE` should have a snake case name [INFO] [stdout] --> src/renderer.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let SQUARE_SIZE: f32 = 2.0 * screen_width() / SCREEN_WIDTH as f32; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `square_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RADIUS` should have a snake case name [INFO] [stdout] --> src/renderer.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let RADIUS: f32 = SQUARE_SIZE / f32::sqrt(3.0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STEP_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let STEP_X: f32 = SQUARE_SIZE * 0.5; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STEP_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let STEP_Z: f32 = STEP_X / f32::sqrt(3.0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `step_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BASE_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let BASE_X = middle_x; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `base_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BASE_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let BASE_Z = middle_z - STEP_Z * SCREEN_WIDTH as f32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `base_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TRI_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let TRI_X = STEP_X / (2.0 * f32::sqrt(3.0)); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tri_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TRI_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let TRI_Z = RADIUS / (f32::sqrt(3.0)); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tri_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `COLOR_NUM` should have a snake case name [INFO] [stdout] --> src/renderer.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let COLOR_NUM = (SIZE_Y + 1) as f32; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `color_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.10s [INFO] running `Command { std: "docker" "inspect" "318c4c66d64e8bbf080469be57248c76c89b553102913d77e40de93725257923", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "318c4c66d64e8bbf080469be57248c76c89b553102913d77e40de93725257923", kill_on_drop: false }` [INFO] [stdout] 318c4c66d64e8bbf080469be57248c76c89b553102913d77e40de93725257923 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "RUSTDOCFLAGS=--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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] fbde983e65317f77c59f199b3e4bd3904d749e7e6ee577247c0eef6d18be9b47 [INFO] running `Command { std: "docker" "start" "-a" "fbde983e65317f77c59f199b3e4bd3904d749e7e6ee577247c0eef6d18be9b47", kill_on_drop: false }` [INFO] [stderr] Compiling quadworld v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::player::*` [INFO] [stdout] --> src/map.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::player::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::miniquad::gl::GL_MAX_CUBE_MAP_TEXTURE_SIZE` [INFO] [stdout] --> src/renderer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::miniquad::gl::GL_MAX_CUBE_MAP_TEXTURE_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num` [INFO] [stdout] --> src/renderer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/renderer.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 128 | for z in (-half_screen .. half_screen) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - for z in (-half_screen .. half_screen) [INFO] [stdout] 128 + for z in -half_screen .. half_screen [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/renderer.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | for x in (-half_screen .. half_screen) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - for x in (-half_screen .. half_screen) [INFO] [stdout] 130 + for x in -half_screen .. half_screen [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `util::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use util::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pl` [INFO] [stdout] --> src/renderer.rs:86:53 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn get_tile(&self, x: i32, z: i32, m: &Map, pl: &Player) -> (f32, i32) // tile, height [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `gen_fib`, `gen_stair`, `gen_block_in_air`, and `get` are never used [INFO] [stdout] --> src/map.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Map [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn gen_fib(&mut self) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn gen_stair(&mut self) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn gen_block_in_air(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get(&self, tpos: TPos) -> f32 [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_tpos` is never used [INFO] [stdout] --> src/util.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Pos [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn to_tpos(&self) -> TPos [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `campos` and `SQUARE_SIZE` are never read [INFO] [stdout] --> src/renderer.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct WorldRenderer { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 10 | pub campos: TPos, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub SQUARE_SIZE: f32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `highest_empty_above`, `first_full_below`, and `get_tile` are never used [INFO] [stdout] --> src/renderer.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl WorldRenderer [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn highest_empty_above(&self, tpos: TPos, m: &Map) -> TPos [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn first_full_below(&self, tpos: TPos, m: &Map) -> (TPos, i32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_tile(&self, x: i32, z: i32, m: &Map, pl: &Player) -> (f32, i32) // tile, height [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SQUARE_SIZE` should have a snake case name [INFO] [stdout] --> src/renderer.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub SQUARE_SIZE: f32, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `square_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `RADIUS` should have a snake case name [INFO] [stdout] --> src/renderer.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub RADIUS: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `STEP_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub STEP_X: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `STEP_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub STEP_Z: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `step_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `BASE_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub BASE_X: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `base_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `BASE_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub BASE_Z: f32, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `base_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `TRI_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub TRI_X: f32, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tri_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `TRI_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub TRI_Z: f32, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tri_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `COLOR_NUM` should have a snake case name [INFO] [stdout] --> src/renderer.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub COLOR_NUM: f32 [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `color_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SQUARE_SIZE` should have a snake case name [INFO] [stdout] --> src/renderer.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let SQUARE_SIZE: f32 = 2.0 * screen_width() / SCREEN_WIDTH as f32; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `square_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RADIUS` should have a snake case name [INFO] [stdout] --> src/renderer.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let RADIUS: f32 = SQUARE_SIZE / f32::sqrt(3.0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `radius` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STEP_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let STEP_X: f32 = SQUARE_SIZE * 0.5; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `step_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `STEP_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let STEP_Z: f32 = STEP_X / f32::sqrt(3.0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `step_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BASE_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let BASE_X = middle_x; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `base_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `BASE_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let BASE_Z = middle_z - STEP_Z * SCREEN_WIDTH as f32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `base_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TRI_X` should have a snake case name [INFO] [stdout] --> src/renderer.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let TRI_X = STEP_X / (2.0 * f32::sqrt(3.0)); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tri_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TRI_Z` should have a snake case name [INFO] [stdout] --> src/renderer.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let TRI_Z = RADIUS / (f32::sqrt(3.0)); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tri_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `COLOR_NUM` should have a snake case name [INFO] [stdout] --> src/renderer.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let COLOR_NUM = (SIZE_Y + 1) as f32; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `color_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "fbde983e65317f77c59f199b3e4bd3904d749e7e6ee577247c0eef6d18be9b47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbde983e65317f77c59f199b3e4bd3904d749e7e6ee577247c0eef6d18be9b47", kill_on_drop: false }` [INFO] [stdout] fbde983e65317f77c59f199b3e4bd3904d749e7e6ee577247c0eef6d18be9b47