[INFO] cloning repository https://github.com/ThePJB/graphics-backend-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ThePJB/graphics-backend-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThePJB%2Fgraphics-backend-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThePJB%2Fgraphics-backend-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ecc5e433619bcf93b1212ad89fa11675c33cc976 [INFO] checking ThePJB/graphics-backend-test/ecc5e433619bcf93b1212ad89fa11675c33cc976 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThePJB%2Fgraphics-backend-test" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ThePJB/graphics-backend-test on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ThePJB/graphics-backend-test [INFO] finished tweaking git repo https://github.com/ThePJB/graphics-backend-test [INFO] tweaked toml for git repo https://github.com/ThePJB/graphics-backend-test written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ThePJB/graphics-backend-test 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 503e9687e180c5397cde66763373adbf4e511567418ee9648380341272b457c7 [INFO] running `Command { std: "docker" "start" "-a" "503e9687e180c5397cde66763373adbf4e511567418ee9648380341272b457c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "503e9687e180c5397cde66763373adbf4e511567418ee9648380341272b457c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "503e9687e180c5397cde66763373adbf4e511567418ee9648380341272b457c7", kill_on_drop: false }` [INFO] [stdout] 503e9687e180c5397cde66763373adbf4e511567418ee9648380341272b457c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] deabdcdaf1cd5d679d08d2107d91b7f154af363c28a551386621bc0567e028cb [INFO] running `Command { std: "docker" "start" "-a" "deabdcdaf1cd5d679d08d2107d91b7f154af363c28a551386621bc0567e028cb", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling xml-rs v0.8.20 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Checking libloading v0.8.3 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling wayland-sys v0.31.1 [INFO] [stderr] Compiling cc v1.0.92 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking xcursor v0.3.5 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Compiling smithay-client-toolkit v0.18.1 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Checking ttf-parser v0.20.0 [INFO] [stderr] Checking xkeysym v0.2.0 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking cursor-icon v1.1.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.15.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling quick-xml v0.31.0 [INFO] [stderr] Compiling winit v0.29.15 [INFO] [stderr] Compiling glutin v0.31.3 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Checking as-raw-xcb-connection v1.0.1 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling winit v0.26.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking x11rb-protocol v0.13.0 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling glutin-winit v0.4.2 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking raw-window-handle v0.6.0 [INFO] [stderr] Checking smol_str v0.2.1 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Compiling wayland-scanner v0.31.1 [INFO] [stderr] Compiling glutin_egl_sys v0.6.0 [INFO] [stderr] Compiling glutin_glx_sys v0.5.0 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling wayland-backend v0.3.3 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking memmap2 v0.9.4 [INFO] [stderr] Checking nix v0.22.3 [INFO] [stderr] Checking owned_ttf_parser v0.20.0 [INFO] [stderr] Checking memmap2 v0.3.1 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking ab_glyph v0.2.24 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking thiserror v1.0.58 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking wayland-egl v0.29.5 [INFO] [stderr] Checking calloop v0.9.3 [INFO] [stderr] Checking polling v3.6.0 [INFO] [stderr] Checking calloop v0.12.4 [INFO] [stderr] Checking wayland-client v0.31.2 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking wayland-protocols v0.31.2 [INFO] [stderr] Checking wayland-cursor v0.31.1 [INFO] [stderr] Checking calloop-wayland-source v0.2.0 [INFO] [stderr] Checking x11rb v0.13.0 [INFO] [stderr] Checking wayland-protocols-wlr v0.2.0 [INFO] [stderr] Checking wayland-protocols-plasma v0.2.0 [INFO] [stderr] Checking sctk-adwaita v0.8.1 [INFO] [stderr] Checking glutin v0.28.0 [INFO] [stderr] Checking graphics-backend-test v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/util/vec2.rs (1 fix) [INFO] [stderr] Fixed src/util/gen_ref.rs (16 fixes) [INFO] [stderr] Fixed src/game/game.rs (1 fix) [INFO] [stderr] Fixed src/util/vec4.rs (1 fix) [INFO] [stderr] Fixed src/test_minecraft_lights.rs (1 fix) [INFO] [stderr] Fixed src/game/anim.rs (1 fix) [INFO] [stderr] Fixed src/game/resource_loading.rs (2 fixes) [INFO] [stderr] Fixed src/util/vec3.rs (1 fix) [INFO] [stderr] Fixed src/util/mod.rs (1 fix) [INFO] [stderr] Fixed src/util/vec_macros.rs (1 fix) [INFO] [stdout] warning: unused variable: `looping` [INFO] [stdout] --> src/game/anim.rs:35:66 [INFO] [stdout] | [INFO] [stdout] 35 | anims: HashMap::from_iter(anims.map(|(key, h, width, looping)| (key.to_owned(), Anim { h, n: width as _, looping: false }))), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_looping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `looping` [INFO] [stdout] --> src/game/anim.rs:48:66 [INFO] [stdout] | [INFO] [stdout] 48 | anims: HashMap::from_iter(anims.map(|(key, h, width, looping)| (key.to_owned(), Anim { h, n: width as _, looping: false }))), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_looping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `colour_buf` [INFO] [stdout] --> src/test_minecraft_lights.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let colour_buf = Texture::::new(wh, vec3(0.0, 0.0, 0.0)); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_colour_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lerp` is never used [INFO] [stdout] --> src/util/lerp.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Lerp { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 2 | fn lerp(self, other: Self, t: f32) -> Self; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unwrap_mut` is never used [INFO] [stdout] --> src/util/option_utils.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait UnwrapMut { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 37 | fn unwrap_mut(&mut self) -> &mut T; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `deref`, `deref_mut`, `free`, and `change_arenas` are never used [INFO] [stdout] --> src/util/gen_ref.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl GenRef { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 35 | pub fn deref<'a>(&self, arena: &'a GenArena) -> Option<&'a T> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn deref_mut<'a>(&self, arena: &'a mut GenArena) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn free<'a>(&self, arena: &'a mut GenArena) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn change_arenas(&mut self, from: &GenArena, to: &mut GenArena) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenBucket` is never constructed [INFO] [stdout] --> src/util/gen_ref.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct GenBucket { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/util/gen_ref.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl GenBucket { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 66 | fn new(item: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenArena` is never constructed [INFO] [stdout] --> src/util/gen_ref.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct GenArena { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/gen_ref.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl GenArena { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 80 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn borrow<'a>(&'a self, gen_ref: &GenRef) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn borrow_mut<'a>(&'a mut self, gen_ref: &GenRef) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn borrow_2<'a>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn borrow_2_mut<'a>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn borrow_many<'a>(&'a self, gen_refs: &'a [GenRef]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn borrow_many_mut<'a>(&'a mut self, gen_refs: &'a [GenRef]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn free(&mut self, gen_ref: &GenRef) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn alloc(&mut self, item: T) -> GenRef { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `set_square`, `circle`, and `save` are never used [INFO] [stdout] --> src/util/image.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ImageBuffer { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get(&self, x: usize, y: usize) -> Vec4 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn set_square(&mut self, x: usize, y: usize, r: usize, colour: Vec4) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn circle(&mut self, x: usize, y: usize, r: usize, rr: usize, colour: Vec4) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn save(&self, path: &Path) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_read_dir` is never used [INFO] [stdout] --> src/util/file_utils.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn my_read_dir(path: &Path) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyDirEntry` is never constructed [INFO] [stdout] --> src/util/file_utils.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct MyDirEntry { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyDirEntry` 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: field `scroll` is never read [INFO] [stdout] --> src/game/context.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Input { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub scroll: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Input` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_key` is never used [INFO] [stdout] --> src/game/anim.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl EntityAppearance { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn remove_key(&mut self, key: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/util/file_utils.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | dir_traverse(Path::new("data"), &mut |p| println!("{:?}", p)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = dir_traverse(Path::new("data"), &mut |p| println!("{:?}", p)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/game/render_context.rs (1 fix) [INFO] [stderr] Fixed src/test_minecraft_lights.rs (1 fix) [INFO] [stdout] warning: unused variable: `looping` [INFO] [stdout] --> src/game/anim.rs:35:66 [INFO] [stdout] | [INFO] [stdout] 35 | anims: HashMap::from_iter(anims.map(|(key, h, width, looping)| (key.to_owned(), Anim { h, n: width as _, looping: false }))), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_looping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `looping` [INFO] [stdout] --> src/game/anim.rs:48:66 [INFO] [stdout] | [INFO] [stdout] 48 | anims: HashMap::from_iter(anims.map(|(key, h, width, looping)| (key.to_owned(), Anim { h, n: width as _, looping: false }))), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_looping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lerp` is never used [INFO] [stdout] --> src/util/lerp.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Lerp { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 2 | fn lerp(self, other: Self, t: f32) -> Self; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `irect` is never used [INFO] [stdout] --> src/util/irect2.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn irect(x: i32, y: i32, w: i32, h: i32) -> IRect2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unwrap_mut` is never used [INFO] [stdout] --> src/util/option_utils.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait UnwrapMut { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 37 | fn unwrap_mut(&mut self) -> &mut T; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `deref`, `deref_mut`, `free`, and `change_arenas` are never used [INFO] [stdout] --> src/util/gen_ref.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl GenRef { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 35 | pub fn deref<'a>(&self, arena: &'a GenArena) -> Option<&'a T> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn deref_mut<'a>(&self, arena: &'a mut GenArena) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn free<'a>(&self, arena: &'a mut GenArena) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn change_arenas(&mut self, from: &GenArena, to: &mut GenArena) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenBucket` is never constructed [INFO] [stdout] --> src/util/gen_ref.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct GenBucket { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/util/gen_ref.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl GenBucket { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 66 | fn new(item: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenArena` is never constructed [INFO] [stdout] --> src/util/gen_ref.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct GenArena { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/gen_ref.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl GenArena { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 80 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn borrow<'a>(&'a self, gen_ref: &GenRef) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn borrow_mut<'a>(&'a mut self, gen_ref: &GenRef) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn borrow_2<'a>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn borrow_2_mut<'a>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn borrow_many<'a>(&'a self, gen_refs: &'a [GenRef]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn borrow_many_mut<'a>(&'a mut self, gen_refs: &'a [GenRef]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn free(&mut self, gen_ref: &GenRef) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn alloc(&mut self, item: T) -> GenRef { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `set_square`, `circle`, and `save` are never used [INFO] [stdout] --> src/util/image.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ImageBuffer { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get(&self, x: usize, y: usize) -> Vec4 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn set_square(&mut self, x: usize, y: usize, r: usize, colour: Vec4) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn circle(&mut self, x: usize, y: usize, r: usize, rr: usize, colour: Vec4) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn save(&self, path: &Path) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_read_dir` is never used [INFO] [stdout] --> src/util/file_utils.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn my_read_dir(path: &Path) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyDirEntry` is never constructed [INFO] [stdout] --> src/util/file_utils.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct MyDirEntry { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyDirEntry` 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: associated items `new`, `fill`, `sample`, `sample_checked`, and `save` are never used [INFO] [stdout] --> src/util/texture.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Texture { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(wh: IVec2, initial: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn fill(&mut self, value: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn sample(&self, coord: IVec2) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn sample_checked(&self, coord: IVec2) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn save(&self, path: &std::path::Path, f: impl Fn(T)->[u8;4]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set` and `draw_circle` are never used [INFO] [stdout] --> src/util/texture.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub trait Draw { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 68 | fn set(&mut self, p: IVec2, value: Self::Pixel); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn draw_circle(&mut self, c: IVec2, r: i32, fill: Self::Pixel) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dist_fn` is never used [INFO] [stdout] --> src/util/distance_field_generation.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn dist_fn(p1: IVec2, p2: IVec2) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spread` is never used [INFO] [stdout] --> src/util/distance_field_generation.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn spread(distance: &mut Texture, nearest: &mut Texture, p1: IVec2, p2: IVec2) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sdf1` is never used [INFO] [stdout] --> src/util/distance_field_generation.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn sdf1(in_stencil: Texture) -> Texture { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `normalize` is never used [INFO] [stdout] --> src/util/distance_field_generation.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Texture { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 74 | pub fn normalize(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scroll` is never read [INFO] [stdout] --> src/game/context.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Input { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub scroll: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Input` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_key` is never used [INFO] [stdout] --> src/game/anim.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl EntityAppearance { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn remove_key(&mut self, key: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.15s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking graphics-backend-test v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/game/render_context.rs:507:34 [INFO] [stdout] | [INFO] [stdout] 507 | dbg!(oriented_rect_2d_points(PI/2.0, vec2(2.0, 1.0), vec2(0.0, 0.0))); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these constants [INFO] [stdout] | [INFO] [stdout] 1 + use std::f128::consts::PI; [INFO] [stdout] | [INFO] [stdout] 1 + use std::f16::consts::PI; [INFO] [stdout] | [INFO] [stdout] 1 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 1 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `ivec2` in this scope [INFO] [stdout] --> src/test_minecraft_lights.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | let wh = ivec2(128, 128); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 8 + use crate::util::ivec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Texture` in this scope [INFO] [stdout] --> src/test_minecraft_lights.rs:11:32 [INFO] [stdout] | [INFO] [stdout] 11 | let mut collision_stencil: Texture = Texture::new(wh, false); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 + use crate::util::Texture; [INFO] [stdout] | [INFO] [stdout] 8 + use glow::Texture; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Texture` [INFO] [stdout] --> src/test_minecraft_lights.rs:11:48 [INFO] [stdout] | [INFO] [stdout] 11 | let mut collision_stencil: Texture = Texture::new(wh, false); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Texture` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 + use crate::util::Texture; [INFO] [stdout] | [INFO] [stdout] 8 + use glow::Texture; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `ivec2` in this scope [INFO] [stdout] --> src/test_minecraft_lights.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | collision_stencil.draw_circle(ivec2(64, 64), 8, true); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 8 + use crate::util::ivec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Texture` [INFO] [stdout] --> src/test_minecraft_lights.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | let colour_buf = Texture::::new(wh, vec3(0.0, 0.0, 0.0)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Texture` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 + use crate::util::Texture; [INFO] [stdout] | [INFO] [stdout] 8 + use glow::Texture; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Vec3` in this scope [INFO] [stdout] --> src/test_minecraft_lights.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | let colour_buf = Texture::::new(wh, vec3(0.0, 0.0, 0.0)); [INFO] [stdout] | ^^^^ [INFO] [stdout] --> /rustc/ccf408f4326a858c00dd845a64a86b16f360a801/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named struct `Vec` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 14 | let colour_buf = Texture::::new(wh, vec3(0.0, 0.0, 0.0)); [INFO] [stdout] | ~~~ [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 8 + use crate::util::Vec3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec3` in this scope [INFO] [stdout] --> src/test_minecraft_lights.rs:14:47 [INFO] [stdout] | [INFO] [stdout] 14 | let colour_buf = Texture::::new(wh, vec3(0.0, 0.0, 0.0)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 8 + use crate::util::vec3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `looping` [INFO] [stdout] --> src/game/anim.rs:35:66 [INFO] [stdout] | [INFO] [stdout] 35 | anims: HashMap::from_iter(anims.map(|(key, h, width, looping)| (key.to_owned(), Anim { h, n: width as _, looping: false }))), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_looping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `looping` [INFO] [stdout] --> src/game/anim.rs:48:66 [INFO] [stdout] | [INFO] [stdout] 48 | anims: HashMap::from_iter(anims.map(|(key, h, width, looping)| (key.to_owned(), Anim { h, n: width as _, looping: false }))), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_looping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lerp` is never used [INFO] [stdout] --> src/util/lerp.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Lerp { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 2 | fn lerp(self, other: Self, t: f32) -> Self; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `irect` is never used [INFO] [stdout] --> src/util/irect2.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn irect(x: i32, y: i32, w: i32, h: i32) -> IRect2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unwrap_mut` is never used [INFO] [stdout] --> src/util/option_utils.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait UnwrapMut { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 37 | fn unwrap_mut(&mut self) -> &mut T; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `deref`, `deref_mut`, `free`, and `change_arenas` are never used [INFO] [stdout] --> src/util/gen_ref.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl GenRef { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] 35 | pub fn deref<'a>(&self, arena: &'a GenArena) -> Option<&'a T> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn deref_mut<'a>(&self, arena: &'a mut GenArena) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn free<'a>(&self, arena: &'a mut GenArena) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn change_arenas(&mut self, from: &GenArena, to: &mut GenArena) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenBucket` is never constructed [INFO] [stdout] --> src/util/gen_ref.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct GenBucket { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/util/gen_ref.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl GenBucket { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 66 | fn new(item: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenArena` is never constructed [INFO] [stdout] --> src/util/gen_ref.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct GenArena { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/util/gen_ref.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl GenArena { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 80 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn borrow<'a>(&'a self, gen_ref: &GenRef) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn borrow_mut<'a>(&'a mut self, gen_ref: &GenRef) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn borrow_2<'a>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn borrow_2_mut<'a>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn borrow_many<'a>(&'a self, gen_refs: &'a [GenRef]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn borrow_many_mut<'a>(&'a mut self, gen_refs: &'a [GenRef]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn free(&mut self, gen_ref: &GenRef) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn alloc(&mut self, item: T) -> GenRef { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `set_square`, `circle`, and `save` are never used [INFO] [stdout] --> src/util/image.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ImageBuffer { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get(&self, x: usize, y: usize) -> Vec4 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn set_square(&mut self, x: usize, y: usize, r: usize, colour: Vec4) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn circle(&mut self, x: usize, y: usize, r: usize, rr: usize, colour: Vec4) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn save(&self, path: &Path) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_read_dir` is never used [INFO] [stdout] --> src/util/file_utils.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn my_read_dir(path: &Path) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyDirEntry` is never constructed [INFO] [stdout] --> src/util/file_utils.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct MyDirEntry { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MyDirEntry` 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: associated items `new`, `fill`, `sample`, `sample_checked`, and `save` are never used [INFO] [stdout] --> src/util/texture.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Texture { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(wh: IVec2, initial: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn fill(&mut self, value: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn sample(&self, coord: IVec2) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn sample_checked(&self, coord: IVec2) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn save(&self, path: &std::path::Path, f: impl Fn(T)->[u8;4]) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set` and `draw_circle` are never used [INFO] [stdout] --> src/util/texture.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub trait Draw { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 68 | fn set(&mut self, p: IVec2, value: Self::Pixel); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn draw_circle(&mut self, c: IVec2, r: i32, fill: Self::Pixel) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dist_fn` is never used [INFO] [stdout] --> src/util/distance_field_generation.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn dist_fn(p1: IVec2, p2: IVec2) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spread` is never used [INFO] [stdout] --> src/util/distance_field_generation.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn spread(distance: &mut Texture, nearest: &mut Texture, p1: IVec2, p2: IVec2) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sdf1` is never used [INFO] [stdout] --> src/util/distance_field_generation.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn sdf1(in_stencil: Texture) -> Texture { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `normalize` is never used [INFO] [stdout] --> src/util/distance_field_generation.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Texture { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 74 | pub fn normalize(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scroll` is never read [INFO] [stdout] --> src/game/context.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Input { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub scroll: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Input` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_key` is never used [INFO] [stdout] --> src/game/anim.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl EntityAppearance { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn remove_key(&mut self, key: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `looping` [INFO] [stdout] --> src/game/anim.rs:35:66 [INFO] [stdout] | [INFO] [stdout] 35 | anims: HashMap::from_iter(anims.map(|(key, h, width, looping)| (key.to_owned(), Anim { h, n: width as _, looping: false }))), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_looping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `looping` [INFO] [stdout] --> src/game/anim.rs:48:66 [INFO] [stdout] | [INFO] [stdout] 48 | anims: HashMap::from_iter(anims.map(|(key, h, width, looping)| (key.to_owned(), Anim { h, n: width as _, looping: false }))), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_looping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `graphics-backend-test` (bin "graphics-backend-test" test) due to 9 previous errors; 2 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "deabdcdaf1cd5d679d08d2107d91b7f154af363c28a551386621bc0567e028cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "deabdcdaf1cd5d679d08d2107d91b7f154af363c28a551386621bc0567e028cb", kill_on_drop: false }` [INFO] [stdout] deabdcdaf1cd5d679d08d2107d91b7f154af363c28a551386621bc0567e028cb