[INFO] cloning repository https://github.com/MeloenCoding/win32-d3d11 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MeloenCoding/win32-d3d11" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeloenCoding%2Fwin32-d3d11", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeloenCoding%2Fwin32-d3d11'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d468901a362606610268b5a80d682a1eaa1cf9f8 [INFO] checking MeloenCoding/win32-d3d11/d468901a362606610268b5a80d682a1eaa1cf9f8 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeloenCoding%2Fwin32-d3d11" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MeloenCoding/win32-d3d11 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MeloenCoding/win32-d3d11 [INFO] finished tweaking git repo https://github.com/MeloenCoding/win32-d3d11 [INFO] tweaked toml for git repo https://github.com/MeloenCoding/win32-d3d11 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MeloenCoding/win32-d3d11 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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2438c5546a31e60795fd55431e97714dbd08730165614c40bc1f2217a24e15c [INFO] running `Command { std: "docker" "start" "-a" "e2438c5546a31e60795fd55431e97714dbd08730165614c40bc1f2217a24e15c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2438c5546a31e60795fd55431e97714dbd08730165614c40bc1f2217a24e15c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2438c5546a31e60795fd55431e97714dbd08730165614c40bc1f2217a24e15c", kill_on_drop: false }` [INFO] [stdout] e2438c5546a31e60795fd55431e97714dbd08730165614c40bc1f2217a24e15c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e3c605998a1e4b6d975a877f8b3d40463ad42df1b872448180bf8a1072ad2b3 [INFO] running `Command { std: "docker" "start" "-a" "1e3c605998a1e4b6d975a877f8b3d40463ad42df1b872448180bf8a1072ad2b3", kill_on_drop: false }` [INFO] [stderr] Compiling windows_x86_64_gnu v0.48.0 [INFO] [stderr] Compiling directx_math v0.2.2 [INFO] [stderr] Checking windows-targets v0.48.0 [INFO] [stderr] Checking windows v0.48.0 [INFO] [stderr] Checking win32-d3d11 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `D3D11_CPU_ACCESS_READ` and `D3D11_DEPTH_WRITE_MASK` [INFO] [stdout] --> src/window/graphics.rs:22:182 [INFO] [stdout] | [INFO] [stdout] 22 | ...UFFER, D3D11_CPU_ACCESS_WRITE, D3D11_CPU_ACCESS_READ, D3D11_DEPTH_STENCIL_DESC, D3D11_DEPTH_WRITE_MASK, D3D11_DEPTH_WRITE_MASK_ALL, D3... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::loc` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::loc; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::window::errors` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::window::errors; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::window::graphics::FLOAT3` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::window::graphics::FLOAT3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows::Win32::Graphics::Direct3D11::D3D11_BIND_VERTEX_BUFFER` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows::Win32::Graphics::Direct3D11::D3D11_BIND_VERTEX_BUFFER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows::Win32::Graphics::Direct3D11::D3D11_CPU_ACCESS_FLAG` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use windows::Win32::Graphics::Direct3D11::D3D11_CPU_ACCESS_FLAG; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows::Win32::Graphics::Direct3D11::D3D11_RESOURCE_MISC_FLAG` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use windows::Win32::Graphics::Direct3D11::D3D11_RESOURCE_MISC_FLAG; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows::Win32::Graphics::Direct3D11::D3D11_USAGE_DEFAULT` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::Win32::Graphics::Direct3D11::D3D11_USAGE_DEFAULT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `D3D11_CPU_ACCESS_READ` and `D3D11_DEPTH_WRITE_MASK` [INFO] [stdout] --> src/window/graphics.rs:22:182 [INFO] [stdout] | [INFO] [stdout] 22 | ...UFFER, D3D11_CPU_ACCESS_WRITE, D3D11_CPU_ACCESS_READ, D3D11_DEPTH_STENCIL_DESC, D3D11_DEPTH_WRITE_MASK, D3D11_DEPTH_WRITE_MASK_ALL, D3... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::loc` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::loc; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::window::errors` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::window::errors; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::window::graphics::FLOAT3` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::window::graphics::FLOAT3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows::Win32::Graphics::Direct3D11::D3D11_BIND_VERTEX_BUFFER` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows::Win32::Graphics::Direct3D11::D3D11_BIND_VERTEX_BUFFER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows::Win32::Graphics::Direct3D11::D3D11_CPU_ACCESS_FLAG` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use windows::Win32::Graphics::Direct3D11::D3D11_CPU_ACCESS_FLAG; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows::Win32::Graphics::Direct3D11::D3D11_RESOURCE_MISC_FLAG` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use windows::Win32::Graphics::Direct3D11::D3D11_RESOURCE_MISC_FLAG; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows::Win32::Graphics::Direct3D11::D3D11_USAGE_DEFAULT` [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use windows::Win32::Graphics::Direct3D11::D3D11_USAGE_DEFAULT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `instance`, `class_name`, `atom`, and `class` are never read [INFO] [stdout] --> src/window.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Window<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 74 | pub instance: HMODULE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 75 | pub class_name: PCSTR, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | pub atom: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub class: WNDCLASSEXA, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `column` is never read [INFO] [stdout] --> src/window/errors.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct CallLocation { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub column: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CallLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `origin` is never read [INFO] [stdout] --> src/window/errors/window.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct WindowError { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 3 | pub details: String, [INFO] [stdout] 4 | pub origin: super::CallLocation, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WindowError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `z` are never read [INFO] [stdout] --> src/window/graphics.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct FLOAT3 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 61 | x: f32, [INFO] [stdout] | ^ [INFO] [stdout] 62 | y: f32, [INFO] [stdout] | ^ [INFO] [stdout] 63 | z: f32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `r`, `g`, `b`, and `a` are never read [INFO] [stdout] --> src/window/graphics.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct RGBA { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 67 | r: f32, [INFO] [stdout] | ^ [INFO] [stdout] 68 | g: f32, [INFO] [stdout] | ^ [INFO] [stdout] 69 | b: f32, [INFO] [stdout] | ^ [INFO] [stdout] 70 | a: f32 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `rgba_norm` and `draw_sample_text` are never used [INFO] [stdout] --> src/window/graphics.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl Graphics { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn rgba_norm(r: u8, g: u8, b: u8, a: f32) -> [f32; 4] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn draw_sample_text(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VertexBuffer` is never constructed [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VertexBuffer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key_state` and `key_code` are never read [INFO] [stdout] --> src/window/keyboard.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct KeyEvent { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 27 | pub key_state: KeyState, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | pub key_code: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mouse_state`, `left_pressed`, `right_pressed`, `wheel_pressed`, `x`, and `y` are never read [INFO] [stdout] --> src/window/mouse.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct MouseEvent { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 18 | pub mouse_state: MouseState, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | pub left_pressed: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 20 | pub right_pressed: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub wheel_pressed: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub x: i16, [INFO] [stdout] | ^ [INFO] [stdout] 23 | pub y: i16, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `MouseEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/window.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | io::KEYBOARD.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | io::MOUSE.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:232:32 [INFO] [stdout] | [INFO] [stdout] 232 | keyboard: unsafe { &mut io::KEYBOARD }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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] 232 | keyboard: unsafe { &raw mut io::KEYBOARD }, [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/window.rs:233:29 [INFO] [stdout] | [INFO] [stdout] 233 | mouse: unsafe { &mut io::MOUSE }, [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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] 233 | mouse: unsafe { &raw mut io::MOUSE }, [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/window.rs:279:21 [INFO] [stdout] | [INFO] [stdout] 279 | io::KEYBOARD.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:290:21 [INFO] [stdout] | [INFO] [stdout] 290 | io::KEYBOARD.on_char(wparam.0 as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:297:25 [INFO] [stdout] | [INFO] [stdout] 297 | io::KEYBOARD.enable_auto_repeat(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:299:21 [INFO] [stdout] | [INFO] [stdout] 299 | io::KEYBOARD.on_key_press(wparam.0 as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:302:21 [INFO] [stdout] | [INFO] [stdout] 302 | io::KEYBOARD.disable_auto_repeat(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:303:21 [INFO] [stdout] | [INFO] [stdout] 303 | io::KEYBOARD.on_key_release(wparam.0 as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:314:25 [INFO] [stdout] | [INFO] [stdout] 314 | io::MOUSE.on_mouse_move(points); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | ... io::MOUSE.on_mouse_enter(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:326:29 [INFO] [stdout] | [INFO] [stdout] 326 | ... io::MOUSE.on_mouse_move(points); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | ... io::MOUSE.on_mouse_leave(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | io::MOUSE.on_left_press(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:337:21 [INFO] [stdout] | [INFO] [stdout] 337 | io::MOUSE.on_left_release(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:340:21 [INFO] [stdout] | [INFO] [stdout] 340 | io::MOUSE.on_right_release(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:343:21 [INFO] [stdout] | [INFO] [stdout] 343 | io::MOUSE.on_right_press(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:347:21 [INFO] [stdout] | [INFO] [stdout] 347 | io::MOUSE.on_wheel_press(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:350:21 [INFO] [stdout] | [INFO] [stdout] 350 | io::MOUSE.on_wheel_release(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:356:21 [INFO] [stdout] | [INFO] [stdout] 356 | io::MOUSE.on_wheel_delta(points.x, points.y, delta); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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: constant `cb2` should have an upper case name [INFO] [stdout] --> src/window/graphics.rs:376:15 [INFO] [stdout] | [INFO] [stdout] 376 | const cb2: CB2 = CB2 { [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `CB2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `instance`, `class_name`, `atom`, and `class` are never read [INFO] [stdout] --> src/window.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Window<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 74 | pub instance: HMODULE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 75 | pub class_name: PCSTR, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | pub atom: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub class: WNDCLASSEXA, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `column` is never read [INFO] [stdout] --> src/window/errors.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct CallLocation { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub column: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CallLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `origin` is never read [INFO] [stdout] --> src/window/errors/window.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct WindowError { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 3 | pub details: String, [INFO] [stdout] 4 | pub origin: super::CallLocation, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WindowError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `z` are never read [INFO] [stdout] --> src/window/graphics.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct FLOAT3 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 61 | x: f32, [INFO] [stdout] | ^ [INFO] [stdout] 62 | y: f32, [INFO] [stdout] | ^ [INFO] [stdout] 63 | z: f32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `r`, `g`, `b`, and `a` are never read [INFO] [stdout] --> src/window/graphics.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct RGBA { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 67 | r: f32, [INFO] [stdout] | ^ [INFO] [stdout] 68 | g: f32, [INFO] [stdout] | ^ [INFO] [stdout] 69 | b: f32, [INFO] [stdout] | ^ [INFO] [stdout] 70 | a: f32 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `rgba_norm` and `draw_sample_text` are never used [INFO] [stdout] --> src/window/graphics.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 79 | impl Graphics { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | fn rgba_norm(r: u8, g: u8, b: u8, a: f32) -> [f32; 4] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn draw_sample_text(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VertexBuffer` is never constructed [INFO] [stdout] --> src/window/graphics/bindable/vertexbuffer.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct VertexBuffer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key_state` and `key_code` are never read [INFO] [stdout] --> src/window/keyboard.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct KeyEvent { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 27 | pub key_state: KeyState, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 28 | pub key_code: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mouse_state`, `left_pressed`, `right_pressed`, `wheel_pressed`, `x`, and `y` are never read [INFO] [stdout] --> src/window/mouse.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct MouseEvent { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 18 | pub mouse_state: MouseState, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | pub left_pressed: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 20 | pub right_pressed: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | pub wheel_pressed: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub x: i16, [INFO] [stdout] | ^ [INFO] [stdout] 23 | pub y: i16, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `MouseEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/window.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | io::KEYBOARD.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | io::MOUSE.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:232:32 [INFO] [stdout] | [INFO] [stdout] 232 | keyboard: unsafe { &mut io::KEYBOARD }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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] 232 | keyboard: unsafe { &raw mut io::KEYBOARD }, [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/window.rs:233:29 [INFO] [stdout] | [INFO] [stdout] 233 | mouse: unsafe { &mut io::MOUSE }, [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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] 233 | mouse: unsafe { &raw mut io::MOUSE }, [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/window.rs:279:21 [INFO] [stdout] | [INFO] [stdout] 279 | io::KEYBOARD.reset(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:290:21 [INFO] [stdout] | [INFO] [stdout] 290 | io::KEYBOARD.on_char(wparam.0 as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:297:25 [INFO] [stdout] | [INFO] [stdout] 297 | io::KEYBOARD.enable_auto_repeat(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:299:21 [INFO] [stdout] | [INFO] [stdout] 299 | io::KEYBOARD.on_key_press(wparam.0 as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:302:21 [INFO] [stdout] | [INFO] [stdout] 302 | io::KEYBOARD.disable_auto_repeat(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:303:21 [INFO] [stdout] | [INFO] [stdout] 303 | io::KEYBOARD.on_key_release(wparam.0 as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:314:25 [INFO] [stdout] | [INFO] [stdout] 314 | io::MOUSE.on_mouse_move(points); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | ... io::MOUSE.on_mouse_enter(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:326:29 [INFO] [stdout] | [INFO] [stdout] 326 | ... io::MOUSE.on_mouse_move(points); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | ... io::MOUSE.on_mouse_leave(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | io::MOUSE.on_left_press(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:337:21 [INFO] [stdout] | [INFO] [stdout] 337 | io::MOUSE.on_left_release(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:340:21 [INFO] [stdout] | [INFO] [stdout] 340 | io::MOUSE.on_right_release(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:343:21 [INFO] [stdout] | [INFO] [stdout] 343 | io::MOUSE.on_right_press(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:347:21 [INFO] [stdout] | [INFO] [stdout] 347 | io::MOUSE.on_wheel_press(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:350:21 [INFO] [stdout] | [INFO] [stdout] 350 | io::MOUSE.on_wheel_release(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/window.rs:356:21 [INFO] [stdout] | [INFO] [stdout] 356 | io::MOUSE.on_wheel_delta(points.x, points.y, delta); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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: constant `cb2` should have an upper case name [INFO] [stdout] --> src/window/graphics.rs:376:15 [INFO] [stdout] | [INFO] [stdout] 376 | const cb2: CB2 = CB2 { [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `CB2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.02s [INFO] running `Command { std: "docker" "inspect" "1e3c605998a1e4b6d975a877f8b3d40463ad42df1b872448180bf8a1072ad2b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e3c605998a1e4b6d975a877f8b3d40463ad42df1b872448180bf8a1072ad2b3", kill_on_drop: false }` [INFO] [stdout] 1e3c605998a1e4b6d975a877f8b3d40463ad42df1b872448180bf8a1072ad2b3