[INFO] cloning repository https://github.com/RainerBlessing/wasm_snake
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RainerBlessing/wasm_snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRainerBlessing%2Fwasm_snake", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRainerBlessing%2Fwasm_snake'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 376f6824f3dcaa7e7728abe3fdfefc8b13d99c78
[INFO] testing RainerBlessing/wasm_snake against 1.85.0 for beta-1.86-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRainerBlessing%2Fwasm_snake" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/RainerBlessing/wasm_snake on toolchain 1.85.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/RainerBlessing/wasm_snake
[INFO] finished tweaking git repo https://github.com/RainerBlessing/wasm_snake
[INFO] tweaked toml for git repo https://github.com/RainerBlessing/wasm_snake written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/RainerBlessing/wasm_snake 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" "+1.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded wasm-bindgen-shared v0.2.47
[INFO] [stderr]   Downloaded memchr v2.2.0
[INFO] [stderr]   Downloaded weedle v0.9.0
[INFO] [stderr]   Downloaded failure_derive v0.1.5
[INFO] [stderr]   Downloaded rand_core v0.4.0
[INFO] [stderr]   Downloaded wasm-bindgen-backend v0.2.47
[INFO] [stderr]   Downloaded autocfg v0.1.4
[INFO] [stderr]   Downloaded failure v0.1.5
[INFO] [stderr]   Downloaded js-sys v0.3.24
[INFO] [stderr]   Downloaded cc v1.0.37
[INFO] [stderr]   Downloaded unicode-segmentation v1.3.0
[INFO] [stderr]   Downloaded wasm-bindgen v0.2.47
[INFO] [stderr]   Downloaded bumpalo v2.4.3
[INFO] [stderr]   Downloaded syn v0.15.39
[INFO] [stderr]   Downloaded web-sys v0.3.24
[INFO] [stderr]   Downloaded backtrace v0.3.32
[INFO] [stderr]   Downloaded log v0.4.6
[INFO] [stderr]   Downloaded wasm-bindgen-macro-support v0.2.47
[INFO] [stderr]   Downloaded wasm-bindgen-macro v0.2.47
[INFO] [stderr]   Downloaded rustc-demangle v0.1.15
[INFO] [stderr]   Downloaded libc v0.2.58
[INFO] [stderr]   Downloaded synstructure v0.10.2
[INFO] [stderr]   Downloaded quote v0.6.12
[INFO] [stderr]   Downloaded wasm-bindgen-webidl v0.2.47
[INFO] [stderr]   Downloaded backtrace-sys v0.1.29
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cf1cbdf81e51252afbf251abd39ee026ddf64ef30a69026e3c16b144d6718854
[INFO] running `Command { std: "docker" "start" "-a" "cf1cbdf81e51252afbf251abd39ee026ddf64ef30a69026e3c16b144d6718854", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cf1cbdf81e51252afbf251abd39ee026ddf64ef30a69026e3c16b144d6718854", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cf1cbdf81e51252afbf251abd39ee026ddf64ef30a69026e3c16b144d6718854", kill_on_drop: false }`
[INFO] [stdout] cf1cbdf81e51252afbf251abd39ee026ddf64ef30a69026e3c16b144d6718854
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 32914e13e6b0a3488491f07b518fea1c524f2af8dbddc8ee2776a24653bdd43e
[INFO] running `Command { std: "docker" "start" "-a" "32914e13e6b0a3488491f07b518fea1c524f2af8dbddc8ee2776a24653bdd43e", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v0.4.30
[INFO] [stderr]    Compiling unicode-xid v0.1.0
[INFO] [stderr]    Compiling syn v0.15.39
[INFO] [stderr]    Compiling cfg-if v0.1.9
[INFO] [stderr]    Compiling libc v0.2.58
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.47
[INFO] [stderr]    Compiling lazy_static v1.3.0
[INFO] [stderr]    Compiling bumpalo v2.4.3
[INFO] [stderr]    Compiling cc v1.0.37
[INFO] [stderr]    Compiling autocfg v0.1.4
[INFO] [stderr]    Compiling rand_core v0.4.0
[INFO] [stderr]    Compiling memchr v2.2.0
[INFO] [stderr]    Compiling version_check v0.1.5
[INFO] [stderr]    Compiling failure_derive v0.1.5
[INFO] [stderr]    Compiling rustc-demangle v0.1.15
[INFO] [stderr]    Compiling unicode-segmentation v1.3.0
[INFO] [stderr]    Compiling log v0.4.6
[INFO] [stderr]    Compiling wasm-bindgen v0.2.47
[INFO] [stderr]    Compiling sourcefile v0.1.4
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling nom v4.2.3
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling rand_isaac v0.1.1
[INFO] [stderr]    Compiling heck v0.3.1
[INFO] [stderr]    Compiling rand_hc v0.1.0
[INFO] [stderr]    Compiling rand_xorshift v0.1.1
[INFO] [stderr]    Compiling rand_jitter v0.1.4
[INFO] [stderr]    Compiling backtrace-sys v0.1.29
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling quote v0.6.12
[INFO] [stderr]    Compiling weedle v0.9.0
[INFO] [stderr]    Compiling backtrace v0.3.32
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.47
[INFO] [stderr]    Compiling synstructure v0.10.2
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.47
[INFO] [stderr]    Compiling failure v0.1.5
[INFO] [stderr]    Compiling wasm-bindgen-webidl v0.2.47
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.47
[INFO] [stderr]    Compiling web-sys v0.3.24
[INFO] [stderr]    Compiling js-sys v0.3.24
[INFO] [stderr]    Compiling canvas v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/canvas.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/canvas.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HtmlCanvasElement`
[INFO] [stdout]   --> src/canvas.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 |     HtmlCanvasElement,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `cell::Cell`, `cell::RefCell`, and `rc::Rc`
[INFO] [stdout]   --> src/canvas.rs:22:11
[INFO] [stdout]    |
[INFO] [stdout] 22 | use std::{rc::Rc, cell::RefCell, cell::Cell};
[INFO] [stdout]    |           ^^^^^^  ^^^^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*`
[INFO] [stdout]  --> src/snake.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use wasm_bindgen::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `console_log`
[INFO] [stdout]   --> src/lib.rs:20:14
[INFO] [stdout]    |
[INFO] [stdout] 20 | macro_rules! console_log {
[INFO] [stdout]    |              ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_macros)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/canvas.rs:191:23
[INFO] [stdout]     |
[INFO] [stdout] 191 |             }) as Box<FnMut(KeyboardEvent)>);
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 191 |             }) as Box<dyn FnMut(KeyboardEvent)>);
[INFO] [stdout]     |                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `text`
[INFO] [stdout]   --> src/canvas.rs:83:41
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn create_score_text(&mut self, text: &str) -> () {
[INFO] [stdout]    |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_text`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]    --> src/canvas.rs:261:25
[INFO] [stdout]     |
[INFO] [stdout] 261 | pub fn on_key(key: u32, state: bool) {
[INFO] [stdout]     |                         ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start_time`
[INFO] [stdout]   --> src/lib.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let start_time = perf.now();
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `perf_to_system` is never used
[INFO] [stdout]   --> src/lib.rs:54:4
[INFO] [stdout]    |
[INFO] [stdout] 54 | fn perf_to_system(amt: f64) -> SystemTime {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Keyboard` is never used
[INFO] [stdout]   --> src/constants.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub enum Keyboard {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Keyboard` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `canvas`, `frame_delay`, and `ticks` are never read
[INFO] [stdout]   --> src/canvas.rs:37:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub struct JSCanvas {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 36 |     context: web_sys::CanvasRenderingContext2d,
[INFO] [stdout] 37 |     canvas: web_sys::HtmlCanvasElement,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 38 |     frame_delay: i32,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 39 |     ticks: i32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `HEIGHT` is never used
[INFO] [stdout]   --> src/canvas.rs:46:7
[INFO] [stdout]    |
[INFO] [stdout] 46 | const HEIGHT: u32 = 800;
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Canvas` is never used
[INFO] [stdout]   --> src/canvas.rs:52:7
[INFO] [stdout]    |
[INFO] [stdout] 52 | trait Canvas {}
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `create_score_text` and `parse_event` are never used
[INFO] [stdout]    --> src/canvas.rs:83:12
[INFO] [stdout]     |
[INFO] [stdout] 57  | impl JSCanvas {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 83  |     pub fn create_score_text(&mut self, text: &str) -> () {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 143 |     fn parse_event(&mut self, snake_event: SnakeEvent) -> () {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SnakeEvent` is never constructed
[INFO] [stdout]  --> src/events.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct SnakeEvent {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `get_key` are never used
[INFO] [stdout]   --> src/events.rs:11:16
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl SnakeEvent {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] 11 |         pub fn new(key_code: u32) -> SnakeEvent {
[INFO] [stdout]    |                ^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     pub fn get_key(&self) -> Keyboard {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/snake.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | impl Snake {
[INFO] [stdout]    | ---------- associated function in this implementation
[INFO] [stdout] 29 |     pub fn new() -> Snake {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stdout]    --> src/canvas.rs:144:30
[INFO] [stdout]     |
[INFO] [stdout] 144 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: `#[warn(static_mut_refs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stdout]    --> src/canvas.rs:156:30
[INFO] [stdout]     |
[INFO] [stdout] 156 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stdout]    --> src/canvas.rs:185:30
[INFO] [stdout]     |
[INFO] [stdout] 185 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stdout]    --> src/canvas.rs:267:26
[INFO] [stdout]     |
[INFO] [stdout] 267 |     let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.81s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3, wasm-bindgen v0.2.47
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "32914e13e6b0a3488491f07b518fea1c524f2af8dbddc8ee2776a24653bdd43e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "32914e13e6b0a3488491f07b518fea1c524f2af8dbddc8ee2776a24653bdd43e", kill_on_drop: false }`
[INFO] [stdout] 32914e13e6b0a3488491f07b518fea1c524f2af8dbddc8ee2776a24653bdd43e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1e9eb2a17c50948538837361084245ee7eb841824551bd45b41bc830820b0ea9
[INFO] running `Command { std: "docker" "start" "-a" "1e9eb2a17c50948538837361084245ee7eb841824551bd45b41bc830820b0ea9", kill_on_drop: false }`
[INFO] [stderr]    Compiling canvas v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/canvas.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/canvas.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HtmlCanvasElement`
[INFO] [stdout]   --> src/canvas.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 |     HtmlCanvasElement,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `cell::Cell`, `cell::RefCell`, and `rc::Rc`
[INFO] [stdout]   --> src/canvas.rs:22:11
[INFO] [stdout]    |
[INFO] [stdout] 22 | use std::{rc::Rc, cell::RefCell, cell::Cell};
[INFO] [stdout]    |           ^^^^^^  ^^^^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*`
[INFO] [stdout]  --> src/snake.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use wasm_bindgen::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `console_log`
[INFO] [stdout]   --> src/lib.rs:20:14
[INFO] [stdout]    |
[INFO] [stdout] 20 | macro_rules! console_log {
[INFO] [stdout]    |              ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_macros)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/canvas.rs:191:23
[INFO] [stdout]     |
[INFO] [stdout] 191 |             }) as Box<FnMut(KeyboardEvent)>);
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 191 |             }) as Box<dyn FnMut(KeyboardEvent)>);
[INFO] [stdout]     |                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `text`
[INFO] [stdout]   --> src/canvas.rs:83:41
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub fn create_score_text(&mut self, text: &str) -> () {
[INFO] [stdout]    |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_text`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]    --> src/canvas.rs:261:25
[INFO] [stdout]     |
[INFO] [stdout] 261 | pub fn on_key(key: u32, state: bool) {
[INFO] [stdout]     |                         ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `start_time`
[INFO] [stdout]   --> src/lib.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let start_time = perf.now();
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `perf_to_system` is never used
[INFO] [stdout]   --> src/lib.rs:54:4
[INFO] [stdout]    |
[INFO] [stdout] 54 | fn perf_to_system(amt: f64) -> SystemTime {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Keyboard` is never used
[INFO] [stdout]   --> src/constants.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub enum Keyboard {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Keyboard` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `canvas`, `frame_delay`, and `ticks` are never read
[INFO] [stdout]   --> src/canvas.rs:37:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub struct JSCanvas {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 36 |     context: web_sys::CanvasRenderingContext2d,
[INFO] [stdout] 37 |     canvas: web_sys::HtmlCanvasElement,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 38 |     frame_delay: i32,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 39 |     ticks: i32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `HEIGHT` is never used
[INFO] [stdout]   --> src/canvas.rs:46:7
[INFO] [stdout]    |
[INFO] [stdout] 46 | const HEIGHT: u32 = 800;
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Canvas` is never used
[INFO] [stdout]   --> src/canvas.rs:52:7
[INFO] [stdout]    |
[INFO] [stdout] 52 | trait Canvas {}
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `create_score_text` and `parse_event` are never used
[INFO] [stdout]    --> src/canvas.rs:83:12
[INFO] [stdout]     |
[INFO] [stdout] 57  | impl JSCanvas {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 83  |     pub fn create_score_text(&mut self, text: &str) -> () {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 143 |     fn parse_event(&mut self, snake_event: SnakeEvent) -> () {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SnakeEvent` is never constructed
[INFO] [stdout]  --> src/events.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct SnakeEvent {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `get_key` are never used
[INFO] [stdout]   --> src/events.rs:11:16
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl SnakeEvent {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] 11 |         pub fn new(key_code: u32) -> SnakeEvent {
[INFO] [stdout]    |                ^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     pub fn get_key(&self) -> Keyboard {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/snake.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | impl Snake {
[INFO] [stdout]    | ---------- associated function in this implementation
[INFO] [stdout] 29 |     pub fn new() -> Snake {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stdout]    --> src/canvas.rs:144:30
[INFO] [stdout]     |
[INFO] [stdout] 144 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: `#[warn(static_mut_refs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stdout]    --> src/canvas.rs:156:30
[INFO] [stdout]     |
[INFO] [stdout] 156 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stdout]    --> src/canvas.rs:185:30
[INFO] [stdout]     |
[INFO] [stdout] 185 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stdout]    --> src/canvas.rs:267:26
[INFO] [stdout]     |
[INFO] [stdout] 267 |     let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3, wasm-bindgen v0.2.47
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "1e9eb2a17c50948538837361084245ee7eb841824551bd45b41bc830820b0ea9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1e9eb2a17c50948538837361084245ee7eb841824551bd45b41bc830820b0ea9", kill_on_drop: false }`
[INFO] [stdout] 1e9eb2a17c50948538837361084245ee7eb841824551bd45b41bc830820b0ea9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 78e4722cf39ca1565cea3137c6705e23a99a25878c964a9f4eaec3cca95c8536
[INFO] running `Command { std: "docker" "start" "-a" "78e4722cf39ca1565cea3137c6705e23a99a25878c964a9f4eaec3cca95c8536", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::time::Duration`
[INFO] [stderr]  --> src/canvas.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::time::Duration;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::path::Path`
[INFO] [stderr]  --> src/canvas.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::path::Path;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `HtmlCanvasElement`
[INFO] [stderr]   --> src/canvas.rs:17:5
[INFO] [stderr]    |
[INFO] [stderr] 17 |     HtmlCanvasElement,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `cell::Cell`, `cell::RefCell`, and `rc::Rc`
[INFO] [stderr]   --> src/canvas.rs:22:11
[INFO] [stderr]    |
[INFO] [stderr] 22 | use std::{rc::Rc, cell::RefCell, cell::Cell};
[INFO] [stderr]    |           ^^^^^^  ^^^^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `wasm_bindgen::prelude::*`
[INFO] [stderr]  --> src/snake.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use wasm_bindgen::prelude::*;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused macro definition: `console_log`
[INFO] [stderr]   --> src/lib.rs:20:14
[INFO] [stderr]    |
[INFO] [stderr] 20 | macro_rules! console_log {
[INFO] [stderr]    |              ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_macros)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]    --> src/canvas.rs:191:23
[INFO] [stderr]     |
[INFO] [stderr] 191 |             }) as Box<FnMut(KeyboardEvent)>);
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr]     = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stderr]     |
[INFO] [stderr] 191 |             }) as Box<dyn FnMut(KeyboardEvent)>);
[INFO] [stderr]     |                       +++
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `text`
[INFO] [stderr]   --> src/canvas.rs:83:41
[INFO] [stderr]    |
[INFO] [stderr] 83 |     pub fn create_score_text(&mut self, text: &str) -> () {
[INFO] [stderr]    |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_text`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `state`
[INFO] [stderr]    --> src/canvas.rs:261:25
[INFO] [stderr]     |
[INFO] [stderr] 261 | pub fn on_key(key: u32, state: bool) {
[INFO] [stderr]     |                         ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `start_time`
[INFO] [stderr]   --> src/lib.rs:38:13
[INFO] [stderr]    |
[INFO] [stderr] 38 |         let start_time = perf.now();
[INFO] [stderr]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time`
[INFO] [stderr] 
[INFO] [stderr] warning: function `perf_to_system` is never used
[INFO] [stderr]   --> src/lib.rs:54:4
[INFO] [stderr]    |
[INFO] [stderr] 54 | fn perf_to_system(amt: f64) -> SystemTime {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: enum `Keyboard` is never used
[INFO] [stderr]   --> src/constants.rs:23:10
[INFO] [stderr]    |
[INFO] [stderr] 23 | pub enum Keyboard {
[INFO] [stderr]    |          ^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Keyboard` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: fields `canvas`, `frame_delay`, and `ticks` are never read
[INFO] [stderr]   --> src/canvas.rs:37:5
[INFO] [stderr]    |
[INFO] [stderr] 35 | pub struct JSCanvas {
[INFO] [stderr]    |            -------- fields in this struct
[INFO] [stderr] 36 |     context: web_sys::CanvasRenderingContext2d,
[INFO] [stderr] 37 |     canvas: web_sys::HtmlCanvasElement,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr] 38 |     frame_delay: i32,
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] 39 |     ticks: i32,
[INFO] [stderr]    |     ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `HEIGHT` is never used
[INFO] [stderr]   --> src/canvas.rs:46:7
[INFO] [stderr]    |
[INFO] [stderr] 46 | const HEIGHT: u32 = 800;
[INFO] [stderr]    |       ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: trait `Canvas` is never used
[INFO] [stderr]   --> src/canvas.rs:52:7
[INFO] [stderr]    |
[INFO] [stderr] 52 | trait Canvas {}
[INFO] [stderr]    |       ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `create_score_text` and `parse_event` are never used
[INFO] [stderr]    --> src/canvas.rs:83:12
[INFO] [stderr]     |
[INFO] [stderr] 57  | impl JSCanvas {
[INFO] [stderr]     | ------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 83  |     pub fn create_score_text(&mut self, text: &str) -> () {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 143 |     fn parse_event(&mut self, snake_event: SnakeEvent) -> () {
[INFO] [stderr]     |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `SnakeEvent` is never constructed
[INFO] [stderr]  --> src/events.rs:6:12
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct SnakeEvent {
[INFO] [stderr]   |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `get_key` are never used
[INFO] [stderr]   --> src/events.rs:11:16
[INFO] [stderr]    |
[INFO] [stderr] 10 | impl SnakeEvent {
[INFO] [stderr]    | --------------- associated items in this implementation
[INFO] [stderr] 11 |         pub fn new(key_code: u32) -> SnakeEvent {
[INFO] [stderr]    |                ^^^
[INFO] [stderr] ...
[INFO] [stderr] 16 |     pub fn get_key(&self) -> Keyboard {
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/snake.rs:29:12
[INFO] [stderr]    |
[INFO] [stderr] 28 | impl Snake {
[INFO] [stderr]    | ---------- associated function in this implementation
[INFO] [stderr] 29 |     pub fn new() -> Snake {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stderr]    --> src/canvas.rs:144:30
[INFO] [stderr]     |
[INFO] [stderr] 144 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr]     = note: `#[warn(static_mut_refs)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stderr]    --> src/canvas.rs:156:30
[INFO] [stderr]     |
[INFO] [stderr] 156 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stderr]    --> src/canvas.rs:185:30
[INFO] [stderr]     |
[INFO] [stderr] 185 |         let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stderr]     |                              ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr] 
[INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged
[INFO] [stderr]    --> src/canvas.rs:267:26
[INFO] [stderr]     |
[INFO] [stderr] 267 |     let snake = unsafe { SNAKE.as_mut().unwrap() };
[INFO] [stderr]     |                          ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stderr]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stderr] 
[INFO] [stderr] warning: `canvas` (lib test) generated 23 warnings (run `cargo fix --lib -p canvas --tests` to apply 6 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3, wasm-bindgen v0.2.47
[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 src/lib.rs (/opt/rustwide/target/debug/deps/canvas-6f623fba68435952)
[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" "78e4722cf39ca1565cea3137c6705e23a99a25878c964a9f4eaec3cca95c8536", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78e4722cf39ca1565cea3137c6705e23a99a25878c964a9f4eaec3cca95c8536", kill_on_drop: false }`
[INFO] [stdout] 78e4722cf39ca1565cea3137c6705e23a99a25878c964a9f4eaec3cca95c8536
