[INFO] cloning repository https://github.com/iptq/wedge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iptq/wedge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiptq%2Fwedge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiptq%2Fwedge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d63beb5152d8ad362abf6a8bbb3ee362b7463fac [INFO] testing iptq/wedge against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiptq%2Fwedge" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iptq/wedge on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iptq/wedge [INFO] finished tweaking git repo https://github.com/iptq/wedge [INFO] tweaked toml for git repo https://github.com/iptq/wedge written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/iptq/wedge already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 63c4c527190ac2fd3081a56cab8aabed63f2eca81766a0681dae942f4e017311 [INFO] running `Command { std: "docker" "start" "-a" "63c4c527190ac2fd3081a56cab8aabed63f2eca81766a0681dae942f4e017311", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "63c4c527190ac2fd3081a56cab8aabed63f2eca81766a0681dae942f4e017311", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63c4c527190ac2fd3081a56cab8aabed63f2eca81766a0681dae942f4e017311", kill_on_drop: false }` [INFO] [stdout] 63c4c527190ac2fd3081a56cab8aabed63f2eca81766a0681dae942f4e017311 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3bd961182deddb3db69fbcf2ecac08ca20f53840c7f4c95f929c68060f1ccad3 [INFO] running `Command { std: "docker" "start" "-a" "3bd961182deddb3db69fbcf2ecac08ca20f53840c7f4c95f929c68060f1ccad3", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling libc v0.2.61 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling cc v1.0.40 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.48 [INFO] [stderr] Compiling bumpalo v2.5.0 [INFO] [stderr] Compiling pkg-config v0.3.15 [INFO] [stderr] Compiling same-file v1.0.5 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling downcast-rs v1.0.4 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling ucd-trie v0.1.2 [INFO] [stderr] Compiling libm v0.1.4 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling rayon-core v1.5.0 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling serde v1.0.98 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling rawpointer v0.1.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.48 [INFO] [stderr] Compiling sourcefile v0.1.4 [INFO] [stderr] Compiling takeable-option v0.4.0 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling walkdir v2.2.9 [INFO] [stderr] Compiling pest v2.1.1 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling gif v0.10.2 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling matrixmultiply v0.2.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling x11-dl v2.18.3 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling stb_truetype v0.2.6 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling pest_meta v2.1.1 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling dlib v0.4.1 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling crossbeam-deque v0.6.3 [INFO] [stderr] Compiling backtrace v0.3.34 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling ordered-float v1.0.2 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling weedle v0.10.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.3 [INFO] [stderr] Compiling glutin_glx_sys v0.1.5 [INFO] [stderr] Compiling glium v0.25.1 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling rusttype v0.7.7 [INFO] [stderr] Compiling rayon v1.1.0 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling alga v0.9.1 [INFO] [stderr] Compiling png v0.14.1 [INFO] [stderr] Compiling nalgebra v0.18.0 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling jpeg-decoder v0.1.15 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.48 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling pest_generator v2.1.0 [INFO] [stderr] Compiling derivative v1.0.2 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.98 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.48 [INFO] [stderr] Compiling json5 v0.2.5 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.48 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling wasm-bindgen-webidl v0.2.48 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling image v0.21.2 [INFO] [stderr] Compiling js-sys v0.3.25 [INFO] [stderr] Compiling web-sys v0.3.25 [INFO] [stderr] Compiling nalgebra-glm v0.4.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling winit v0.19.2 [INFO] [stderr] Compiling glutin v0.21.0 [INFO] [stderr] Compiling wedge_core v0.1.0 (/opt/rustwide/workdir/core) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> core/src/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VirtualKeyCode` [INFO] [stdout] --> core/src/game.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use glium::glutin::{ElementState, Event, VirtualKeyCode, WindowEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::animations::AnimationState` [INFO] [stdout] --> core/src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::animations::AnimationState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Board`, `PushDir` [INFO] [stdout] --> core/src/game.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::enums::{Board, PushDir}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::level::Level` [INFO] [stdout] --> core/src/game.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::level::Level; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> core/src/screens/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> core/src/animations.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 - pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] 11 + pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> core/src/screens/mod.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | let mut stack = Vec::>::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - let mut stack = Vec::>::new(); [INFO] [stdout] 33 + let mut stack = Vec::>::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Screen` [INFO] [stdout] --> core/src/game.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::screens::{MenuScreen, Screen, ScreenStack}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/lib.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let delta = now - prev; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `platform` [INFO] [stdout] --> core/src/lib.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn run_with(platform: P) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> core/src/lib.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let window = gl_window.window(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/screens/mod.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymap` [INFO] [stdout] --> core/src/screens/mod.rs:16:43 [INFO] [stdout] | [INFO] [stdout] 16 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> core/src/screens/mod.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | fn render(&self, renderer: &mut Renderer) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> core/src/screens/mod.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | ScreenAction::Pop(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> core/src/screens/editor.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | fn render(&self, renderer: &mut Renderer) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/screens/menu.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut closed = false; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut prev = Instant::now(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_VERT` [INFO] [stdout] --> core/src/game.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const SEGMENT_VERT: &str = include_str!("../shaders/segment.vert"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_FRAG` [INFO] [stdout] --> core/src/game.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const SEGMENT_FRAG: &str = include_str!("../shaders/segment.frag"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CELL_VERT` [INFO] [stdout] --> core/src/game.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | const CELL_VERT: &str = include_str!("../shaders/cell.vert"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CELL_FRAG` [INFO] [stdout] --> core/src/game.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | const CELL_FRAG: &str = include_str!("../shaders/cell.frag"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_IMAGE` [INFO] [stdout] --> core/src/game.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const SEGMENT_IMAGE: &[u8] = include_bytes!("../textures/segment.png"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Game` [INFO] [stdout] --> core/src/game.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Game<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> core/src/game.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(display: &'a Display) -> Game { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `handle_event` [INFO] [stdout] --> core/src/game.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn handle_event(&mut self, event: Event) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_renderer` [INFO] [stdout] --> core/src/game.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn create_renderer<'b>(&self, target: &'b mut Frame) -> Renderer<'b, '_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> core/src/game.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn update(&mut self, delta: Duration) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render` [INFO] [stdout] --> core/src/game.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn render(&self, renderer: &mut Renderer) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> core/src/keymap.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pressed` [INFO] [stdout] --> core/src/keymap.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn pressed(&mut self, code: VirtualKeyCode) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `release` [INFO] [stdout] --> core/src/keymap.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn release(&mut self, code: VirtualKeyCode) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> core/src/level/block.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `move_stack` [INFO] [stdout] --> core/src/level/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | move_stack: VecDeque<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> core/src/renderer.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(game: &'b Game, target: &'a mut Frame) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `textures` [INFO] [stdout] --> core/src/resources.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | textures: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `shaders` [INFO] [stdout] --> core/src/resources.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | shaders: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_image_from_memory` [INFO] [stdout] --> core/src/resources.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn load_image_from_memory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_image` [INFO] [stdout] --> core/src/resources.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn load_image( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_texture` [INFO] [stdout] --> core/src/resources.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_texture(&self, name: impl AsRef) -> Option<&Texture2d> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_shader` [INFO] [stdout] --> core/src/resources.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn load_shader( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shader` [INFO] [stdout] --> core/src/resources.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_shader(&self, name: impl AsRef) -> Option<&Program> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level` [INFO] [stdout] --> core/src/screens/editor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | level: LevelData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> core/src/screens/menu.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new() -> MenuScreen { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ScreenStack` [INFO] [stdout] --> core/src/screens/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ScreenStack(Vec>); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with` [INFO] [stdout] --> core/src/screens/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn with(screen: S) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> core/src/screens/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn top(&self) -> impl AsRef + '_ { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top_mut` [INFO] [stdout] --> core/src/screens/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn top_mut(&mut self) -> impl AsMut + '_ { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> core/src/screens/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn update(&mut self, delta: Duration, keymap: &Keymap) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render` [INFO] [stdout] --> core/src/screens/mod.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn render(&self, renderer: &mut Renderer) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GAME_WIDTH` [INFO] [stdout] --> core/src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const GAME_WIDTH: u32 = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GAME_HEIGHT` [INFO] [stdout] --> core/src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const GAME_HEIGHT: u32 = 768; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> core/src/lib.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wedge_desktop v0.1.0 (/opt/rustwide/workdir/desktop) [INFO] [stderr] Compiling wedge_web v0.1.0 (/opt/rustwide/workdir/web) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 02s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: js-sys v0.3.25 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "3bd961182deddb3db69fbcf2ecac08ca20f53840c7f4c95f929c68060f1ccad3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bd961182deddb3db69fbcf2ecac08ca20f53840c7f4c95f929c68060f1ccad3", kill_on_drop: false }` [INFO] [stdout] 3bd961182deddb3db69fbcf2ecac08ca20f53840c7f4c95f929c68060f1ccad3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b0bacd700939126555d85e0a246c42b841b72ff5f5c21781185c71d94fc126b3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b0bacd700939126555d85e0a246c42b841b72ff5f5c21781185c71d94fc126b3", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> core/src/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VirtualKeyCode` [INFO] [stdout] --> core/src/game.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use glium::glutin::{ElementState, Event, VirtualKeyCode, WindowEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::animations::AnimationState` [INFO] [stdout] --> core/src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::animations::AnimationState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Board`, `PushDir` [INFO] [stdout] --> core/src/game.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::enums::{Board, PushDir}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wedge_core v0.1.0 (/opt/rustwide/workdir/core) [INFO] [stdout] warning: unused import: `crate::level::Level` [INFO] [stdout] --> core/src/game.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::level::Level; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wedge_desktop v0.1.0 (/opt/rustwide/workdir/desktop) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> core/src/screens/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wedge_web v0.1.0 (/opt/rustwide/workdir/web) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> core/src/animations.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 - pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] 11 + pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> core/src/screens/mod.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | let mut stack = Vec::>::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - let mut stack = Vec::>::new(); [INFO] [stdout] 33 + let mut stack = Vec::>::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Screen` [INFO] [stdout] --> core/src/game.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::screens::{MenuScreen, Screen, ScreenStack}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/lib.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let delta = now - prev; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `platform` [INFO] [stdout] --> core/src/lib.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn run_with(platform: P) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> core/src/lib.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let window = gl_window.window(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/screens/mod.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymap` [INFO] [stdout] --> core/src/screens/mod.rs:16:43 [INFO] [stdout] | [INFO] [stdout] 16 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> core/src/screens/mod.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | fn render(&self, renderer: &mut Renderer) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> core/src/screens/mod.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | ScreenAction::Pop(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> core/src/screens/editor.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | fn render(&self, renderer: &mut Renderer) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/screens/menu.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut closed = false; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut prev = Instant::now(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_VERT` [INFO] [stdout] --> core/src/game.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const SEGMENT_VERT: &str = include_str!("../shaders/segment.vert"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_FRAG` [INFO] [stdout] --> core/src/game.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const SEGMENT_FRAG: &str = include_str!("../shaders/segment.frag"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CELL_VERT` [INFO] [stdout] --> core/src/game.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | const CELL_VERT: &str = include_str!("../shaders/cell.vert"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CELL_FRAG` [INFO] [stdout] --> core/src/game.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | const CELL_FRAG: &str = include_str!("../shaders/cell.frag"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_IMAGE` [INFO] [stdout] --> core/src/game.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const SEGMENT_IMAGE: &[u8] = include_bytes!("../textures/segment.png"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Game` [INFO] [stdout] --> core/src/game.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Game<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> core/src/game.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new(display: &'a Display) -> Game { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `handle_event` [INFO] [stdout] --> core/src/game.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn handle_event(&mut self, event: Event) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_renderer` [INFO] [stdout] --> core/src/game.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn create_renderer<'b>(&self, target: &'b mut Frame) -> Renderer<'b, '_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> core/src/game.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn update(&mut self, delta: Duration) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render` [INFO] [stdout] --> core/src/game.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn render(&self, renderer: &mut Renderer) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> core/src/keymap.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pressed` [INFO] [stdout] --> core/src/keymap.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn pressed(&mut self, code: VirtualKeyCode) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `release` [INFO] [stdout] --> core/src/keymap.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn release(&mut self, code: VirtualKeyCode) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> core/src/level/block.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `move_stack` [INFO] [stdout] --> core/src/level/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | move_stack: VecDeque<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> core/src/renderer.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(game: &'b Game, target: &'a mut Frame) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `textures` [INFO] [stdout] --> core/src/resources.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | textures: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `shaders` [INFO] [stdout] --> core/src/resources.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | shaders: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_image_from_memory` [INFO] [stdout] --> core/src/resources.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn load_image_from_memory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_image` [INFO] [stdout] --> core/src/resources.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn load_image( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_texture` [INFO] [stdout] --> core/src/resources.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_texture(&self, name: impl AsRef) -> Option<&Texture2d> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_shader` [INFO] [stdout] --> core/src/resources.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn load_shader( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shader` [INFO] [stdout] --> core/src/resources.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn get_shader(&self, name: impl AsRef) -> Option<&Program> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level` [INFO] [stdout] --> core/src/screens/editor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | level: LevelData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> core/src/screens/menu.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new() -> MenuScreen { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ScreenStack` [INFO] [stdout] --> core/src/screens/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ScreenStack(Vec>); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with` [INFO] [stdout] --> core/src/screens/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn with(screen: S) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top` [INFO] [stdout] --> core/src/screens/mod.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn top(&self) -> impl AsRef + '_ { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `top_mut` [INFO] [stdout] --> core/src/screens/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn top_mut(&mut self) -> impl AsMut + '_ { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> core/src/screens/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn update(&mut self, delta: Duration, keymap: &Keymap) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render` [INFO] [stdout] --> core/src/screens/mod.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn render(&self, renderer: &mut Renderer) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GAME_WIDTH` [INFO] [stdout] --> core/src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const GAME_WIDTH: u32 = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GAME_HEIGHT` [INFO] [stdout] --> core/src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const GAME_HEIGHT: u32 = 768; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> core/src/lib.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> core/src/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VirtualKeyCode` [INFO] [stdout] --> core/src/game.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use glium::glutin::{ElementState, Event, VirtualKeyCode, WindowEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::animations::AnimationState` [INFO] [stdout] --> core/src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::animations::AnimationState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Board`, `PushDir` [INFO] [stdout] --> core/src/game.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::enums::{Board, PushDir}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::level::Level` [INFO] [stdout] --> core/src/game.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::level::Level; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> core/src/screens/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> core/src/animations.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 - pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] 11 + pub type AnimationFn = Box BlockOffsets>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> core/src/screens/mod.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | let mut stack = Vec::>::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - let mut stack = Vec::>::new(); [INFO] [stdout] 33 + let mut stack = Vec::>::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Screen` [INFO] [stdout] --> core/src/game.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::screens::{MenuScreen, Screen, ScreenStack}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/lib.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let delta = now - prev; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `platform` [INFO] [stdout] --> core/src/lib.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn run_with(platform: P) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `window` [INFO] [stdout] --> core/src/lib.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let window = gl_window.window(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/screens/mod.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 16 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymap` [INFO] [stdout] --> core/src/screens/mod.rs:16:43 [INFO] [stdout] | [INFO] [stdout] 16 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> core/src/screens/mod.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | fn render(&self, renderer: &mut Renderer) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> core/src/screens/mod.rs:58:31 [INFO] [stdout] | [INFO] [stdout] 58 | ScreenAction::Pop(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> core/src/screens/editor.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | fn render(&self, renderer: &mut Renderer) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> core/src/screens/menu.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut closed = false; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut prev = Instant::now(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> core/src/level/block.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | index: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `move_stack` [INFO] [stdout] --> core/src/level/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | move_stack: VecDeque<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level` [INFO] [stdout] --> core/src/screens/editor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | level: LevelData, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.10s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: js-sys v0.3.25 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "b0bacd700939126555d85e0a246c42b841b72ff5f5c21781185c71d94fc126b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0bacd700939126555d85e0a246c42b841b72ff5f5c21781185c71d94fc126b3", kill_on_drop: false }` [INFO] [stdout] b0bacd700939126555d85e0a246c42b841b72ff5f5c21781185c71d94fc126b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 28d9e5d59d807537b8867334dc62ab37ecd9337aa013ae733a3be00d4e9b08bf [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "28d9e5d59d807537b8867334dc62ab37ecd9337aa013ae733a3be00d4e9b08bf", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> core/src/game.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `VirtualKeyCode` [INFO] [stderr] --> core/src/game.rs:4:42 [INFO] [stderr] | [INFO] [stderr] 4 | use glium::glutin::{ElementState, Event, VirtualKeyCode, WindowEvent}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::animations::AnimationState` [INFO] [stderr] --> core/src/game.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::animations::AnimationState; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Board`, `PushDir` [INFO] [stderr] --> core/src/game.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::enums::{Board, PushDir}; [INFO] [stderr] | ^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::level::Level` [INFO] [stderr] --> core/src/game.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::level::Level; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> core/src/screens/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> core/src/animations.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | pub type AnimationFn = Box BlockOffsets>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 11 - pub type AnimationFn = Box BlockOffsets>; [INFO] [stderr] 11 + pub type AnimationFn = Box BlockOffsets>; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> core/src/screens/mod.rs:33:35 [INFO] [stderr] | [INFO] [stderr] 33 | let mut stack = Vec::>::new(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 33 - let mut stack = Vec::>::new(); [INFO] [stderr] 33 + let mut stack = Vec::>::new(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `Screen` [INFO] [stderr] --> core/src/game.rs:13:34 [INFO] [stderr] | [INFO] [stderr] 13 | use crate::screens::{MenuScreen, Screen, ScreenStack}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta` [INFO] [stderr] --> core/src/lib.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 38 | let delta = now - prev; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `platform` [INFO] [stderr] --> core/src/lib.rs:32:30 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn run_with(platform: P) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_platform` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `window` [INFO] [stderr] --> core/src/lib.rs:57:13 [INFO] [stderr] | [INFO] [stderr] 57 | let window = gl_window.window(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta` [INFO] [stderr] --> core/src/screens/mod.rs:16:26 [INFO] [stderr] | [INFO] [stderr] 16 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `keymap` [INFO] [stderr] --> core/src/screens/mod.rs:16:43 [INFO] [stderr] | [INFO] [stderr] 16 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymap` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `renderer` [INFO] [stderr] --> core/src/screens/mod.rs:20:22 [INFO] [stderr] | [INFO] [stderr] 20 | fn render(&self, renderer: &mut Renderer) {} [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> core/src/screens/mod.rs:58:31 [INFO] [stderr] | [INFO] [stderr] 58 | ScreenAction::Pop(n) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `renderer` [INFO] [stderr] --> core/src/screens/editor.rs:10:22 [INFO] [stderr] | [INFO] [stderr] 10 | fn render(&self, renderer: &mut Renderer) {} [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `delta` [INFO] [stderr] --> core/src/screens/menu.rs:11:26 [INFO] [stderr] | [INFO] [stderr] 11 | fn update(&mut self, delta: Duration, keymap: &Keymap) -> ScreenAction { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> core/src/lib.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | let mut closed = false; [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> core/src/lib.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | let mut prev = Instant::now(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `SEGMENT_VERT` [INFO] [stderr] --> core/src/game.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | const SEGMENT_VERT: &str = include_str!("../shaders/segment.vert"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `SEGMENT_FRAG` [INFO] [stderr] --> core/src/game.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | const SEGMENT_FRAG: &str = include_str!("../shaders/segment.frag"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `CELL_VERT` [INFO] [stderr] --> core/src/game.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | const CELL_VERT: &str = include_str!("../shaders/cell.vert"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `CELL_FRAG` [INFO] [stderr] --> core/src/game.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | const CELL_FRAG: &str = include_str!("../shaders/cell.frag"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `SEGMENT_IMAGE` [INFO] [stderr] --> core/src/game.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | const SEGMENT_IMAGE: &[u8] = include_bytes!("../textures/segment.png"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Game` [INFO] [stderr] --> core/src/game.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct Game<'a> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> core/src/game.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn new(display: &'a Display) -> Game { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `handle_event` [INFO] [stderr] --> core/src/game.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn handle_event(&mut self, event: Event) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `create_renderer` [INFO] [stderr] --> core/src/game.rs:71:12 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn create_renderer<'b>(&self, target: &'b mut Frame) -> Renderer<'b, '_> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update` [INFO] [stderr] --> core/src/game.rs:75:12 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn update(&mut self, delta: Duration) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `render` [INFO] [stderr] --> core/src/game.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | pub fn render(&self, renderer: &mut Renderer) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> core/src/keymap.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `pressed` [INFO] [stderr] --> core/src/keymap.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn pressed(&mut self, code: VirtualKeyCode) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `release` [INFO] [stderr] --> core/src/keymap.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn release(&mut self, code: VirtualKeyCode) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `index` [INFO] [stderr] --> core/src/level/block.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | index: usize, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `move_stack` [INFO] [stderr] --> core/src/level/mod.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | move_stack: VecDeque<()>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> core/src/renderer.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn new(game: &'b Game, target: &'a mut Frame) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `textures` [INFO] [stderr] --> core/src/resources.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | textures: HashMap, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `shaders` [INFO] [stderr] --> core/src/resources.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | shaders: HashMap, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `load_image_from_memory` [INFO] [stderr] --> core/src/resources.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn load_image_from_memory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `load_image` [INFO] [stderr] --> core/src/resources.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn load_image( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_texture` [INFO] [stderr] --> core/src/resources.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn get_texture(&self, name: impl AsRef) -> Option<&Texture2d> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `load_shader` [INFO] [stderr] --> core/src/resources.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn load_shader( [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_shader` [INFO] [stderr] --> core/src/resources.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 63 | pub fn get_shader(&self, name: impl AsRef) -> Option<&Program> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `level` [INFO] [stderr] --> core/src/screens/editor.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | level: LevelData, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> core/src/screens/menu.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn new() -> MenuScreen { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `ScreenStack` [INFO] [stderr] --> core/src/screens/mod.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct ScreenStack(Vec>); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `with` [INFO] [stderr] --> core/src/screens/mod.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn with(screen: S) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `top` [INFO] [stderr] --> core/src/screens/mod.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn top(&self) -> impl AsRef + '_ { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `top_mut` [INFO] [stderr] --> core/src/screens/mod.rs:42:12 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn top_mut(&mut self) -> impl AsMut + '_ { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update` [INFO] [stderr] --> core/src/screens/mod.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn update(&mut self, delta: Duration, keymap: &Keymap) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `render` [INFO] [stderr] --> core/src/screens/mod.rs:64:12 [INFO] [stderr] | [INFO] [stderr] 64 | pub fn render(&self, renderer: &mut Renderer) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `GAME_WIDTH` [INFO] [stderr] --> core/src/lib.rs:29:1 [INFO] [stderr] | [INFO] [stderr] 29 | const GAME_WIDTH: u32 = 1024; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `GAME_HEIGHT` [INFO] [stderr] --> core/src/lib.rs:30:1 [INFO] [stderr] | [INFO] [stderr] 30 | const GAME_HEIGHT: u32 = 768; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `main` [INFO] [stderr] --> core/src/lib.rs:42:4 [INFO] [stderr] | [INFO] [stderr] 42 | fn main() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `index` [INFO] [stderr] --> core/src/level/block.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | index: usize, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `wedge_core` (lib) generated 55 warnings [INFO] [stderr] warning: `wedge_core` (lib test) generated 23 warnings (22 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: js-sys v0.3.25 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/wedge_core-488abc171158da41) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/wedge_desktop-7789cd3343c8d7ca) [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/wedge_web-2e0bbcd009091349) [INFO] [stdout] [INFO] [stderr] Doc-tests wedge_core [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "28d9e5d59d807537b8867334dc62ab37ecd9337aa013ae733a3be00d4e9b08bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28d9e5d59d807537b8867334dc62ab37ecd9337aa013ae733a3be00d4e9b08bf", kill_on_drop: false }` [INFO] [stdout] 28d9e5d59d807537b8867334dc62ab37ecd9337aa013ae733a3be00d4e9b08bf