[INFO] cloning repository https://github.com/AtleSkaanes/cdraw
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AtleSkaanes/cdraw" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtleSkaanes%2Fcdraw", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtleSkaanes%2Fcdraw'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ea68038e8075ebca066b4f986a4a1c4bc738ff79
[INFO] checking AtleSkaanes/cdraw against master#3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0 for pr-143164
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtleSkaanes%2Fcdraw" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AtleSkaanes/cdraw
[INFO] finished tweaking git repo https://github.com/AtleSkaanes/cdraw
[INFO] tweaked toml for git repo https://github.com/AtleSkaanes/cdraw written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AtleSkaanes/cdraw on toolchain 3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AtleSkaanes/cdraw 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" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 60c64dd0f4607bc2f544a932814929c08c3d904f0bc866bb9c9410a6cbe9b757
[INFO] running `Command { std: "docker" "start" "-a" "60c64dd0f4607bc2f544a932814929c08c3d904f0bc866bb9c9410a6cbe9b757", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "60c64dd0f4607bc2f544a932814929c08c3d904f0bc866bb9c9410a6cbe9b757", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "60c64dd0f4607bc2f544a932814929c08c3d904f0bc866bb9c9410a6cbe9b757", kill_on_drop: false }`
[INFO] [stdout] 60c64dd0f4607bc2f544a932814929c08c3d904f0bc866bb9c9410a6cbe9b757
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+3129d37ef7075ee3cbaa3d6cbe1b5794f67192b0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 98eacf6b61ae6f209af0853e6ae6aff5c3d4573d56888aae9e3e6e386ad064e8
[INFO] running `Command { std: "docker" "start" "-a" "98eacf6b61ae6f209af0853e6ae6aff5c3d4573d56888aae9e3e6e386ad064e8", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling signal-hook v0.3.17
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]     Checking log v0.4.22
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling rustix v0.38.34
[INFO] [stderr]    Compiling cgmath v0.18.0
[INFO] [stderr]     Checking linux-raw-sys v0.4.14
[INFO] [stderr]     Checking bitflags v2.6.0
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking mio v1.0.1
[INFO] [stderr]     Checking approx v0.4.0
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking signal-hook-mio v0.2.4
[INFO] [stderr]     Checking crossterm v0.28.1
[INFO] [stderr]     Checking cdraw v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `fmt::Display`
[INFO] [stdout]  --> src/streamhandler.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fmt::Display,
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::default`
[INFO] [stdout]  --> src/ui/tool.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::default;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fmt::Display`
[INFO] [stdout]  --> src/streamhandler.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fmt::Display,
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::default`
[INFO] [stdout]  --> src/ui/tool.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::default;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `row`
[INFO] [stdout]    --> src/ui/mod.rs:128:58
[INFO] [stdout]     |
[INFO] [stdout] 128 | fn handle_ui_click(stream: &mut StreamHandler, col: u16, row: u16) -> std::io::Result<()> {
[INFO] [stdout]     |                                                          ^^^ help: if this is intentional, prefix it with an underscore: `_row`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_char` is never used
[INFO] [stdout]   --> src/streamhandler.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl StreamHandler {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 58 |     pub fn get_char(&self, layer: usize, col: u16, row: u16) -> Option<char> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `UNDO_LIST_MAX_SIZE` is never used
[INFO] [stdout]  --> src/ui/data.rs:3:7
[INFO] [stdout]   |
[INFO] [stdout] 3 | const UNDO_LIST_MAX_SIZE: usize = 1024;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `UNDO_LIST` is never used
[INFO] [stdout]  --> src/ui/data.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | static mut UNDO_LIST: VecDeque<Vec<(u16, u16, char, char)>> = VecDeque::new();
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `UNDO_PTR` is never used
[INFO] [stdout]  --> src/ui/data.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | static mut UNDO_PTR: usize = 0;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `push_to_undolist` is never used
[INFO] [stdout]   --> src/ui/data.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn push_to_undolist(stroke: Vec<(u16, u16, char, char)>) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_prev_undo` is never used
[INFO] [stdout]   --> src/ui/data.rs:26:8
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub fn get_prev_undo() -> Option<Vec<(u16, u16, char, char)>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_next_undo` is never used
[INFO] [stdout]   --> src/ui/data.rs:39:8
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub fn get_next_undo() -> Option<Vec<(u16, u16, char, char)>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `color` is never read
[INFO] [stdout]  --> src/ui/tool.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Tool {
[INFO] [stdout]   |            ---- field in this struct
[INFO] [stdout] 7 |     pub tool_type: ToolType,
[INFO] [stdout] 8 |     pub color: Color,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Tool` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_tool` is never used
[INFO] [stdout]   --> src/ui/tool.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub fn set_tool(tool: Tool) {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_to_stroke` is never used
[INFO] [stdout]   --> src/ui/tool.rs:74:8
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub fn add_to_stroke(col: u16, row: u16, from: char, to: char) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |             UNDO_LIST.make_contiguous();
[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
[INFO] [stdout]   --> src/ui/data.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |             UNDO_LIST.drain(..UNDO_PTR);
[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
[INFO] [stdout]   --> src/ui/data.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |         UNDO_LIST.push_front(stroke);
[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 shared reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |         if UNDO_LIST.len() > UNDO_LIST_MAX_SIZE {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             UNDO_LIST.pop_back();
[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 shared reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:28:24
[INFO] [stdout]    |
[INFO] [stdout] 28 |         if UNDO_PTR >= UNDO_LIST.len() {
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |         UNDO_LIST.get(UNDO_PTR).cloned()
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |         UNDO_LIST.get(UNDO_PTR).cloned()
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/tool.rs:55:14
[INFO] [stdout]    |
[INFO] [stdout] 55 |     unsafe { TOOL.clone() }
[INFO] [stdout]    |              ^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ui/tool.rs:59:14
[INFO] [stdout]    |
[INFO] [stdout] 59 |     unsafe { &mut TOOL }
[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] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 59 |     unsafe { &raw mut TOOL }
[INFO] [stdout]    |               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/tool.rs:76:29
[INFO] [stdout]    |
[INFO] [stdout] 76 |         TOOL.stroke = match &TOOL.stroke {
[INFO] [stdout]    |                             ^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 76 |         TOOL.stroke = match &raw const TOOL.stroke {
[INFO] [stdout]    |                              +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/tool.rs:89:22
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let stroke = TOOL.clone().stroke.unwrap_or_default();
[INFO] [stdout]    |                      ^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `row`
[INFO] [stdout]    --> src/ui/mod.rs:128:58
[INFO] [stdout]     |
[INFO] [stdout] 128 | fn handle_ui_click(stream: &mut StreamHandler, col: u16, row: u16) -> std::io::Result<()> {
[INFO] [stdout]     |                                                          ^^^ help: if this is intentional, prefix it with an underscore: `_row`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_char` is never used
[INFO] [stdout]   --> src/streamhandler.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl StreamHandler {
[INFO] [stdout]    | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 58 |     pub fn get_char(&self, layer: usize, col: u16, row: u16) -> Option<char> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `UNDO_LIST_MAX_SIZE` is never used
[INFO] [stdout]  --> src/ui/data.rs:3:7
[INFO] [stdout]   |
[INFO] [stdout] 3 | const UNDO_LIST_MAX_SIZE: usize = 1024;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `UNDO_LIST` is never used
[INFO] [stdout]  --> src/ui/data.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | static mut UNDO_LIST: VecDeque<Vec<(u16, u16, char, char)>> = VecDeque::new();
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `UNDO_PTR` is never used
[INFO] [stdout]  --> src/ui/data.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | static mut UNDO_PTR: usize = 0;
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `push_to_undolist` is never used
[INFO] [stdout]   --> src/ui/data.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn push_to_undolist(stroke: Vec<(u16, u16, char, char)>) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_prev_undo` is never used
[INFO] [stdout]   --> src/ui/data.rs:26:8
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub fn get_prev_undo() -> Option<Vec<(u16, u16, char, char)>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_next_undo` is never used
[INFO] [stdout]   --> src/ui/data.rs:39:8
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub fn get_next_undo() -> Option<Vec<(u16, u16, char, char)>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `color` is never read
[INFO] [stdout]  --> src/ui/tool.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Tool {
[INFO] [stdout]   |            ---- field in this struct
[INFO] [stdout] 7 |     pub tool_type: ToolType,
[INFO] [stdout] 8 |     pub color: Color,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Tool` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `set_tool` is never used
[INFO] [stdout]   --> src/ui/tool.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub fn set_tool(tool: Tool) {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_to_stroke` is never used
[INFO] [stdout]   --> src/ui/tool.rs:74:8
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub fn add_to_stroke(col: u16, row: u16, from: char, to: char) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:13:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |             UNDO_LIST.make_contiguous();
[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
[INFO] [stdout]   --> src/ui/data.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |             UNDO_LIST.drain(..UNDO_PTR);
[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
[INFO] [stdout]   --> src/ui/data.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |         UNDO_LIST.push_front(stroke);
[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 shared reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |         if UNDO_LIST.len() > UNDO_LIST_MAX_SIZE {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             UNDO_LIST.pop_back();
[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 shared reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:28:24
[INFO] [stdout]    |
[INFO] [stdout] 28 |         if UNDO_PTR >= UNDO_LIST.len() {
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |         UNDO_LIST.get(UNDO_PTR).cloned()
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/data.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |         UNDO_LIST.get(UNDO_PTR).cloned()
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/tool.rs:55:14
[INFO] [stdout]    |
[INFO] [stdout] 55 |     unsafe { TOOL.clone() }
[INFO] [stdout]    |              ^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/ui/tool.rs:59:14
[INFO] [stdout]    |
[INFO] [stdout] 59 |     unsafe { &mut TOOL }
[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] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 59 |     unsafe { &raw mut TOOL }
[INFO] [stdout]    |               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/tool.rs:76:29
[INFO] [stdout]    |
[INFO] [stdout] 76 |         TOOL.stroke = match &TOOL.stroke {
[INFO] [stdout]    |                             ^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 76 |         TOOL.stroke = match &raw const TOOL.stroke {
[INFO] [stdout]    |                              +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/ui/tool.rs:89:22
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let stroke = TOOL.clone().stroke.unwrap_or_default();
[INFO] [stdout]    |                      ^^^^^^^^^^^^ shared 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: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.75s
[INFO] running `Command { std: "docker" "inspect" "98eacf6b61ae6f209af0853e6ae6aff5c3d4573d56888aae9e3e6e386ad064e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "98eacf6b61ae6f209af0853e6ae6aff5c3d4573d56888aae9e3e6e386ad064e8", kill_on_drop: false }`
[INFO] [stdout] 98eacf6b61ae6f209af0853e6ae6aff5c3d4573d56888aae9e3e6e386ad064e8
