[INFO] cloning repository https://github.com/555-Roman/terra [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/555-Roman/terra" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F555-Roman%2Fterra", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F555-Roman%2Fterra'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d7cc3ccbcc159e8d0a1b0fa6f3e43013e56501e8 [INFO] checking 555-Roman/terra against master#2aabf3ce0569dd7c8c2d2a27944850056dcf2566 for pr-156508 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F555-Roman%2Fterra" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/555-Roman/terra [INFO] finished tweaking git repo https://github.com/555-Roman/terra [INFO] tweaked toml for git repo https://github.com/555-Roman/terra written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/555-Roman/terra on toolchain 2aabf3ce0569dd7c8c2d2a27944850056dcf2566 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2aabf3ce0569dd7c8c2d2a27944850056dcf2566" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/555-Roman/terra 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" "+2aabf3ce0569dd7c8c2d2a27944850056dcf2566" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wayland-scanner v0.31.9 [INFO] [stderr] Downloaded glutin-winit v0.5.0 [INFO] [stderr] Downloaded glutin_glx_sys v0.6.1 [INFO] [stderr] Downloaded cgl v0.3.2 [INFO] [stderr] Downloaded is-terminal v0.4.17 [INFO] [stderr] Downloaded glutin_egl_sys v0.7.1 [INFO] [stderr] Downloaded pretty_env_logger v0.5.0 [INFO] [stderr] Downloaded wayland-cursor v0.31.13 [INFO] [stderr] Downloaded libredox v0.1.14 [INFO] [stderr] Downloaded pin-project-internal v1.1.11 [INFO] [stderr] Downloaded toml_datetime v1.0.1+spec-1.1.0 [INFO] [stderr] Downloaded humantime v2.3.0 [INFO] [stderr] Downloaded wayland-sys v0.31.10 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.64 [INFO] [stderr] Downloaded wayland-protocols-wlr v0.3.11 [INFO] [stderr] Downloaded wayland-protocols-plasma v0.3.11 [INFO] [stderr] Downloaded toml_parser v1.0.10+spec-1.1.0 [INFO] [stderr] Downloaded env_logger v0.10.2 [INFO] [stderr] Downloaded pin-project v1.1.11 [INFO] [stderr] Downloaded glutin v0.32.3 [INFO] [stderr] Downloaded wayland-client v0.31.13 [INFO] [stderr] Downloaded toml_edit v0.25.5+spec-1.1.0 [INFO] [stderr] Downloaded zerocopy-derive v0.8.47 [INFO] [stderr] Downloaded wayland-backend v0.3.14 [INFO] [stderr] Downloaded cc v1.2.57 [INFO] [stderr] Downloaded quick-xml v0.39.2 [INFO] [stderr] Downloaded wayland-protocols v0.32.11 [INFO] [stderr] Downloaded winnow v1.0.0 [INFO] [stderr] Downloaded android-activity v0.6.0 [INFO] [stderr] Downloaded zerocopy v0.8.47 [INFO] [stderr] Downloaded objc2-app-kit v0.3.2 [INFO] [stderr] Downloaded web-sys v0.3.91 [INFO] [stderr] Downloaded libc v0.2.183 [INFO] [stderr] Downloaded orbclient v0.3.51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+2aabf3ce0569dd7c8c2d2a27944850056dcf2566" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ef38b0c8a0e61c670c043d4df69e46ab294f5a152cd6977d59c6d627864bae9 [INFO] running `Command { std: "docker" "start" "-a" "4ef38b0c8a0e61c670c043d4df69e46ab294f5a152cd6977d59c6d627864bae9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ef38b0c8a0e61c670c043d4df69e46ab294f5a152cd6977d59c6d627864bae9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ef38b0c8a0e61c670c043d4df69e46ab294f5a152cd6977d59c6d627864bae9", kill_on_drop: false }` [INFO] [stdout] 4ef38b0c8a0e61c670c043d4df69e46ab294f5a152cd6977d59c6d627864bae9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+2aabf3ce0569dd7c8c2d2a27944850056dcf2566" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 665b394a48fd0503a7560a8318d28603a0a1dcee9b57d88fe92d92ea7bdca0b7 [INFO] running `Command { std: "docker" "start" "-a" "665b394a48fd0503a7560a8318d28603a0a1dcee9b57d88fe92d92ea7bdca0b7", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Checking linux-raw-sys v0.12.1 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking libloading v0.8.9 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Compiling wayland-client v0.31.13 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling xml-rs v0.8.28 [INFO] [stderr] Checking dlib v0.5.3 [INFO] [stderr] Compiling cc v1.2.57 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Checking xkeysym v0.2.1 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Checking xcursor v0.3.10 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking cursor-icon v1.2.0 [INFO] [stderr] Compiling zerocopy v0.8.47 [INFO] [stderr] Checking ttf-parser v0.25.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Compiling quick-xml v0.39.2 [INFO] [stderr] Compiling wayland-sys v0.31.10 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.10 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Compiling glutin v0.32.3 [INFO] [stderr] Compiling winit v0.30.13 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Compiling wayland-scanner v0.31.9 [INFO] [stderr] Checking memmap2 v0.9.10 [INFO] [stderr] Compiling glutin_glx_sys v0.6.1 [INFO] [stderr] Compiling glutin_egl_sys v0.7.1 [INFO] [stderr] Checking as-raw-xcb-connection v1.0.1 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking x11rb-protocol v0.13.2 [INFO] [stderr] Checking pin-project-lite v0.2.17 [INFO] [stderr] Compiling wayland-backend v0.3.14 [INFO] [stderr] Checking is-terminal v0.4.17 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling glutin-winit v0.5.0 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking dpi v0.1.2 [INFO] [stderr] Checking owned_ttf_parser v0.25.1 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking humantime v2.3.0 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking ab_glyph v0.2.32 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking glow v0.17.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking pretty_env_logger v0.5.0 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking wayland-protocols v0.32.11 [INFO] [stderr] Checking wayland-cursor v0.31.13 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.11 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.11 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking terra v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `log::log` [INFO] [stdout] --> src/world.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::log; [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: `glow::HasContext` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use glow::HasContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::log` [INFO] [stdout] --> src/world.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::log; [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: `glow::HasContext` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use glow::HasContext; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `glow::HasContext::get_uniform_location` is unsafe and requires unsafe block [INFO] [stdout] --> src/renderer.rs:246:32 [INFO] [stdout] | [INFO] [stdout] 246 | let uniform_location = gl.get_uniform_location(program, name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/renderer.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 243 | pub unsafe fn set_uniform(&self, program: NativeProgram, name: &str, values: &[f32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `glow::HasContext::uniform_2_f32_slice` is unsafe and requires unsafe block [INFO] [stdout] --> src/renderer.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | gl.uniform_2_f32_slice(uniform_location.as_ref(), values); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::new_program` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | let chunk_program = renderer.new_program(Self::CHUNK_FRAGMENT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/world.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub unsafe fn new(renderer: Rc) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::use_program` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | renderer.use_program(self.chunk_program); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/world.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub unsafe fn render(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::set_uniform` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | renderer.set_uniform(self.chunk_program, "layer0", &test_layer0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::set_uniform` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | renderer.set_uniform(self.chunk_program, "layer1", &test_layer1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::render_program_in_use` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | renderer.render_program_in_use(&chunk.quad, self.chunk_program); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/world.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut test_layer1: [f32; 512] = [0.0; 512]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/world.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | for (position, chunk) in self.loaded_chunks.iter() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `render_program_new` is never used [INFO] [stdout] --> src/renderer.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 40 | impl Renderer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 238 | pub unsafe fn render_program_new(&self, quad: &Quad, program: NativeProgram) {unsafe{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `layer0` and `layer1` are never read [INFO] [stdout] --> src/chunk.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ChunkData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 10 | pub layer0: [TileWithData; CHUNK_SIZE * CHUNK_SIZE], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub layer1: [TileWithData; CHUNK_SIZE * CHUNK_SIZE], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TileTexture` is never constructed [INFO] [stdout] --> src/tiles.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct TileTexture(u32, u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TileProperties` is never constructed [INFO] [stdout] --> src/tiles.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TileProperties { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GROUND` is never constructed [INFO] [stdout] --> src/tiles.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum TileType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | GROUND [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TileType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TILE_PROPERTIES` is never used [INFO] [stdout] --> src/tiles.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const TILE_PROPERTIES: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement drops value [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | renderer; [INFO] [stdout] | ^^^^^^^^^ help: use `drop` to clarify the intent: `drop(renderer);` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `glow::HasContext::get_uniform_location` is unsafe and requires unsafe block [INFO] [stdout] --> src/renderer.rs:246:32 [INFO] [stdout] | [INFO] [stdout] 246 | let uniform_location = gl.get_uniform_location(program, name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/renderer.rs:243:5 [INFO] [stdout] | [INFO] [stdout] 243 | pub unsafe fn set_uniform(&self, program: NativeProgram, name: &str, values: &[f32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `glow::HasContext::uniform_2_f32_slice` is unsafe and requires unsafe block [INFO] [stdout] --> src/renderer.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | gl.uniform_2_f32_slice(uniform_location.as_ref(), values); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::new_program` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 38 | let chunk_program = renderer.new_program(Self::CHUNK_FRAGMENT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/world.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub unsafe fn new(renderer: Rc) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::use_program` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | renderer.use_program(self.chunk_program); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/world.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub unsafe fn render(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::set_uniform` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | renderer.set_uniform(self.chunk_program, "layer0", &test_layer0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::set_uniform` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | renderer.set_uniform(self.chunk_program, "layer1", &test_layer1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `renderer::Renderer::render_program_in_use` is unsafe and requires unsafe block [INFO] [stdout] --> src/world.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | renderer.render_program_in_use(&chunk.quad, self.chunk_program); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/world.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut test_layer1: [f32; 512] = [0.0; 512]; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/world.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | for (position, chunk) in self.loaded_chunks.iter() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `render_program_new` is never used [INFO] [stdout] --> src/renderer.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 40 | impl Renderer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 238 | pub unsafe fn render_program_new(&self, quad: &Quad, program: NativeProgram) {unsafe{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `layer0` and `layer1` are never read [INFO] [stdout] --> src/chunk.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ChunkData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 10 | pub layer0: [TileWithData; CHUNK_SIZE * CHUNK_SIZE], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub layer1: [TileWithData; CHUNK_SIZE * CHUNK_SIZE], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TileTexture` is never constructed [INFO] [stdout] --> src/tiles.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct TileTexture(u32, u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TileProperties` is never constructed [INFO] [stdout] --> src/tiles.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TileProperties { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GROUND` is never constructed [INFO] [stdout] --> src/tiles.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum TileType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | GROUND [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TileType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TILE_PROPERTIES` is never used [INFO] [stdout] --> src/tiles.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const TILE_PROPERTIES: LazyLock> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement drops value [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | renderer; [INFO] [stdout] | ^^^^^^^^^ help: use `drop` to clarify the intent: `drop(renderer);` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.19s [INFO] running `Command { std: "docker" "inspect" "665b394a48fd0503a7560a8318d28603a0a1dcee9b57d88fe92d92ea7bdca0b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "665b394a48fd0503a7560a8318d28603a0a1dcee9b57d88fe92d92ea7bdca0b7", kill_on_drop: false }` [INFO] [stdout] 665b394a48fd0503a7560a8318d28603a0a1dcee9b57d88fe92d92ea7bdca0b7