[INFO] cloning repository https://github.com/dtrebilco/TestLoad [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dtrebilco/TestLoad" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdtrebilco%2FTestLoad", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdtrebilco%2FTestLoad'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1919cf27b61114e3efeb0c4c626ed12cd13a65e8 [INFO] checking dtrebilco/TestLoad against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdtrebilco%2FTestLoad" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dtrebilco/TestLoad on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dtrebilco/TestLoad [INFO] finished tweaking git repo https://github.com/dtrebilco/TestLoad [INFO] tweaked toml for git repo https://github.com/dtrebilco/TestLoad written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dtrebilco/TestLoad 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking dtrebilco/TestLoad against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdtrebilco%2FTestLoad" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dtrebilco/TestLoad on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dtrebilco/TestLoad [INFO] finished tweaking git repo https://github.com/dtrebilco/TestLoad [INFO] tweaked toml for git repo https://github.com/dtrebilco/TestLoad written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dtrebilco/TestLoad 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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eac4e0b8feafcf1d1f39102901646abf6ee3d7b9e9c0235410366c3c793924b1 [INFO] running `Command { std: "docker" "start" "-a" "eac4e0b8feafcf1d1f39102901646abf6ee3d7b9e9c0235410366c3c793924b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eac4e0b8feafcf1d1f39102901646abf6ee3d7b9e9c0235410366c3c793924b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eac4e0b8feafcf1d1f39102901646abf6ee3d7b9e9c0235410366c3c793924b1", kill_on_drop: false }` [INFO] [stdout] eac4e0b8feafcf1d1f39102901646abf6ee3d7b9e9c0235410366c3c793924b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fbc08c610cf98b3c0d5229971933eef3f7b1c5d7864845af176d12fd1c99d3c [INFO] running `Command { std: "docker" "start" "-a" "2fbc08c610cf98b3c0d5229971933eef3f7b1c5d7864845af176d12fd1c99d3c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking windows-targets v0.42.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking windows-sys v0.45.0 [INFO] [stderr] Checking TestLoad v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `gl_target` [INFO] [stdout] --> src/sgfx.rs:2575:12 [INFO] [stdout] | [INFO] [stdout] 2575 | GLenum gl_target = _sg_gl_buffer_target(buf.cmn.type_val); [INFO] [stdout] | ^^^^^^^^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `_sg_buffer_common_init` in this scope [INFO] [stdout] --> src/sgfx.rs:2573:5 [INFO] [stdout] | [INFO] [stdout] 2573 | _sg_buffer_common_init(&buf.cmn, desc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sg_buffer_desc_defaults` in this scope [INFO] [stdout] --> src/sgfx.rs:2645:20 [INFO] [stdout] | [INFO] [stdout] 2645 | let desc_def = sg_buffer_desc_defaults(desc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::copy_from_nonoverlapping` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/particle_system.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | buffer.copy_from_nonoverlapping(data, size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/particle_system.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 202 | / unsafe fn copy_to_buffer(buffer: *mut u8, data: T) -> *mut u8 [INFO] [stdout] 203 | | where [INFO] [stdout] 204 | | T: Copy, [INFO] [stdout] | |________________^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/particle_system.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | buffer.add(size_of::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetCursorPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:466:19 [INFO] [stdout] | [INFO] [stdout] 466 | let res = GetCursorPos(&mut pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:455:1 [INFO] [stdout] | [INFO] [stdout] 455 | unsafe fn sapp_win32_lock_mouse(sapp: &mut SAppData, lock: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ClipCursor` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | ClipCursor(&client_rect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ShowCursor` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:483:9 [INFO] [stdout] | [INFO] [stdout] 483 | ShowCursor(FALSE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::RegisterRawInputDevices` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:493:12 [INFO] [stdout] | [INFO] [stdout] 493 | if RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as u32) != TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::RegisterRawInputDevices` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:507:12 [INFO] [stdout] | [INFO] [stdout] 507 | if RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as u32) != TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ClipCursor` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:512:9 [INFO] [stdout] | [INFO] [stdout] 512 | ClipCursor(std::ptr::null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ShowCursor` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:513:9 [INFO] [stdout] | [INFO] [stdout] 513 | ShowCursor(TRUE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetCursorPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:516:19 [INFO] [stdout] | [INFO] [stdout] 516 | let res = SetCursorPos(sapp.win32.mouse_locked_x, sapp.win32.mouse_locked_y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetCursorPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:580:8 [INFO] [stdout] | [INFO] [stdout] 580 | if GetCursorPos(&mut pos) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:578:1 [INFO] [stdout] | [INFO] [stdout] 578 | unsafe fn sapp_win32_cursor_in_content_area(sapp: &SAppData) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::WindowFromPoint` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:583:8 [INFO] [stdout] | [INFO] [stdout] 583 | if WindowFromPoint(pos) != sapp.win32.hwnd { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetClientRect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:592:5 [INFO] [stdout] | [INFO] [stdout] 592 | GetClientRect(sapp.win32.hwnd, &mut area); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::ClientToScreen` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:602:5 [INFO] [stdout] | [INFO] [stdout] 602 | ClientToScreen(sapp.win32.hwnd, &mut left_top); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::ClientToScreen` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:603:5 [INFO] [stdout] | [INFO] [stdout] 603 | ClientToScreen(sapp.win32.hwnd, &mut right_bottom); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::PtInRect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:608:12 [INFO] [stdout] | [INFO] [stdout] 608 | return PtInRect(&area, pos) == TRUE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::LoadLibraryA` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:638:18 [INFO] [stdout] | [INFO] [stdout] 638 | let user32 = LoadLibraryA(s!("user32.dll")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:633:1 [INFO] [stdout] | [INFO] [stdout] 633 | unsafe fn sapp_win32_dpi_changed(sapp: &mut SAppData, hwnd: HWND, proposed_win_rect: &RECT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:645:9 [INFO] [stdout] | [INFO] [stdout] 645 | std::mem::transmute(GetProcAddress(user32, s!("GetDpiForWindow"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:645:29 [INFO] [stdout] | [INFO] [stdout] 645 | std::mem::transmute(GetProcAddress(user32, s!("GetDpiForWindow"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:653:9 [INFO] [stdout] | [INFO] [stdout] 653 | / SetWindowPos( [INFO] [stdout] 654 | | hwnd, [INFO] [stdout] 655 | | 0, [INFO] [stdout] 656 | | proposed_win_rect.left, [INFO] [stdout] ... | [INFO] [stdout] 660 | | SWP_NOZORDER | SWP_NOACTIVATE, [INFO] [stdout] 661 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::FreeLibrary` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 663 | FreeLibrary(user32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::OpenClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:670:8 [INFO] [stdout] | [INFO] [stdout] 670 | if OpenClipboard(sapp.win32.hwnd) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:666:1 [INFO] [stdout] | [INFO] [stdout] 666 | unsafe fn sapp_win32_set_clipboard_string(sapp: &SAppData, str: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalAlloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:677:18 [INFO] [stdout] | [INFO] [stdout] 677 | let object = GlobalAlloc(GMEM_MOVEABLE, wchar_buf_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:679:9 [INFO] [stdout] | [INFO] [stdout] 679 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalLock` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:685:29 [INFO] [stdout] | [INFO] [stdout] 685 | let mut wchar_buf = GlobalLock(object) as *mut u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalFree` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:687:13 [INFO] [stdout] | [INFO] [stdout] 687 | GlobalFree(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:688:13 [INFO] [stdout] | [INFO] [stdout] 688 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:694:13 [INFO] [stdout] | [INFO] [stdout] 694 | *wchar_buf = val; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:695:25 [INFO] [stdout] | [INFO] [stdout] 695 | wchar_buf = wchar_buf.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:697:9 [INFO] [stdout] | [INFO] [stdout] 697 | *wchar_buf = 0; // Add null terminator [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalUnlock` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:699:9 [INFO] [stdout] | [INFO] [stdout] 699 | GlobalUnlock(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::EmptyClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:702:5 [INFO] [stdout] | [INFO] [stdout] 702 | EmptyClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::SetClipboardData` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:705:8 [INFO] [stdout] | [INFO] [stdout] 705 | if SetClipboardData(CF_UNICODETEXT as u32, object) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalFree` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:706:9 [INFO] [stdout] | [INFO] [stdout] 706 | GlobalFree(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:707:9 [INFO] [stdout] | [INFO] [stdout] 707 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:710:5 [INFO] [stdout] | [INFO] [stdout] 710 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::OpenClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:758:8 [INFO] [stdout] | [INFO] [stdout] 758 | if OpenClipboard(sapp.win32.hwnd) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:755:1 [INFO] [stdout] | [INFO] [stdout] 755 | unsafe fn sapp_win32_get_clipboard_string(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::GetClipboardData` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:763:18 [INFO] [stdout] | [INFO] [stdout] 763 | let object = GetClipboardData(CF_UNICODETEXT as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:765:9 [INFO] [stdout] | [INFO] [stdout] 765 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalLock` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:768:21 [INFO] [stdout] | [INFO] [stdout] 768 | let wchar_buf = GlobalLock(object) as *const u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:770:9 [INFO] [stdout] | [INFO] [stdout] 770 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalUnlock` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:783:5 [INFO] [stdout] | [INFO] [stdout] 783 | GlobalUnlock(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:784:5 [INFO] [stdout] | [INFO] [stdout] 784 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:842:9 [INFO] [stdout] | [INFO] [stdout] 842 | if (GetKeyState(VK_SHIFT as i32) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:840:1 [INFO] [stdout] | [INFO] [stdout] 840 | unsafe fn sapp_win32_mods() -> Modifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:845:9 [INFO] [stdout] | [INFO] [stdout] 845 | if (GetKeyState(VK_CONTROL as i32) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:848:9 [INFO] [stdout] | [INFO] [stdout] 848 | if (GetKeyState(VK_MENU as i32) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:851:10 [INFO] [stdout] | [INFO] [stdout] 851 | if ((GetKeyState(VK_LWIN as i32) | GetKeyState(VK_RWIN as i32)) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:851:40 [INFO] [stdout] | [INFO] [stdout] 851 | if ((GetKeyState(VK_LWIN as i32) | GetKeyState(VK_RWIN as i32)) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:854:27 [INFO] [stdout] | [INFO] [stdout] 854 | let swapped = TRUE == GetSystemMetrics(SM_SWAPBUTTON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetAsyncKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:855:8 [INFO] [stdout] | [INFO] [stdout] 855 | if GetAsyncKeyState(VK_LBUTTON as i32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetAsyncKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:863:8 [INFO] [stdout] | [INFO] [stdout] 863 | if GetAsyncKeyState(VK_RBUTTON as i32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetAsyncKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:870:8 [INFO] [stdout] | [INFO] [stdout] 870 | if GetAsyncKeyState(VK_MBUTTON as i32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetWindowLongPtrW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:882:16 [INFO] [stdout] | [INFO] [stdout] 882 | let sapp = GetWindowLongPtrW(window, GWLP_USERDATA) as *mut SApp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:876:1 [INFO] [stdout] | [INFO] [stdout] 876 | / unsafe extern "system" fn wndproc( [INFO] [stdout] 877 | | window: HWND, [INFO] [stdout] 878 | | message: u32, [INFO] [stdout] 879 | | wparam: WPARAM, [INFO] [stdout] 880 | | lparam: LPARAM, [INFO] [stdout] 881 | | ) -> LRESULT { [INFO] [stdout] | |____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::as_mut` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:883:22 [INFO] [stdout] | [INFO] [stdout] 883 | let sapp = match sapp.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DefWindowProcW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:885:21 [INFO] [stdout] | [INFO] [stdout] 885 | _ => return DefWindowProcW(window, message, wparam, lparam), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::PostQuitMessage` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:902:17 [INFO] [stdout] | [INFO] [stdout] 902 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_lock_mouse` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:939:17 [INFO] [stdout] | [INFO] [stdout] 939 | sapp_win32_lock_mouse(&mut sapp.base, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::const_ptr::::as_ref` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:959:33 [INFO] [stdout] | [INFO] [stdout] 959 | if let Some(rect) = rect.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_dpi_changed` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:960:17 [INFO] [stdout] | [INFO] [stdout] 960 | sapp_win32_dpi_changed(&mut sapp.base, window, rect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::TrackMouseEvent` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1022:21 [INFO] [stdout] | [INFO] [stdout] 1022 | TrackMouseEvent(&mut tme); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::GetRawInputData` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1040:24 [INFO] [stdout] | [INFO] [stdout] 1040 | != GetRawInputData( [INFO] [stdout] | ________________________^ [INFO] [stdout] 1041 | | ri, [INFO] [stdout] 1042 | | RID_INPUT, [INFO] [stdout] 1043 | | ptr, [INFO] [stdout] 1044 | | &mut size, [INFO] [stdout] 1045 | | std::mem::size_of::() as u32, [INFO] [stdout] 1046 | | ) [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1049:37 [INFO] [stdout] | [INFO] [stdout] 1049 | let raw_data = &(*raw_mouse_data).data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1050:25 [INFO] [stdout] | [INFO] [stdout] 1050 | if (raw_data.mouse.usFlags as u32 & MOUSE_MOVE_ABSOLUTE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1056:37 [INFO] [stdout] | [INFO] [stdout] 1056 | let new_x = raw_data.mouse.lLastX; [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1057:37 [INFO] [stdout] | [INFO] [stdout] 1057 | let new_y = raw_data.mouse.lLastY; [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1069:46 [INFO] [stdout] | [INFO] [stdout] 1069 | sapp.base.mouse.dx = raw_data.mouse.lLastX as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1070:46 [INFO] [stdout] | [INFO] [stdout] 1070 | sapp.base.mouse.dy = raw_data.mouse.lLastY as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_mods` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1147:25 [INFO] [stdout] | [INFO] [stdout] 1147 | && (sapp_win32_mods() == Modifier::Ctrl) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetTimer` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1164:13 [INFO] [stdout] | [INFO] [stdout] 1164 | SetTimer(sapp.base.win32.hwnd, 1, USER_TIMER_MINIMUM, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::KillTimer` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1167:13 [INFO] [stdout] | [INFO] [stdout] 1167 | KillTimer(sapp.base.win32.hwnd, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_wgl_swap_buffers` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1172:13 [INFO] [stdout] | [INFO] [stdout] 1172 | sapp_wgl_swap_buffers(&mut sapp.base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SendMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1180:16 [INFO] [stdout] | [INFO] [stdout] 1180 | if SendMessageW(sapp.base.win32.hwnd, WM_NCHITTEST, wparam, lparam) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetCursorPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1184:17 [INFO] [stdout] | [INFO] [stdout] 1184 | GetCursorPos(&mut point); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::ScreenToClient` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1185:17 [INFO] [stdout] | [INFO] [stdout] 1185 | ScreenToClient(sapp.base.win32.hwnd, &mut point); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::PostMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1186:17 [INFO] [stdout] | [INFO] [stdout] 1186 | / PostMessageW( [INFO] [stdout] 1187 | | sapp.base.win32.hwnd, [INFO] [stdout] 1188 | | WM_MOUSEMOVE, [INFO] [stdout] 1189 | | 0, [INFO] [stdout] 1190 | | ((point.x as u32) | ((point.y as u32) << 16)) as isize, [INFO] [stdout] 1191 | | ); [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DefWindowProcW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1198:12 [INFO] [stdout] | [INFO] [stdout] 1198 | return DefWindowProcW(window, message, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowLongPtrW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1204:5 [INFO] [stdout] | [INFO] [stdout] 1204 | SetWindowLongPtrW((*sapp).base.win32.hwnd, GWL_USERDATA, sapp as isize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1201:1 [INFO] [stdout] | [INFO] [stdout] 1201 | unsafe fn win32_process_loop(sapp: *mut SApp) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1204:23 [INFO] [stdout] | [INFO] [stdout] 1204 | SetWindowLongPtrW((*sapp).base.win32.hwnd, GWL_USERDATA, sapp as isize); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1207:21 [INFO] [stdout] | [INFO] [stdout] 1207 | while !done && !(*sapp).base.quit_ordered { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1220:9 [INFO] [stdout] | [INFO] [stdout] 1220 | (*sapp).frame(); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_wgl_swap_buffers` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1221:9 [INFO] [stdout] | [INFO] [stdout] 1221 | sapp_wgl_swap_buffers(&mut (*sapp).base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1221:36 [INFO] [stdout] | [INFO] [stdout] 1221 | sapp_wgl_swap_buffers(&mut (*sapp).base); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_update_dimensions` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1224:12 [INFO] [stdout] | [INFO] [stdout] 1224 | if sapp_win32_update_dimensions(&mut (*sapp).base) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1224:46 [INFO] [stdout] | [INFO] [stdout] 1224 | if sapp_win32_update_dimensions(&mut (*sapp).base) { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1225:13 [INFO] [stdout] | [INFO] [stdout] 1225 | (*sapp).call_event(&Event::Resized) [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1228:12 [INFO] [stdout] | [INFO] [stdout] 1228 | if (*sapp).base.quit_requested { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::PostMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1229:13 [INFO] [stdout] | [INFO] [stdout] 1229 | PostMessageW((*sapp).base.win32.hwnd, WM_CLOSE, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1229:26 [INFO] [stdout] | [INFO] [stdout] 1229 | PostMessageW((*sapp).base.win32.hwnd, WM_CLOSE, 0, 0); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowLongPtrW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1234:5 [INFO] [stdout] | [INFO] [stdout] 1234 | SetWindowLongPtrW((*sapp).base.win32.hwnd, GWL_USERDATA, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1234:23 [INFO] [stdout] | [INFO] [stdout] 1234 | SetWindowLongPtrW((*sapp).base.win32.hwnd, GWL_USERDATA, 0); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::LoadLibraryA` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1255:18 [INFO] [stdout] | [INFO] [stdout] 1255 | let user32 = LoadLibraryA(s!("user32.dll")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1237:1 [INFO] [stdout] | [INFO] [stdout] 1237 | unsafe fn sapp_win32_init_dpi(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1258:13 [INFO] [stdout] | [INFO] [stdout] 1258 | std::mem::transmute(GetProcAddress(user32, s!("SetProcessDPIAware"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1258:33 [INFO] [stdout] | [INFO] [stdout] 1258 | std::mem::transmute(GetProcAddress(user32, s!("SetProcessDPIAware"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1260:13 [INFO] [stdout] | [INFO] [stdout] 1260 | std::mem::transmute(GetProcAddress(user32, s!("SetProcessDpiAwarenessContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1260:33 [INFO] [stdout] | [INFO] [stdout] 1260 | std::mem::transmute(GetProcAddress(user32, s!("SetProcessDpiAwarenessContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::LoadLibraryA` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1262:18 [INFO] [stdout] | [INFO] [stdout] 1262 | let shcore = LoadLibraryA(s!("shcore.dll")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1265:13 [INFO] [stdout] | [INFO] [stdout] 1265 | std::mem::transmute(GetProcAddress(shcore, s!("SetProcessDpiAwareness"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1265:33 [INFO] [stdout] | [INFO] [stdout] 1265 | std::mem::transmute(GetProcAddress(shcore, s!("SetProcessDpiAwareness"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1267:13 [INFO] [stdout] | [INFO] [stdout] 1267 | std::mem::transmute(GetProcAddress(shcore, s!("GetDpiForMonitor"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1267:33 [INFO] [stdout] | [INFO] [stdout] 1267 | std::mem::transmute(GetProcAddress(shcore, s!("GetDpiForMonitor"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::MonitorFromPoint` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1303:32 [INFO] [stdout] | [INFO] [stdout] 1303 | let hm: HMONITOR = MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::FreeLibrary` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1323:9 [INFO] [stdout] | [INFO] [stdout] 1323 | FreeLibrary(user32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::FreeLibrary` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1326:9 [INFO] [stdout] | [INFO] [stdout] 1326 | FreeLibrary(shcore); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::MonitorFromWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1331:19 [INFO] [stdout] | [INFO] [stdout] 1331 | let monitor = MonitorFromWindow(sapp.win32.hwnd, MONITOR_DEFAULTTONEAREST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1330:1 [INFO] [stdout] | [INFO] [stdout] 1330 | unsafe fn sapp_win32_set_fullscreen(sapp: &mut SAppData, fullscreen: bool, swp_flags: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::GetMonitorInfoW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1348:5 [INFO] [stdout] | [INFO] [stdout] 1348 | GetMonitorInfoW(monitor, &mut minfo); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetWindowRect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1373:9 [INFO] [stdout] | [INFO] [stdout] 1373 | GetWindowRect(sapp.win32.hwnd, &mut sapp.win32.stored_window_rect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::AdjustWindowRectEx` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1379:9 [INFO] [stdout] | [INFO] [stdout] 1379 | AdjustWindowRectEx(&mut rect, win_style, FALSE, win_ex_style); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowLongPtrW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1385:5 [INFO] [stdout] | [INFO] [stdout] 1385 | SetWindowLongPtrW(sapp.win32.hwnd, GWL_STYLE, win_style as isize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1386:5 [INFO] [stdout] | [INFO] [stdout] 1386 | / SetWindowPos( [INFO] [stdout] 1387 | | sapp.win32.hwnd, [INFO] [stdout] 1388 | | HWND_TOP, [INFO] [stdout] 1389 | | win_x, [INFO] [stdout] ... | [INFO] [stdout] 1393 | | swp_flags | SWP_FRAMECHANGED, [INFO] [stdout] 1394 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetClientRect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1408:8 [INFO] [stdout] | [INFO] [stdout] 1408 | if GetClientRect(sapp.win32.hwnd, &mut rect) == TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1401:1 [INFO] [stdout] | [INFO] [stdout] 1401 | unsafe fn sapp_win32_update_dimensions(sapp: &mut SAppData) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetModuleHandleW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1441:20 [INFO] [stdout] | [INFO] [stdout] 1441 | let instance = GetModuleHandleW(std::ptr::null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1437:1 [INFO] [stdout] | [INFO] [stdout] 1437 | unsafe fn sapp_win32_create_window(desc: &SAppDesc, sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::LoadCursorW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1443:18 [INFO] [stdout] | [INFO] [stdout] 1443 | hCursor: LoadCursorW(0, IDC_ARROW), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::LoadIconW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1450:16 [INFO] [stdout] | [INFO] [stdout] 1450 | hIcon: LoadIconW(0, IDI_WINLOGO), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::RegisterClassW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1454:5 [INFO] [stdout] | [INFO] [stdout] 1454 | RegisterClassW(&wndclassw); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::AdjustWindowRectEx` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1484:5 [INFO] [stdout] | [INFO] [stdout] 1484 | AdjustWindowRectEx(&mut rect, win_style, FALSE, win_ex_style); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::CreateWindowExW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1503:23 [INFO] [stdout] | [INFO] [stdout] 1503 | sapp.win32.hwnd = CreateWindowExW( [INFO] [stdout] | _______________________^ [INFO] [stdout] 1504 | | win_ex_style, // dwExStyle [INFO] [stdout] 1505 | | w!("SOKOLAPP"), // lpClassName [INFO] [stdout] 1506 | | title.as_ptr(), // lpWindowName [INFO] [stdout] ... | [INFO] [stdout] 1523 | | std::ptr::null(), [INFO] [stdout] 1524 | | ); // lParam [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::GetDC` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1532:21 [INFO] [stdout] | [INFO] [stdout] 1532 | sapp.win32.dc = GetDC(sapp.win32.hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::MonitorFromWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1533:27 [INFO] [stdout] | [INFO] [stdout] 1533 | sapp.win32.hmonitor = MonitorFromWindow(sapp.win32.hwnd, MONITOR_DEFAULTTONULL); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_update_dimensions` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1546:5 [INFO] [stdout] | [INFO] [stdout] 1546 | sapp_win32_update_dimensions(sapp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_set_fullscreen` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1554:9 [INFO] [stdout] | [INFO] [stdout] 1554 | sapp_win32_set_fullscreen(sapp, sapp.fullscreen, SWP_HIDEWINDOW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_update_dimensions` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1555:9 [INFO] [stdout] | [INFO] [stdout] 1555 | sapp_win32_update_dimensions(sapp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ShowWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1557:5 [INFO] [stdout] | [INFO] [stdout] 1557 | ShowWindow(sapp.win32.hwnd, SW_SHOW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Shell::DragAcceptFiles` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1562:9 [INFO] [stdout] | [INFO] [stdout] 1562 | DragAcceptFiles(sapp.win32.hwnd, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::GetDC` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1706:14 [INFO] [stdout] | [INFO] [stdout] 1706 | let dc = GetDC(0); [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1660:1 [INFO] [stdout] | [INFO] [stdout] 1660 | unsafe fn sapp_win32_create_icon_from_image(desc: &SappImageDesc) -> HICON { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::CreateDIBSection` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1707:17 [INFO] [stdout] | [INFO] [stdout] 1707 | let color = CreateDIBSection( [INFO] [stdout] | _________________^ [INFO] [stdout] 1708 | | dc, [INFO] [stdout] 1709 | | &bi as *const BITMAPV5HEADER as *const BITMAPINFO, [INFO] [stdout] 1710 | | DIB_RGB_COLORS, [INFO] [stdout] ... | [INFO] [stdout] 1713 | | 0, [INFO] [stdout] 1714 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::ReleaseDC` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1715:5 [INFO] [stdout] | [INFO] [stdout] 1715 | ReleaseDC(0, dc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::CreateBitmap` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1721:16 [INFO] [stdout] | [INFO] [stdout] 1721 | let mask = CreateBitmap( [INFO] [stdout] | ________________^ [INFO] [stdout] 1722 | | desc.width as i32, [INFO] [stdout] 1723 | | desc.height as i32, [INFO] [stdout] 1724 | | 1, [INFO] [stdout] 1725 | | 1, [INFO] [stdout] 1726 | | std::ptr::null(), [INFO] [stdout] 1727 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::DeleteObject` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1729:9 [INFO] [stdout] | [INFO] [stdout] 1729 | DeleteObject(color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1737:9 [INFO] [stdout] | [INFO] [stdout] 1737 | *target.add(0) = *source.add(2); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1737:10 [INFO] [stdout] | [INFO] [stdout] 1737 | *target.add(0) = *source.add(2); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1737:26 [INFO] [stdout] | [INFO] [stdout] 1737 | *target.add(0) = *source.add(2); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1737:27 [INFO] [stdout] | [INFO] [stdout] 1737 | *target.add(0) = *source.add(2); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1738:9 [INFO] [stdout] | [INFO] [stdout] 1738 | *target.add(1) = *source.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1738:10 [INFO] [stdout] | [INFO] [stdout] 1738 | *target.add(1) = *source.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1738:26 [INFO] [stdout] | [INFO] [stdout] 1738 | *target.add(1) = *source.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1738:27 [INFO] [stdout] | [INFO] [stdout] 1738 | *target.add(1) = *source.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1739:9 [INFO] [stdout] | [INFO] [stdout] 1739 | *target.add(2) = *source.add(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1739:10 [INFO] [stdout] | [INFO] [stdout] 1739 | *target.add(2) = *source.add(0); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1739:26 [INFO] [stdout] | [INFO] [stdout] 1739 | *target.add(2) = *source.add(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1739:27 [INFO] [stdout] | [INFO] [stdout] 1739 | *target.add(2) = *source.add(0); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1740:9 [INFO] [stdout] | [INFO] [stdout] 1740 | *target.add(3) = *source.add(3); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1740:10 [INFO] [stdout] | [INFO] [stdout] 1740 | *target.add(3) = *source.add(3); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1740:26 [INFO] [stdout] | [INFO] [stdout] 1740 | *target.add(3) = *source.add(3); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1740:27 [INFO] [stdout] | [INFO] [stdout] 1740 | *target.add(3) = *source.add(3); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1742:18 [INFO] [stdout] | [INFO] [stdout] 1742 | target = target.add(4); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1743:18 [INFO] [stdout] | [INFO] [stdout] 1743 | source = source.add(4); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::CreateIconIndirect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1753:23 [INFO] [stdout] | [INFO] [stdout] 1753 | let icon_handle = CreateIconIndirect(&icon_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::DeleteObject` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1754:5 [INFO] [stdout] | [INFO] [stdout] 1754 | DeleteObject(color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::DeleteObject` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1755:5 [INFO] [stdout] | [INFO] [stdout] 1755 | DeleteObject(mask); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1813:9 [INFO] [stdout] | [INFO] [stdout] 1813 | GetSystemMetrics(SM_CXICON), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1808:1 [INFO] [stdout] | [INFO] [stdout] 1808 | unsafe fn sapp_win32_set_icon(sapp: &mut SAppData, icon_desc: &SappIconDesc, num_images: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1814:9 [INFO] [stdout] | [INFO] [stdout] 1814 | GetSystemMetrics(SM_CYICON), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1818:9 [INFO] [stdout] | [INFO] [stdout] 1818 | GetSystemMetrics(SM_CXSMICON), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1819:9 [INFO] [stdout] | [INFO] [stdout] 1819 | GetSystemMetrics(SM_CYSMICON), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_create_icon_from_image` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1821:20 [INFO] [stdout] | [INFO] [stdout] 1821 | let big_icon = sapp_win32_create_icon_from_image(&icon_desc.images[big_img_index as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_create_icon_from_image` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1822:20 [INFO] [stdout] | [INFO] [stdout] 1822 | let sml_icon = sapp_win32_create_icon_from_image(&icon_desc.images[sml_img_index as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SendMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1826:9 [INFO] [stdout] | [INFO] [stdout] 1826 | SendMessageW(sapp.win32.hwnd, WM_SETICON, ICON_BIG as usize, big_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyIcon` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1828:13 [INFO] [stdout] | [INFO] [stdout] 1828 | DestroyIcon(sapp.win32.big_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SendMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1833:9 [INFO] [stdout] | [INFO] [stdout] 1833 | SendMessageW(sapp.win32.hwnd, WM_SETICON, ICON_SMALL as usize, sml_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyIcon` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1835:13 [INFO] [stdout] | [INFO] [stdout] 1835 | DestroyIcon(sapp.win32.small_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1842:5 [INFO] [stdout] | [INFO] [stdout] 1842 | DestroyWindow(sapp.win32.hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1841:1 [INFO] [stdout] | [INFO] [stdout] 1841 | unsafe fn sapp_win32_destroy_window(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::UnregisterClassW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1844:5 [INFO] [stdout] | [INFO] [stdout] 1844 | UnregisterClassW(w!("SOKOLAPP"), GetModuleHandleW(std::ptr::null())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetModuleHandleW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1844:38 [INFO] [stdout] | [INFO] [stdout] 1844 | UnregisterClassW(w!("SOKOLAPP"), GetModuleHandleW(std::ptr::null())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyIcon` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1849:9 [INFO] [stdout] | [INFO] [stdout] 1849 | DestroyIcon(sapp.win32.big_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1847:1 [INFO] [stdout] | [INFO] [stdout] 1847 | unsafe fn sapp_win32_destroy_icons(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyIcon` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1853:9 [INFO] [stdout] | [INFO] [stdout] 1853 | DestroyIcon(sapp.win32.small_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::AllocConsole` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1862:25 [INFO] [stdout] | [INFO] [stdout] 1862 | con_valid = AllocConsole(); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1858:1 [INFO] [stdout] | [INFO] [stdout] 1858 | unsafe fn sapp_win32_init_console(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::AttachConsole` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1864:25 [INFO] [stdout] | [INFO] [stdout] 1864 | con_valid = AttachConsole(ATTACH_PARENT_PROCESS); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::GetConsoleOutputCP` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1875:36 [INFO] [stdout] | [INFO] [stdout] 1875 | sapp.win32.orig_codepage = GetConsoleOutputCP(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::SetConsoleOutputCP` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1876:9 [INFO] [stdout] | [INFO] [stdout] 1876 | SetConsoleOutputCP(CP_UTF8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::SetConsoleOutputCP` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1882:9 [INFO] [stdout] | [INFO] [stdout] 1882 | SetConsoleOutputCP(sapp.win32.orig_codepage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1880:1 [INFO] [stdout] | [INFO] [stdout] 1880 | unsafe fn sapp_win32_restore_console(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::LoadLibraryA` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2153:25 [INFO] [stdout] | [INFO] [stdout] 2153 | sapp.wgl.opengl32 = LoadLibraryA(s!("opengl32.dll")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2152:1 [INFO] [stdout] | [INFO] [stdout] 2152 | unsafe fn sapp_wgl_init(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2160:9 [INFO] [stdout] | [INFO] [stdout] 2160 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglCreateContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2160:29 [INFO] [stdout] | [INFO] [stdout] 2160 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglCreateContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2163:9 [INFO] [stdout] | [INFO] [stdout] 2163 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglDeleteContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2163:29 [INFO] [stdout] | [INFO] [stdout] 2163 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglDeleteContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2166:9 [INFO] [stdout] | [INFO] [stdout] 2166 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglGetProcAddress"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2166:29 [INFO] [stdout] | [INFO] [stdout] 2166 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglGetProcAddress"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2169:9 [INFO] [stdout] | [INFO] [stdout] 2169 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglGetCurrentDC"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2169:29 [INFO] [stdout] | [INFO] [stdout] 2169 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglGetCurrentDC"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2172:9 [INFO] [stdout] | [INFO] [stdout] 2172 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglMakeCurrent"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2172:29 [INFO] [stdout] | [INFO] [stdout] 2172 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglMakeCurrent"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::CreateWindowExW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2175:25 [INFO] [stdout] | [INFO] [stdout] 2175 | sapp.wgl.msg_hwnd = CreateWindowExW( [INFO] [stdout] | _________________________^ [INFO] [stdout] 2176 | | WS_EX_OVERLAPPEDWINDOW, [INFO] [stdout] 2177 | | w!("SOKOLAPP"), [INFO] [stdout] 2178 | | w!("sokol-app message window"), [INFO] [stdout] ... | [INFO] [stdout] 2187 | | std::ptr::null(), [INFO] [stdout] 2188 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetModuleHandleW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2186:9 [INFO] [stdout] | [INFO] [stdout] 2186 | GetModuleHandleW(std::ptr::null()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ShowWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2194:5 [INFO] [stdout] | [INFO] [stdout] 2194 | ShowWindow(sapp.wgl.msg_hwnd, SW_HIDE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::mem::zeroed` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2195:24 [INFO] [stdout] | [INFO] [stdout] 2195 | let mut msg: MSG = std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::PeekMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2196:11 [INFO] [stdout] | [INFO] [stdout] 2196 | while PeekMessageW(&mut msg, sapp.wgl.msg_hwnd, 0, 0, PM_REMOVE) == TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::TranslateMessage` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2197:9 [INFO] [stdout] | [INFO] [stdout] 2197 | TranslateMessage(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DispatchMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2198:9 [INFO] [stdout] | [INFO] [stdout] 2198 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::GetDC` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2200:23 [INFO] [stdout] | [INFO] [stdout] 2200 | sapp.wgl.msg_dc = GetDC(sapp.wgl.msg_hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2209:5 [INFO] [stdout] | [INFO] [stdout] 2209 | DestroyWindow(sapp.wgl.msg_hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2207:1 [INFO] [stdout] | [INFO] [stdout] 2207 | unsafe fn sapp_wgl_shutdown(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::FreeLibrary` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2211:5 [INFO] [stdout] | [INFO] [stdout] 2211 | FreeLibrary(sapp.wgl.opengl32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::ChoosePixelFormat` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2330:14 [INFO] [stdout] | [INFO] [stdout] 2330 | let pf = ChoosePixelFormat(sapp.wgl.msg_dc, &pfd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2296:1 [INFO] [stdout] | [INFO] [stdout] 2296 | unsafe fn sapp_wgl_load_extensions(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::SetPixelFormat` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2337:8 [INFO] [stdout] | [INFO] [stdout] 2337 | if SetPixelFormat(sapp.wgl.msg_dc, pf, &pfd) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2368:39 [INFO] [stdout] | [INFO] [stdout] 2368 | sapp.wgl.GetExtensionsStringEXT = std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!( [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 2369 | | "wglGetExtensionsStringEXT" [INFO] [stdout] 2370 | | ))); [INFO] [stdout] | |_______^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2371:39 [INFO] [stdout] | [INFO] [stdout] 2371 | sapp.wgl.GetExtensionsStringARB = std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!( [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 2372 | | "wglGetExtensionsStringARB" [INFO] [stdout] 2373 | | ))); [INFO] [stdout] | |_______^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2374:40 [INFO] [stdout] | [INFO] [stdout] 2374 | sapp.wgl.CreateContextAttribsARB = std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 2375 | | "wglCreateContextAttribsARB" [INFO] [stdout] 2376 | | ))); [INFO] [stdout] | |_______^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2378:9 [INFO] [stdout] | [INFO] [stdout] 2378 | std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!("wglSwapIntervalEXT"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2379:42 [INFO] [stdout] | [INFO] [stdout] 2379 | sapp.wgl.GetPixelFormatAttribivARB = std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!( [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 2380 | | "wglGetPixelFormatAttribivARB" [INFO] [stdout] 2381 | | ))); [INFO] [stdout] | |_______^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::mem::zeroed` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2552:42 [INFO] [stdout] | [INFO] [stdout] 2552 | let mut pfd: PIXELFORMATDESCRIPTOR = std::mem::zeroed(); // DT_TODO: SetPixelFormat does not really need this pixel format to be accu... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2546:1 [INFO] [stdout] | [INFO] [stdout] 2546 | unsafe fn sapp_wgl_create_context(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::DescribePixelFormat` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2553:8 [INFO] [stdout] | [INFO] [stdout] 2553 | if DescribePixelFormat( [INFO] [stdout] | ________^ [INFO] [stdout] 2554 | | sapp.win32.dc, [INFO] [stdout] 2555 | | pixel_format, [INFO] [stdout] 2556 | | std::mem::size_of::() as u32, [INFO] [stdout] 2557 | | &mut pfd, [INFO] [stdout] 2558 | | ) == 0 [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::SetPixelFormat` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2563:8 [INFO] [stdout] | [INFO] [stdout] 2563 | if SetPixelFormat(sapp.win32.dc, pixel_format, &pfd) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Foundation::GetLastError` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2589:19 [INFO] [stdout] | [INFO] [stdout] 2589 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::SwapBuffers` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2620:5 [INFO] [stdout] | [INFO] [stdout] 2620 | SwapBuffers(sapp.win32.dc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2617:1 [INFO] [stdout] | [INFO] [stdout] 2617 | unsafe fn sapp_wgl_swap_buffers(sapp: &SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1456:21 [INFO] [stdout] | [INFO] [stdout] 1456 | proc_addr = GetProcAddress(sg.gl.opengl32_dll, name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:1449:1 [INFO] [stdout] | [INFO] [stdout] 1449 | / unsafe fn sg_gl_getprocaddr( [INFO] [stdout] 1450 | | sg: &sg_state_t, [INFO] [stdout] 1451 | | name: *const u8, [INFO] [stdout] 1452 | | wgl_getprocaddress: sg_wglGetProcAddressT, [INFO] [stdout] 1453 | | ) -> PROC { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1476:30 [INFO] [stdout] | [INFO] [stdout] 1476 | let loader = std::mem::transmute(sg_gl_getprocaddr(sg, concat!(stringify!($name), "\0").as_ptr(), wgl_getprocaddress)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:1474:9 [INFO] [stdout] | [INFO] [stdout] 1474 | unsafe fn sg_gl_load_funcs(sg : &sg_state_t, wgl_getprocaddress : sg_wglGetProcAddressT){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `generate_gl_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sgfx::sg_gl_getprocaddr` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1476:50 [INFO] [stdout] | [INFO] [stdout] 1476 | let loader = std::mem::transmute(sg_gl_getprocaddr(sg, concat!(stringify!($name), "\0").as_ptr(), wgl_getprocaddress)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `generate_gl_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1478:21 [INFO] [stdout] | [INFO] [stdout] 1478 | $name = val; [INFO] [stdout] | ^^^^^ use of mutable static [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: this warning originates in the macro `generate_gl_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1476:30 [INFO] [stdout] | [INFO] [stdout] 1476 | let loader = std::mem::transmute(sg_gl_getprocaddr(sg, concat!(stringify!($name), "\0").as_ptr(), wgl_getprocaddress)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `generate_gl_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1812:5 [INFO] [stdout] | [INFO] [stdout] 1812 | glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:1809:1 [INFO] [stdout] | [INFO] [stdout] 1809 | unsafe fn sg_gl_init_limits(sg: &mut sg_state_t) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1812:5 [INFO] [stdout] | [INFO] [stdout] 1812 | glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1816:5 [INFO] [stdout] | [INFO] [stdout] 1816 | glGetIntegerv(GL_MAX_CUBE_MAP_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1816:5 [INFO] [stdout] | [INFO] [stdout] 1816 | glGetIntegerv(GL_MAX_CUBE_MAP_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1819:5 [INFO] [stdout] | [INFO] [stdout] 1819 | glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1819:5 [INFO] [stdout] | [INFO] [stdout] 1819 | glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1825:5 [INFO] [stdout] | [INFO] [stdout] 1825 | glGetIntegerv(GL_MAX_VERTEX_UNIFORM_VECTORS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1825:5 [INFO] [stdout] | [INFO] [stdout] 1825 | glGetIntegerv(GL_MAX_VERTEX_UNIFORM_VECTORS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1830:9 [INFO] [stdout] | [INFO] [stdout] 1830 | glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1830:9 [INFO] [stdout] | [INFO] [stdout] 1830 | glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1833:9 [INFO] [stdout] | [INFO] [stdout] 1833 | glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1833:9 [INFO] [stdout] | [INFO] [stdout] 1833 | glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1839:9 [INFO] [stdout] | [INFO] [stdout] 1839 | glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1839:9 [INFO] [stdout] | [INFO] [stdout] 1839 | glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1845:5 [INFO] [stdout] | [INFO] [stdout] 1845 | glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1845:5 [INFO] [stdout] | [INFO] [stdout] 1845 | glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1871:5 [INFO] [stdout] | [INFO] [stdout] 1871 | glGetIntegerv(GL_NUM_EXTENSIONS, &mut num_ext); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:1850:1 [INFO] [stdout] | [INFO] [stdout] 1850 | unsafe fn sg_gl_init_caps_glcore33(sg: &mut sg_state_t) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1871:5 [INFO] [stdout] | [INFO] [stdout] 1871 | glGetIntegerv(GL_NUM_EXTENSIONS, &mut num_ext); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1873:19 [INFO] [stdout] | [INFO] [stdout] 1873 | let ext = glGetStringi(GL_EXTENSIONS, i as GLuint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1873:19 [INFO] [stdout] | [INFO] [stdout] 1873 | let ext = glGetStringi(GL_EXTENSIONS, i as GLuint); [INFO] [stdout] | ^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1876:23 [INFO] [stdout] | [INFO] [stdout] 1876 | let ext = std::ffi::CStr::from_ptr(ext as *const i8).to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sgfx::sg_gl_init_limits` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1905:5 [INFO] [stdout] | [INFO] [stdout] 1905 | sg_gl_init_limits(sg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2120:9 [INFO] [stdout] | [INFO] [stdout] 2120 | glBindBuffer(GL_ARRAY_BUFFER, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:2118:1 [INFO] [stdout] | [INFO] [stdout] 2118 | unsafe fn sg_gl_cache_clear_buffer_bindings(sg: &mut sg_state_t, force: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2120:9 [INFO] [stdout] | [INFO] [stdout] 2120 | glBindBuffer(GL_ARRAY_BUFFER, 0); [INFO] [stdout] | ^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2124:9 [INFO] [stdout] | [INFO] [stdout] 2124 | glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2124:9 [INFO] [stdout] | [INFO] [stdout] 2124 | glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); [INFO] [stdout] | ^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2137:13 [INFO] [stdout] | [INFO] [stdout] 2137 | glActiveTexture(gl_texture_slot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:2129:1 [INFO] [stdout] | [INFO] [stdout] 2129 | unsafe fn sg_gl_cache_clear_texture_bindings(sg: &mut sg_state_t, force: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2137:13 [INFO] [stdout] | [INFO] [stdout] 2137 | glActiveTexture(gl_texture_slot); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2138:13 [INFO] [stdout] | [INFO] [stdout] 2138 | glBindTexture(GL_TEXTURE_2D, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2138:13 [INFO] [stdout] | [INFO] [stdout] 2138 | glBindTexture(GL_TEXTURE_2D, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | glBindTexture(GL_TEXTURE_CUBE_MAP, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | glBindTexture(GL_TEXTURE_CUBE_MAP, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2142:17 [INFO] [stdout] | [INFO] [stdout] 2142 | glBindTexture(GL_TEXTURE_3D, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2142:17 [INFO] [stdout] | [INFO] [stdout] 2142 | glBindTexture(GL_TEXTURE_3D, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2143:17 [INFO] [stdout] | [INFO] [stdout] 2143 | glBindTexture(GL_TEXTURE_2D_ARRAY, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2143:17 [INFO] [stdout] | [INFO] [stdout] 2143 | glBindTexture(GL_TEXTURE_2D_ARRAY, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2159:13 [INFO] [stdout] | [INFO] [stdout] 2159 | glBindVertexArray(ctx.vao); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:2153:1 [INFO] [stdout] | [INFO] [stdout] 2153 | unsafe fn sg_gl_reset_state_cache(sg: &mut sg_state_t, ctx_id: sg_context) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2159:13 [INFO] [stdout] | [INFO] [stdout] 2159 | glBindVertexArray(ctx.vao); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sgfx::sg_gl_cache_clear_buffer_bindings` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2164:9 [INFO] [stdout] | [INFO] [stdout] 2164 | sg_gl_cache_clear_buffer_bindings(sg, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sgfx::sg_gl_cache_clear_texture_bindings` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2166:9 [INFO] [stdout] | [INFO] [stdout] 2166 | sg_gl_cache_clear_texture_bindings(sg, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2172:13 [INFO] [stdout] | [INFO] [stdout] 2172 | glDisableVertexAttribArray(i as GLuint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2172:13 [INFO] [stdout] | [INFO] [stdout] 2172 | glDisableVertexAttribArray(i as GLuint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2179:9 [INFO] [stdout] | [INFO] [stdout] 2179 | glGetIntegerv(GL_CURRENT_PROGRAM, &mut get_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2179:9 [INFO] [stdout] | [INFO] [stdout] 2179 | glGetIntegerv(GL_CURRENT_PROGRAM, &mut get_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2193:9 [INFO] [stdout] | [INFO] [stdout] 2193 | glEnable(GL_DEPTH_TEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2193:9 [INFO] [stdout] | [INFO] [stdout] 2193 | glEnable(GL_DEPTH_TEST); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2194:9 [INFO] [stdout] | [INFO] [stdout] 2194 | glDepthFunc(GL_ALWAYS); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2194:9 [INFO] [stdout] | [INFO] [stdout] 2194 | glDepthFunc(GL_ALWAYS); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2195:9 [INFO] [stdout] | [INFO] [stdout] 2195 | glDepthMask(GL_FALSE as u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2195:9 [INFO] [stdout] | [INFO] [stdout] 2195 | glDepthMask(GL_FALSE as u8); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2196:9 [INFO] [stdout] | [INFO] [stdout] 2196 | glDisable(GL_STENCIL_TEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2196:9 [INFO] [stdout] | [INFO] [stdout] 2196 | glDisable(GL_STENCIL_TEST); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2197:9 [INFO] [stdout] | [INFO] [stdout] 2197 | glStencilFunc(GL_ALWAYS, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2197:9 [INFO] [stdout] | [INFO] [stdout] 2197 | glStencilFunc(GL_ALWAYS, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2198:9 [INFO] [stdout] | [INFO] [stdout] 2198 | glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2198:9 [INFO] [stdout] | [INFO] [stdout] 2198 | glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2199:9 [INFO] [stdout] | [INFO] [stdout] 2199 | glStencilMask(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2199:9 [INFO] [stdout] | [INFO] [stdout] 2199 | glStencilMask(0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2208:9 [INFO] [stdout] | [INFO] [stdout] 2208 | glDisable(GL_BLEND); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2208:9 [INFO] [stdout] | [INFO] [stdout] 2208 | glDisable(GL_BLEND); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2209:9 [INFO] [stdout] | [INFO] [stdout] 2209 | glBlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2209:9 [INFO] [stdout] | [INFO] [stdout] 2209 | glBlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2210:9 [INFO] [stdout] | [INFO] [stdout] 2210 | glBlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2210:9 [INFO] [stdout] | [INFO] [stdout] 2210 | glBlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2211:9 [INFO] [stdout] | [INFO] [stdout] 2211 | glBlendColor(0.0, 0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2211:9 [INFO] [stdout] | [INFO] [stdout] 2211 | glBlendColor(0.0, 0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2220:9 [INFO] [stdout] | [INFO] [stdout] 2220 | glColorMask(GL_TRUE as u8, GL_TRUE as u8, GL_TRUE as u8, GL_TRUE as u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2220:9 [INFO] [stdout] | [INFO] [stdout] 2220 | glColorMask(GL_TRUE as u8, GL_TRUE as u8, GL_TRUE as u8, GL_TRUE as u8); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2221:9 [INFO] [stdout] | [INFO] [stdout] 2221 | glPolygonOffset(0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2221:9 [INFO] [stdout] | [INFO] [stdout] 2221 | glPolygonOffset(0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2222:9 [INFO] [stdout] | [INFO] [stdout] 2222 | glDisable(GL_POLYGON_OFFSET_FILL); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2222:9 [INFO] [stdout] | [INFO] [stdout] 2222 | glDisable(GL_POLYGON_OFFSET_FILL); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2223:9 [INFO] [stdout] | [INFO] [stdout] 2223 | glDisable(GL_CULL_FACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2223:9 [INFO] [stdout] | [INFO] [stdout] 2223 | glDisable(GL_CULL_FACE); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2224:9 [INFO] [stdout] | [INFO] [stdout] 2224 | glFrontFace(GL_CW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2224:9 [INFO] [stdout] | [INFO] [stdout] 2224 | glFrontFace(GL_CW); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2225:9 [INFO] [stdout] | [INFO] [stdout] 2225 | glCullFace(GL_BACK); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2225:9 [INFO] [stdout] | [INFO] [stdout] 2225 | glCullFace(GL_BACK); [INFO] [stdout] | ^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2226:9 [INFO] [stdout] | [INFO] [stdout] 2226 | glEnable(GL_SCISSOR_TEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2226:9 [INFO] [stdout] | [INFO] [stdout] 2226 | glEnable(GL_SCISSOR_TEST); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2227:9 [INFO] [stdout] | [INFO] [stdout] 2227 | glDisable(GL_SAMPLE_ALPHA_TO_COVERAGE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2227:9 [INFO] [stdout] | [INFO] [stdout] 2227 | glDisable(GL_SAMPLE_ALPHA_TO_COVERAGE); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2228:9 [INFO] [stdout] | [INFO] [stdout] 2228 | glEnable(GL_DITHER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2228:9 [INFO] [stdout] | [INFO] [stdout] 2228 | glEnable(GL_DITHER); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2229:9 [INFO] [stdout] | [INFO] [stdout] 2229 | glDisable(GL_POLYGON_OFFSET_FILL); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2229:9 [INFO] [stdout] | [INFO] [stdout] 2229 | glDisable(GL_POLYGON_OFFSET_FILL); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2231:9 [INFO] [stdout] | [INFO] [stdout] 2231 | glEnable(GL_MULTISAMPLE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2231:9 [INFO] [stdout] | [INFO] [stdout] 2231 | glEnable(GL_MULTISAMPLE); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2232:9 [INFO] [stdout] | [INFO] [stdout] 2232 | glEnable(GL_PROGRAM_POINT_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2232:9 [INFO] [stdout] | [INFO] [stdout] 2232 | glEnable(GL_PROGRAM_POINT_SIZE); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `TestLoad` (bin "TestLoad" test) due to 5 previous errors; 297 warnings emitted [INFO] [stdout] error[E0596]: cannot borrow `p.buffers` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/sgfx.rs:2554:10 [INFO] [stdout] | [INFO] [stdout] 2554 | &mut p.buffers[slot_index as usize] [INFO] [stdout] | ^^^^^^^^^ `p` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 2550 | fn sg_buffer_at(p: &mut sg_pools_t, buf_id: u32) -> &mut sg_buffer_t { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors; 297 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `gl_target` [INFO] [stdout] --> src/sgfx.rs:2575:12 [INFO] [stdout] | [INFO] [stdout] 2575 | GLenum gl_target = _sg_gl_buffer_target(buf.cmn.type_val); [INFO] [stdout] | ^^^^^^^^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `_sg_buffer_common_init` in this scope [INFO] [stdout] --> src/sgfx.rs:2573:5 [INFO] [stdout] | [INFO] [stdout] 2573 | _sg_buffer_common_init(&buf.cmn, desc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sg_buffer_desc_defaults` in this scope [INFO] [stdout] --> src/sgfx.rs:2645:20 [INFO] [stdout] | [INFO] [stdout] 2645 | let desc_def = sg_buffer_desc_defaults(desc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::copy_from_nonoverlapping` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/particle_system.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | buffer.copy_from_nonoverlapping(data, size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/particle_system.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 202 | / unsafe fn copy_to_buffer(buffer: *mut u8, data: T) -> *mut u8 [INFO] [stdout] 203 | | where [INFO] [stdout] 204 | | T: Copy, [INFO] [stdout] | |________________^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/particle_system.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | buffer.add(size_of::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetCursorPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:466:19 [INFO] [stdout] | [INFO] [stdout] 466 | let res = GetCursorPos(&mut pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:455:1 [INFO] [stdout] | [INFO] [stdout] 455 | unsafe fn sapp_win32_lock_mouse(sapp: &mut SAppData, lock: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ClipCursor` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | ClipCursor(&client_rect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ShowCursor` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:483:9 [INFO] [stdout] | [INFO] [stdout] 483 | ShowCursor(FALSE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::RegisterRawInputDevices` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:493:12 [INFO] [stdout] | [INFO] [stdout] 493 | if RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as u32) != TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::RegisterRawInputDevices` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:507:12 [INFO] [stdout] | [INFO] [stdout] 507 | if RegisterRawInputDevices(&rid, 1, std::mem::size_of::() as u32) != TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ClipCursor` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:512:9 [INFO] [stdout] | [INFO] [stdout] 512 | ClipCursor(std::ptr::null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ShowCursor` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:513:9 [INFO] [stdout] | [INFO] [stdout] 513 | ShowCursor(TRUE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetCursorPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:516:19 [INFO] [stdout] | [INFO] [stdout] 516 | let res = SetCursorPos(sapp.win32.mouse_locked_x, sapp.win32.mouse_locked_y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetCursorPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:580:8 [INFO] [stdout] | [INFO] [stdout] 580 | if GetCursorPos(&mut pos) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:578:1 [INFO] [stdout] | [INFO] [stdout] 578 | unsafe fn sapp_win32_cursor_in_content_area(sapp: &SAppData) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::WindowFromPoint` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:583:8 [INFO] [stdout] | [INFO] [stdout] 583 | if WindowFromPoint(pos) != sapp.win32.hwnd { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetClientRect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:592:5 [INFO] [stdout] | [INFO] [stdout] 592 | GetClientRect(sapp.win32.hwnd, &mut area); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::ClientToScreen` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:602:5 [INFO] [stdout] | [INFO] [stdout] 602 | ClientToScreen(sapp.win32.hwnd, &mut left_top); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::ClientToScreen` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:603:5 [INFO] [stdout] | [INFO] [stdout] 603 | ClientToScreen(sapp.win32.hwnd, &mut right_bottom); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::PtInRect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:608:12 [INFO] [stdout] | [INFO] [stdout] 608 | return PtInRect(&area, pos) == TRUE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::LoadLibraryA` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:638:18 [INFO] [stdout] | [INFO] [stdout] 638 | let user32 = LoadLibraryA(s!("user32.dll")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:633:1 [INFO] [stdout] | [INFO] [stdout] 633 | unsafe fn sapp_win32_dpi_changed(sapp: &mut SAppData, hwnd: HWND, proposed_win_rect: &RECT) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:645:9 [INFO] [stdout] | [INFO] [stdout] 645 | std::mem::transmute(GetProcAddress(user32, s!("GetDpiForWindow"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:645:29 [INFO] [stdout] | [INFO] [stdout] 645 | std::mem::transmute(GetProcAddress(user32, s!("GetDpiForWindow"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:653:9 [INFO] [stdout] | [INFO] [stdout] 653 | / SetWindowPos( [INFO] [stdout] 654 | | hwnd, [INFO] [stdout] 655 | | 0, [INFO] [stdout] 656 | | proposed_win_rect.left, [INFO] [stdout] ... | [INFO] [stdout] 660 | | SWP_NOZORDER | SWP_NOACTIVATE, [INFO] [stdout] 661 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::FreeLibrary` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 663 | FreeLibrary(user32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::OpenClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:670:8 [INFO] [stdout] | [INFO] [stdout] 670 | if OpenClipboard(sapp.win32.hwnd) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:666:1 [INFO] [stdout] | [INFO] [stdout] 666 | unsafe fn sapp_win32_set_clipboard_string(sapp: &SAppData, str: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalAlloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:677:18 [INFO] [stdout] | [INFO] [stdout] 677 | let object = GlobalAlloc(GMEM_MOVEABLE, wchar_buf_size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:679:9 [INFO] [stdout] | [INFO] [stdout] 679 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalLock` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:685:29 [INFO] [stdout] | [INFO] [stdout] 685 | let mut wchar_buf = GlobalLock(object) as *mut u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalFree` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:687:13 [INFO] [stdout] | [INFO] [stdout] 687 | GlobalFree(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:688:13 [INFO] [stdout] | [INFO] [stdout] 688 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:694:13 [INFO] [stdout] | [INFO] [stdout] 694 | *wchar_buf = val; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:695:25 [INFO] [stdout] | [INFO] [stdout] 695 | wchar_buf = wchar_buf.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:697:9 [INFO] [stdout] | [INFO] [stdout] 697 | *wchar_buf = 0; // Add null terminator [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalUnlock` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:699:9 [INFO] [stdout] | [INFO] [stdout] 699 | GlobalUnlock(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::EmptyClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:702:5 [INFO] [stdout] | [INFO] [stdout] 702 | EmptyClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::SetClipboardData` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:705:8 [INFO] [stdout] | [INFO] [stdout] 705 | if SetClipboardData(CF_UNICODETEXT as u32, object) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalFree` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:706:9 [INFO] [stdout] | [INFO] [stdout] 706 | GlobalFree(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:707:9 [INFO] [stdout] | [INFO] [stdout] 707 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:710:5 [INFO] [stdout] | [INFO] [stdout] 710 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::OpenClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:758:8 [INFO] [stdout] | [INFO] [stdout] 758 | if OpenClipboard(sapp.win32.hwnd) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:755:1 [INFO] [stdout] | [INFO] [stdout] 755 | unsafe fn sapp_win32_get_clipboard_string(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::GetClipboardData` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:763:18 [INFO] [stdout] | [INFO] [stdout] 763 | let object = GetClipboardData(CF_UNICODETEXT as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:765:9 [INFO] [stdout] | [INFO] [stdout] 765 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalLock` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:768:21 [INFO] [stdout] | [INFO] [stdout] 768 | let wchar_buf = GlobalLock(object) as *const u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:770:9 [INFO] [stdout] | [INFO] [stdout] 770 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Memory::GlobalUnlock` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:783:5 [INFO] [stdout] | [INFO] [stdout] 783 | GlobalUnlock(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::DataExchange::CloseClipboard` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:784:5 [INFO] [stdout] | [INFO] [stdout] 784 | CloseClipboard(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:842:9 [INFO] [stdout] | [INFO] [stdout] 842 | if (GetKeyState(VK_SHIFT as i32) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:840:1 [INFO] [stdout] | [INFO] [stdout] 840 | unsafe fn sapp_win32_mods() -> Modifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:845:9 [INFO] [stdout] | [INFO] [stdout] 845 | if (GetKeyState(VK_CONTROL as i32) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:848:9 [INFO] [stdout] | [INFO] [stdout] 848 | if (GetKeyState(VK_MENU as i32) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:851:10 [INFO] [stdout] | [INFO] [stdout] 851 | if ((GetKeyState(VK_LWIN as i32) | GetKeyState(VK_RWIN as i32)) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:851:40 [INFO] [stdout] | [INFO] [stdout] 851 | if ((GetKeyState(VK_LWIN as i32) | GetKeyState(VK_RWIN as i32)) & (1 << 15)) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:854:27 [INFO] [stdout] | [INFO] [stdout] 854 | let swapped = TRUE == GetSystemMetrics(SM_SWAPBUTTON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetAsyncKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:855:8 [INFO] [stdout] | [INFO] [stdout] 855 | if GetAsyncKeyState(VK_LBUTTON as i32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetAsyncKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:863:8 [INFO] [stdout] | [INFO] [stdout] 863 | if GetAsyncKeyState(VK_RBUTTON as i32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::GetAsyncKeyState` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:870:8 [INFO] [stdout] | [INFO] [stdout] 870 | if GetAsyncKeyState(VK_MBUTTON as i32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetWindowLongPtrW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:882:16 [INFO] [stdout] | [INFO] [stdout] 882 | let sapp = GetWindowLongPtrW(window, GWLP_USERDATA) as *mut SApp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:876:1 [INFO] [stdout] | [INFO] [stdout] 876 | / unsafe extern "system" fn wndproc( [INFO] [stdout] 877 | | window: HWND, [INFO] [stdout] 878 | | message: u32, [INFO] [stdout] 879 | | wparam: WPARAM, [INFO] [stdout] 880 | | lparam: LPARAM, [INFO] [stdout] 881 | | ) -> LRESULT { [INFO] [stdout] | |____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::as_mut` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:883:22 [INFO] [stdout] | [INFO] [stdout] 883 | let sapp = match sapp.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DefWindowProcW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:885:21 [INFO] [stdout] | [INFO] [stdout] 885 | _ => return DefWindowProcW(window, message, wparam, lparam), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::PostQuitMessage` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:902:17 [INFO] [stdout] | [INFO] [stdout] 902 | PostQuitMessage(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_lock_mouse` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:939:17 [INFO] [stdout] | [INFO] [stdout] 939 | sapp_win32_lock_mouse(&mut sapp.base, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::const_ptr::::as_ref` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:959:33 [INFO] [stdout] | [INFO] [stdout] 959 | if let Some(rect) = rect.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_dpi_changed` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:960:17 [INFO] [stdout] | [INFO] [stdout] 960 | sapp_win32_dpi_changed(&mut sapp.base, window, rect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::KeyboardAndMouse::TrackMouseEvent` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1022:21 [INFO] [stdout] | [INFO] [stdout] 1022 | TrackMouseEvent(&mut tme); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Input::GetRawInputData` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1040:24 [INFO] [stdout] | [INFO] [stdout] 1040 | != GetRawInputData( [INFO] [stdout] | ________________________^ [INFO] [stdout] 1041 | | ri, [INFO] [stdout] 1042 | | RID_INPUT, [INFO] [stdout] 1043 | | ptr, [INFO] [stdout] 1044 | | &mut size, [INFO] [stdout] 1045 | | std::mem::size_of::() as u32, [INFO] [stdout] 1046 | | ) [INFO] [stdout] | |_____________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1049:37 [INFO] [stdout] | [INFO] [stdout] 1049 | let raw_data = &(*raw_mouse_data).data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1050:25 [INFO] [stdout] | [INFO] [stdout] 1050 | if (raw_data.mouse.usFlags as u32 & MOUSE_MOVE_ABSOLUTE) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1056:37 [INFO] [stdout] | [INFO] [stdout] 1056 | let new_x = raw_data.mouse.lLastX; [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1057:37 [INFO] [stdout] | [INFO] [stdout] 1057 | let new_y = raw_data.mouse.lLastY; [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1069:46 [INFO] [stdout] | [INFO] [stdout] 1069 | sapp.base.mouse.dx = raw_data.mouse.lLastX as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: access to union field is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1070:46 [INFO] [stdout] | [INFO] [stdout] 1070 | sapp.base.mouse.dy = raw_data.mouse.lLastY as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_mods` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1147:25 [INFO] [stdout] | [INFO] [stdout] 1147 | && (sapp_win32_mods() == Modifier::Ctrl) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetTimer` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1164:13 [INFO] [stdout] | [INFO] [stdout] 1164 | SetTimer(sapp.base.win32.hwnd, 1, USER_TIMER_MINIMUM, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::KillTimer` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1167:13 [INFO] [stdout] | [INFO] [stdout] 1167 | KillTimer(sapp.base.win32.hwnd, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_wgl_swap_buffers` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1172:13 [INFO] [stdout] | [INFO] [stdout] 1172 | sapp_wgl_swap_buffers(&mut sapp.base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SendMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1180:16 [INFO] [stdout] | [INFO] [stdout] 1180 | if SendMessageW(sapp.base.win32.hwnd, WM_NCHITTEST, wparam, lparam) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetCursorPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1184:17 [INFO] [stdout] | [INFO] [stdout] 1184 | GetCursorPos(&mut point); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::ScreenToClient` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1185:17 [INFO] [stdout] | [INFO] [stdout] 1185 | ScreenToClient(sapp.base.win32.hwnd, &mut point); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::PostMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1186:17 [INFO] [stdout] | [INFO] [stdout] 1186 | / PostMessageW( [INFO] [stdout] 1187 | | sapp.base.win32.hwnd, [INFO] [stdout] 1188 | | WM_MOUSEMOVE, [INFO] [stdout] 1189 | | 0, [INFO] [stdout] 1190 | | ((point.x as u32) | ((point.y as u32) << 16)) as isize, [INFO] [stdout] 1191 | | ); [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DefWindowProcW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1198:12 [INFO] [stdout] | [INFO] [stdout] 1198 | return DefWindowProcW(window, message, wparam, lparam); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowLongPtrW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1204:5 [INFO] [stdout] | [INFO] [stdout] 1204 | SetWindowLongPtrW((*sapp).base.win32.hwnd, GWL_USERDATA, sapp as isize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1201:1 [INFO] [stdout] | [INFO] [stdout] 1201 | unsafe fn win32_process_loop(sapp: *mut SApp) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1204:23 [INFO] [stdout] | [INFO] [stdout] 1204 | SetWindowLongPtrW((*sapp).base.win32.hwnd, GWL_USERDATA, sapp as isize); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1207:21 [INFO] [stdout] | [INFO] [stdout] 1207 | while !done && !(*sapp).base.quit_ordered { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1220:9 [INFO] [stdout] | [INFO] [stdout] 1220 | (*sapp).frame(); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_wgl_swap_buffers` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1221:9 [INFO] [stdout] | [INFO] [stdout] 1221 | sapp_wgl_swap_buffers(&mut (*sapp).base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1221:36 [INFO] [stdout] | [INFO] [stdout] 1221 | sapp_wgl_swap_buffers(&mut (*sapp).base); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_update_dimensions` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1224:12 [INFO] [stdout] | [INFO] [stdout] 1224 | if sapp_win32_update_dimensions(&mut (*sapp).base) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1224:46 [INFO] [stdout] | [INFO] [stdout] 1224 | if sapp_win32_update_dimensions(&mut (*sapp).base) { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1225:13 [INFO] [stdout] | [INFO] [stdout] 1225 | (*sapp).call_event(&Event::Resized) [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1228:12 [INFO] [stdout] | [INFO] [stdout] 1228 | if (*sapp).base.quit_requested { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::PostMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1229:13 [INFO] [stdout] | [INFO] [stdout] 1229 | PostMessageW((*sapp).base.win32.hwnd, WM_CLOSE, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1229:26 [INFO] [stdout] | [INFO] [stdout] 1229 | PostMessageW((*sapp).base.win32.hwnd, WM_CLOSE, 0, 0); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowLongPtrW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1234:5 [INFO] [stdout] | [INFO] [stdout] 1234 | SetWindowLongPtrW((*sapp).base.win32.hwnd, GWL_USERDATA, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1234:23 [INFO] [stdout] | [INFO] [stdout] 1234 | SetWindowLongPtrW((*sapp).base.win32.hwnd, GWL_USERDATA, 0); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::LoadLibraryA` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1255:18 [INFO] [stdout] | [INFO] [stdout] 1255 | let user32 = LoadLibraryA(s!("user32.dll")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1237:1 [INFO] [stdout] | [INFO] [stdout] 1237 | unsafe fn sapp_win32_init_dpi(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1258:13 [INFO] [stdout] | [INFO] [stdout] 1258 | std::mem::transmute(GetProcAddress(user32, s!("SetProcessDPIAware"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1258:33 [INFO] [stdout] | [INFO] [stdout] 1258 | std::mem::transmute(GetProcAddress(user32, s!("SetProcessDPIAware"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1260:13 [INFO] [stdout] | [INFO] [stdout] 1260 | std::mem::transmute(GetProcAddress(user32, s!("SetProcessDpiAwarenessContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1260:33 [INFO] [stdout] | [INFO] [stdout] 1260 | std::mem::transmute(GetProcAddress(user32, s!("SetProcessDpiAwarenessContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::LoadLibraryA` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1262:18 [INFO] [stdout] | [INFO] [stdout] 1262 | let shcore = LoadLibraryA(s!("shcore.dll")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1265:13 [INFO] [stdout] | [INFO] [stdout] 1265 | std::mem::transmute(GetProcAddress(shcore, s!("SetProcessDpiAwareness"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1265:33 [INFO] [stdout] | [INFO] [stdout] 1265 | std::mem::transmute(GetProcAddress(shcore, s!("SetProcessDpiAwareness"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1267:13 [INFO] [stdout] | [INFO] [stdout] 1267 | std::mem::transmute(GetProcAddress(shcore, s!("GetDpiForMonitor"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1267:33 [INFO] [stdout] | [INFO] [stdout] 1267 | std::mem::transmute(GetProcAddress(shcore, s!("GetDpiForMonitor"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::MonitorFromPoint` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1303:32 [INFO] [stdout] | [INFO] [stdout] 1303 | let hm: HMONITOR = MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::FreeLibrary` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1323:9 [INFO] [stdout] | [INFO] [stdout] 1323 | FreeLibrary(user32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::FreeLibrary` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1326:9 [INFO] [stdout] | [INFO] [stdout] 1326 | FreeLibrary(shcore); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::MonitorFromWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1331:19 [INFO] [stdout] | [INFO] [stdout] 1331 | let monitor = MonitorFromWindow(sapp.win32.hwnd, MONITOR_DEFAULTTONEAREST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1330:1 [INFO] [stdout] | [INFO] [stdout] 1330 | unsafe fn sapp_win32_set_fullscreen(sapp: &mut SAppData, fullscreen: bool, swp_flags: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::GetMonitorInfoW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1348:5 [INFO] [stdout] | [INFO] [stdout] 1348 | GetMonitorInfoW(monitor, &mut minfo); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetWindowRect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1373:9 [INFO] [stdout] | [INFO] [stdout] 1373 | GetWindowRect(sapp.win32.hwnd, &mut sapp.win32.stored_window_rect); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::AdjustWindowRectEx` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1379:9 [INFO] [stdout] | [INFO] [stdout] 1379 | AdjustWindowRectEx(&mut rect, win_style, FALSE, win_ex_style); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowLongPtrW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1385:5 [INFO] [stdout] | [INFO] [stdout] 1385 | SetWindowLongPtrW(sapp.win32.hwnd, GWL_STYLE, win_style as isize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SetWindowPos` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1386:5 [INFO] [stdout] | [INFO] [stdout] 1386 | / SetWindowPos( [INFO] [stdout] 1387 | | sapp.win32.hwnd, [INFO] [stdout] 1388 | | HWND_TOP, [INFO] [stdout] 1389 | | win_x, [INFO] [stdout] ... | [INFO] [stdout] 1393 | | swp_flags | SWP_FRAMECHANGED, [INFO] [stdout] 1394 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetClientRect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1408:8 [INFO] [stdout] | [INFO] [stdout] 1408 | if GetClientRect(sapp.win32.hwnd, &mut rect) == TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1401:1 [INFO] [stdout] | [INFO] [stdout] 1401 | unsafe fn sapp_win32_update_dimensions(sapp: &mut SAppData) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetModuleHandleW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1441:20 [INFO] [stdout] | [INFO] [stdout] 1441 | let instance = GetModuleHandleW(std::ptr::null()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1437:1 [INFO] [stdout] | [INFO] [stdout] 1437 | unsafe fn sapp_win32_create_window(desc: &SAppDesc, sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::LoadCursorW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1443:18 [INFO] [stdout] | [INFO] [stdout] 1443 | hCursor: LoadCursorW(0, IDC_ARROW), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::LoadIconW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1450:16 [INFO] [stdout] | [INFO] [stdout] 1450 | hIcon: LoadIconW(0, IDI_WINLOGO), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::RegisterClassW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1454:5 [INFO] [stdout] | [INFO] [stdout] 1454 | RegisterClassW(&wndclassw); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::AdjustWindowRectEx` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1484:5 [INFO] [stdout] | [INFO] [stdout] 1484 | AdjustWindowRectEx(&mut rect, win_style, FALSE, win_ex_style); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::CreateWindowExW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1503:23 [INFO] [stdout] | [INFO] [stdout] 1503 | sapp.win32.hwnd = CreateWindowExW( [INFO] [stdout] | _______________________^ [INFO] [stdout] 1504 | | win_ex_style, // dwExStyle [INFO] [stdout] 1505 | | w!("SOKOLAPP"), // lpClassName [INFO] [stdout] 1506 | | title.as_ptr(), // lpWindowName [INFO] [stdout] ... | [INFO] [stdout] 1523 | | std::ptr::null(), [INFO] [stdout] 1524 | | ); // lParam [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::GetDC` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1532:21 [INFO] [stdout] | [INFO] [stdout] 1532 | sapp.win32.dc = GetDC(sapp.win32.hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::MonitorFromWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1533:27 [INFO] [stdout] | [INFO] [stdout] 1533 | sapp.win32.hmonitor = MonitorFromWindow(sapp.win32.hwnd, MONITOR_DEFAULTTONULL); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_update_dimensions` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1546:5 [INFO] [stdout] | [INFO] [stdout] 1546 | sapp_win32_update_dimensions(sapp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_set_fullscreen` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1554:9 [INFO] [stdout] | [INFO] [stdout] 1554 | sapp_win32_set_fullscreen(sapp, sapp.fullscreen, SWP_HIDEWINDOW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_update_dimensions` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1555:9 [INFO] [stdout] | [INFO] [stdout] 1555 | sapp_win32_update_dimensions(sapp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ShowWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1557:5 [INFO] [stdout] | [INFO] [stdout] 1557 | ShowWindow(sapp.win32.hwnd, SW_SHOW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::Shell::DragAcceptFiles` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1562:9 [INFO] [stdout] | [INFO] [stdout] 1562 | DragAcceptFiles(sapp.win32.hwnd, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::GetDC` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1706:14 [INFO] [stdout] | [INFO] [stdout] 1706 | let dc = GetDC(0); [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1660:1 [INFO] [stdout] | [INFO] [stdout] 1660 | unsafe fn sapp_win32_create_icon_from_image(desc: &SappImageDesc) -> HICON { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::CreateDIBSection` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1707:17 [INFO] [stdout] | [INFO] [stdout] 1707 | let color = CreateDIBSection( [INFO] [stdout] | _________________^ [INFO] [stdout] 1708 | | dc, [INFO] [stdout] 1709 | | &bi as *const BITMAPV5HEADER as *const BITMAPINFO, [INFO] [stdout] 1710 | | DIB_RGB_COLORS, [INFO] [stdout] ... | [INFO] [stdout] 1713 | | 0, [INFO] [stdout] 1714 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::ReleaseDC` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1715:5 [INFO] [stdout] | [INFO] [stdout] 1715 | ReleaseDC(0, dc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::CreateBitmap` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1721:16 [INFO] [stdout] | [INFO] [stdout] 1721 | let mask = CreateBitmap( [INFO] [stdout] | ________________^ [INFO] [stdout] 1722 | | desc.width as i32, [INFO] [stdout] 1723 | | desc.height as i32, [INFO] [stdout] 1724 | | 1, [INFO] [stdout] 1725 | | 1, [INFO] [stdout] 1726 | | std::ptr::null(), [INFO] [stdout] 1727 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::DeleteObject` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1729:9 [INFO] [stdout] | [INFO] [stdout] 1729 | DeleteObject(color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1737:9 [INFO] [stdout] | [INFO] [stdout] 1737 | *target.add(0) = *source.add(2); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1737:10 [INFO] [stdout] | [INFO] [stdout] 1737 | *target.add(0) = *source.add(2); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1737:26 [INFO] [stdout] | [INFO] [stdout] 1737 | *target.add(0) = *source.add(2); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1737:27 [INFO] [stdout] | [INFO] [stdout] 1737 | *target.add(0) = *source.add(2); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1738:9 [INFO] [stdout] | [INFO] [stdout] 1738 | *target.add(1) = *source.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1738:10 [INFO] [stdout] | [INFO] [stdout] 1738 | *target.add(1) = *source.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1738:26 [INFO] [stdout] | [INFO] [stdout] 1738 | *target.add(1) = *source.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1738:27 [INFO] [stdout] | [INFO] [stdout] 1738 | *target.add(1) = *source.add(1); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1739:9 [INFO] [stdout] | [INFO] [stdout] 1739 | *target.add(2) = *source.add(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1739:10 [INFO] [stdout] | [INFO] [stdout] 1739 | *target.add(2) = *source.add(0); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1739:26 [INFO] [stdout] | [INFO] [stdout] 1739 | *target.add(2) = *source.add(0); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1739:27 [INFO] [stdout] | [INFO] [stdout] 1739 | *target.add(2) = *source.add(0); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1740:9 [INFO] [stdout] | [INFO] [stdout] 1740 | *target.add(3) = *source.add(3); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1740:10 [INFO] [stdout] | [INFO] [stdout] 1740 | *target.add(3) = *source.add(3); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1740:26 [INFO] [stdout] | [INFO] [stdout] 1740 | *target.add(3) = *source.add(3); [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1740:27 [INFO] [stdout] | [INFO] [stdout] 1740 | *target.add(3) = *source.add(3); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1742:18 [INFO] [stdout] | [INFO] [stdout] 1742 | target = target.add(4); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1743:18 [INFO] [stdout] | [INFO] [stdout] 1743 | source = source.add(4); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::CreateIconIndirect` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1753:23 [INFO] [stdout] | [INFO] [stdout] 1753 | let icon_handle = CreateIconIndirect(&icon_info); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::DeleteObject` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1754:5 [INFO] [stdout] | [INFO] [stdout] 1754 | DeleteObject(color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::DeleteObject` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1755:5 [INFO] [stdout] | [INFO] [stdout] 1755 | DeleteObject(mask); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1813:9 [INFO] [stdout] | [INFO] [stdout] 1813 | GetSystemMetrics(SM_CXICON), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1808:1 [INFO] [stdout] | [INFO] [stdout] 1808 | unsafe fn sapp_win32_set_icon(sapp: &mut SAppData, icon_desc: &SappIconDesc, num_images: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1814:9 [INFO] [stdout] | [INFO] [stdout] 1814 | GetSystemMetrics(SM_CYICON), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1818:9 [INFO] [stdout] | [INFO] [stdout] 1818 | GetSystemMetrics(SM_CXSMICON), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::GetSystemMetrics` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1819:9 [INFO] [stdout] | [INFO] [stdout] 1819 | GetSystemMetrics(SM_CYSMICON), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_create_icon_from_image` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1821:20 [INFO] [stdout] | [INFO] [stdout] 1821 | let big_icon = sapp_win32_create_icon_from_image(&icon_desc.images[big_img_index as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sapp::sapp_win32_create_icon_from_image` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1822:20 [INFO] [stdout] | [INFO] [stdout] 1822 | let sml_icon = sapp_win32_create_icon_from_image(&icon_desc.images[sml_img_index as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SendMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1826:9 [INFO] [stdout] | [INFO] [stdout] 1826 | SendMessageW(sapp.win32.hwnd, WM_SETICON, ICON_BIG as usize, big_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyIcon` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1828:13 [INFO] [stdout] | [INFO] [stdout] 1828 | DestroyIcon(sapp.win32.big_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::SendMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1833:9 [INFO] [stdout] | [INFO] [stdout] 1833 | SendMessageW(sapp.win32.hwnd, WM_SETICON, ICON_SMALL as usize, sml_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyIcon` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1835:13 [INFO] [stdout] | [INFO] [stdout] 1835 | DestroyIcon(sapp.win32.small_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1842:5 [INFO] [stdout] | [INFO] [stdout] 1842 | DestroyWindow(sapp.win32.hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1841:1 [INFO] [stdout] | [INFO] [stdout] 1841 | unsafe fn sapp_win32_destroy_window(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::UnregisterClassW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1844:5 [INFO] [stdout] | [INFO] [stdout] 1844 | UnregisterClassW(w!("SOKOLAPP"), GetModuleHandleW(std::ptr::null())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetModuleHandleW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1844:38 [INFO] [stdout] | [INFO] [stdout] 1844 | UnregisterClassW(w!("SOKOLAPP"), GetModuleHandleW(std::ptr::null())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyIcon` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1849:9 [INFO] [stdout] | [INFO] [stdout] 1849 | DestroyIcon(sapp.win32.big_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1847:1 [INFO] [stdout] | [INFO] [stdout] 1847 | unsafe fn sapp_win32_destroy_icons(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyIcon` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1853:9 [INFO] [stdout] | [INFO] [stdout] 1853 | DestroyIcon(sapp.win32.small_icon); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::AllocConsole` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1862:25 [INFO] [stdout] | [INFO] [stdout] 1862 | con_valid = AllocConsole(); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1858:1 [INFO] [stdout] | [INFO] [stdout] 1858 | unsafe fn sapp_win32_init_console(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::AttachConsole` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1864:25 [INFO] [stdout] | [INFO] [stdout] 1864 | con_valid = AttachConsole(ATTACH_PARENT_PROCESS); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::GetConsoleOutputCP` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1875:36 [INFO] [stdout] | [INFO] [stdout] 1875 | sapp.win32.orig_codepage = GetConsoleOutputCP(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::SetConsoleOutputCP` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1876:9 [INFO] [stdout] | [INFO] [stdout] 1876 | SetConsoleOutputCP(CP_UTF8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::Console::SetConsoleOutputCP` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:1882:9 [INFO] [stdout] | [INFO] [stdout] 1882 | SetConsoleOutputCP(sapp.win32.orig_codepage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:1880:1 [INFO] [stdout] | [INFO] [stdout] 1880 | unsafe fn sapp_win32_restore_console(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::LoadLibraryA` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2153:25 [INFO] [stdout] | [INFO] [stdout] 2153 | sapp.wgl.opengl32 = LoadLibraryA(s!("opengl32.dll")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2152:1 [INFO] [stdout] | [INFO] [stdout] 2152 | unsafe fn sapp_wgl_init(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2160:9 [INFO] [stdout] | [INFO] [stdout] 2160 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglCreateContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2160:29 [INFO] [stdout] | [INFO] [stdout] 2160 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglCreateContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2163:9 [INFO] [stdout] | [INFO] [stdout] 2163 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglDeleteContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2163:29 [INFO] [stdout] | [INFO] [stdout] 2163 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglDeleteContext"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2166:9 [INFO] [stdout] | [INFO] [stdout] 2166 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglGetProcAddress"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2166:29 [INFO] [stdout] | [INFO] [stdout] 2166 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglGetProcAddress"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2169:9 [INFO] [stdout] | [INFO] [stdout] 2169 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglGetCurrentDC"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2169:29 [INFO] [stdout] | [INFO] [stdout] 2169 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglGetCurrentDC"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2172:9 [INFO] [stdout] | [INFO] [stdout] 2172 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglMakeCurrent"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2172:29 [INFO] [stdout] | [INFO] [stdout] 2172 | std::mem::transmute(GetProcAddress(sapp.wgl.opengl32, s!("wglMakeCurrent"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::CreateWindowExW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2175:25 [INFO] [stdout] | [INFO] [stdout] 2175 | sapp.wgl.msg_hwnd = CreateWindowExW( [INFO] [stdout] | _________________________^ [INFO] [stdout] 2176 | | WS_EX_OVERLAPPEDWINDOW, [INFO] [stdout] 2177 | | w!("SOKOLAPP"), [INFO] [stdout] 2178 | | w!("sokol-app message window"), [INFO] [stdout] ... | [INFO] [stdout] 2187 | | std::ptr::null(), [INFO] [stdout] 2188 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetModuleHandleW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2186:9 [INFO] [stdout] | [INFO] [stdout] 2186 | GetModuleHandleW(std::ptr::null()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::ShowWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2194:5 [INFO] [stdout] | [INFO] [stdout] 2194 | ShowWindow(sapp.wgl.msg_hwnd, SW_HIDE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::mem::zeroed` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2195:24 [INFO] [stdout] | [INFO] [stdout] 2195 | let mut msg: MSG = std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::PeekMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2196:11 [INFO] [stdout] | [INFO] [stdout] 2196 | while PeekMessageW(&mut msg, sapp.wgl.msg_hwnd, 0, 0, PM_REMOVE) == TRUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::TranslateMessage` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2197:9 [INFO] [stdout] | [INFO] [stdout] 2197 | TranslateMessage(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DispatchMessageW` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2198:9 [INFO] [stdout] | [INFO] [stdout] 2198 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::Gdi::GetDC` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2200:23 [INFO] [stdout] | [INFO] [stdout] 2200 | sapp.wgl.msg_dc = GetDC(sapp.wgl.msg_hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::UI::WindowsAndMessaging::DestroyWindow` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2209:5 [INFO] [stdout] | [INFO] [stdout] 2209 | DestroyWindow(sapp.wgl.msg_hwnd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2207:1 [INFO] [stdout] | [INFO] [stdout] 2207 | unsafe fn sapp_wgl_shutdown(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::FreeLibrary` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2211:5 [INFO] [stdout] | [INFO] [stdout] 2211 | FreeLibrary(sapp.wgl.opengl32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::ChoosePixelFormat` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2330:14 [INFO] [stdout] | [INFO] [stdout] 2330 | let pf = ChoosePixelFormat(sapp.wgl.msg_dc, &pfd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2296:1 [INFO] [stdout] | [INFO] [stdout] 2296 | unsafe fn sapp_wgl_load_extensions(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::SetPixelFormat` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2337:8 [INFO] [stdout] | [INFO] [stdout] 2337 | if SetPixelFormat(sapp.wgl.msg_dc, pf, &pfd) == FALSE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2368:39 [INFO] [stdout] | [INFO] [stdout] 2368 | sapp.wgl.GetExtensionsStringEXT = std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!( [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 2369 | | "wglGetExtensionsStringEXT" [INFO] [stdout] 2370 | | ))); [INFO] [stdout] | |_______^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2371:39 [INFO] [stdout] | [INFO] [stdout] 2371 | sapp.wgl.GetExtensionsStringARB = std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!( [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 2372 | | "wglGetExtensionsStringARB" [INFO] [stdout] 2373 | | ))); [INFO] [stdout] | |_______^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2374:40 [INFO] [stdout] | [INFO] [stdout] 2374 | sapp.wgl.CreateContextAttribsARB = std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 2375 | | "wglCreateContextAttribsARB" [INFO] [stdout] 2376 | | ))); [INFO] [stdout] | |_______^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2378:9 [INFO] [stdout] | [INFO] [stdout] 2378 | std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!("wglSwapIntervalEXT"))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2379:42 [INFO] [stdout] | [INFO] [stdout] 2379 | sapp.wgl.GetPixelFormatAttribivARB = std::mem::transmute(sapp.wgl.GetProcAddress.unwrap()(s!( [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 2380 | | "wglGetPixelFormatAttribivARB" [INFO] [stdout] 2381 | | ))); [INFO] [stdout] | |_______^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::mem::zeroed` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2552:42 [INFO] [stdout] | [INFO] [stdout] 2552 | let mut pfd: PIXELFORMATDESCRIPTOR = std::mem::zeroed(); // DT_TODO: SetPixelFormat does not really need this pixel format to be accu... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2546:1 [INFO] [stdout] | [INFO] [stdout] 2546 | unsafe fn sapp_wgl_create_context(sapp: &mut SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::DescribePixelFormat` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2553:8 [INFO] [stdout] | [INFO] [stdout] 2553 | if DescribePixelFormat( [INFO] [stdout] | ________^ [INFO] [stdout] 2554 | | sapp.win32.dc, [INFO] [stdout] 2555 | | pixel_format, [INFO] [stdout] 2556 | | std::mem::size_of::() as u32, [INFO] [stdout] 2557 | | &mut pfd, [INFO] [stdout] 2558 | | ) == 0 [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::SetPixelFormat` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2563:8 [INFO] [stdout] | [INFO] [stdout] 2563 | if SetPixelFormat(sapp.win32.dc, pixel_format, &pfd) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Foundation::GetLastError` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2589:19 [INFO] [stdout] | [INFO] [stdout] 2589 | let err = GetLastError(); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::Graphics::OpenGL::SwapBuffers` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sapp.rs:2620:5 [INFO] [stdout] | [INFO] [stdout] 2620 | SwapBuffers(sapp.win32.dc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sapp.rs:2617:1 [INFO] [stdout] | [INFO] [stdout] 2617 | unsafe fn sapp_wgl_swap_buffers(sapp: &SAppData) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `windows_sys::Win32::System::LibraryLoader::GetProcAddress` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1456:21 [INFO] [stdout] | [INFO] [stdout] 1456 | proc_addr = GetProcAddress(sg.gl.opengl32_dll, name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:1449:1 [INFO] [stdout] | [INFO] [stdout] 1449 | / unsafe fn sg_gl_getprocaddr( [INFO] [stdout] 1450 | | sg: &sg_state_t, [INFO] [stdout] 1451 | | name: *const u8, [INFO] [stdout] 1452 | | wgl_getprocaddress: sg_wglGetProcAddressT, [INFO] [stdout] 1453 | | ) -> PROC { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1476:30 [INFO] [stdout] | [INFO] [stdout] 1476 | let loader = std::mem::transmute(sg_gl_getprocaddr(sg, concat!(stringify!($name), "\0").as_ptr(), wgl_getprocaddress)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:1474:9 [INFO] [stdout] | [INFO] [stdout] 1474 | unsafe fn sg_gl_load_funcs(sg : &sg_state_t, wgl_getprocaddress : sg_wglGetProcAddressT){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `generate_gl_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sgfx::sg_gl_getprocaddr` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1476:50 [INFO] [stdout] | [INFO] [stdout] 1476 | let loader = std::mem::transmute(sg_gl_getprocaddr(sg, concat!(stringify!($name), "\0").as_ptr(), wgl_getprocaddress)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `generate_gl_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1478:21 [INFO] [stdout] | [INFO] [stdout] 1478 | $name = val; [INFO] [stdout] | ^^^^^ use of mutable static [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: this warning originates in the macro `generate_gl_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1476:30 [INFO] [stdout] | [INFO] [stdout] 1476 | let loader = std::mem::transmute(sg_gl_getprocaddr(sg, concat!(stringify!($name), "\0").as_ptr(), wgl_getprocaddress)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1486 | / generate_gl_types!( [INFO] [stdout] 1487 | | glBindVertexArray, (), (), (array: GLuint); [INFO] [stdout] 1488 | | glFramebufferTextureLayer, (), (), (target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint); [INFO] [stdout] 1489 | | glGenFramebuffers, (), (), (n : GLsizei, framebuffers: *const GLuint); [INFO] [stdout] ... | [INFO] [stdout] 1589 | | [INFO] [stdout] 1590 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `generate_gl_types` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1812:5 [INFO] [stdout] | [INFO] [stdout] 1812 | glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:1809:1 [INFO] [stdout] | [INFO] [stdout] 1809 | unsafe fn sg_gl_init_limits(sg: &mut sg_state_t) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1812:5 [INFO] [stdout] | [INFO] [stdout] 1812 | glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1816:5 [INFO] [stdout] | [INFO] [stdout] 1816 | glGetIntegerv(GL_MAX_CUBE_MAP_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1816:5 [INFO] [stdout] | [INFO] [stdout] 1816 | glGetIntegerv(GL_MAX_CUBE_MAP_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1819:5 [INFO] [stdout] | [INFO] [stdout] 1819 | glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1819:5 [INFO] [stdout] | [INFO] [stdout] 1819 | glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1825:5 [INFO] [stdout] | [INFO] [stdout] 1825 | glGetIntegerv(GL_MAX_VERTEX_UNIFORM_VECTORS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1825:5 [INFO] [stdout] | [INFO] [stdout] 1825 | glGetIntegerv(GL_MAX_VERTEX_UNIFORM_VECTORS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1830:9 [INFO] [stdout] | [INFO] [stdout] 1830 | glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1830:9 [INFO] [stdout] | [INFO] [stdout] 1830 | glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1833:9 [INFO] [stdout] | [INFO] [stdout] 1833 | glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1833:9 [INFO] [stdout] | [INFO] [stdout] 1833 | glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1839:9 [INFO] [stdout] | [INFO] [stdout] 1839 | glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1839:9 [INFO] [stdout] | [INFO] [stdout] 1839 | glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1845:5 [INFO] [stdout] | [INFO] [stdout] 1845 | glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1845:5 [INFO] [stdout] | [INFO] [stdout] 1845 | glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &mut gl_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1871:5 [INFO] [stdout] | [INFO] [stdout] 1871 | glGetIntegerv(GL_NUM_EXTENSIONS, &mut num_ext); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:1850:1 [INFO] [stdout] | [INFO] [stdout] 1850 | unsafe fn sg_gl_init_caps_glcore33(sg: &mut sg_state_t) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1871:5 [INFO] [stdout] | [INFO] [stdout] 1871 | glGetIntegerv(GL_NUM_EXTENSIONS, &mut num_ext); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1873:19 [INFO] [stdout] | [INFO] [stdout] 1873 | let ext = glGetStringi(GL_EXTENSIONS, i as GLuint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1873:19 [INFO] [stdout] | [INFO] [stdout] 1873 | let ext = glGetStringi(GL_EXTENSIONS, i as GLuint); [INFO] [stdout] | ^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1876:23 [INFO] [stdout] | [INFO] [stdout] 1876 | let ext = std::ffi::CStr::from_ptr(ext as *const i8).to_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sgfx::sg_gl_init_limits` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:1905:5 [INFO] [stdout] | [INFO] [stdout] 1905 | sg_gl_init_limits(sg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2120:9 [INFO] [stdout] | [INFO] [stdout] 2120 | glBindBuffer(GL_ARRAY_BUFFER, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:2118:1 [INFO] [stdout] | [INFO] [stdout] 2118 | unsafe fn sg_gl_cache_clear_buffer_bindings(sg: &mut sg_state_t, force: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2120:9 [INFO] [stdout] | [INFO] [stdout] 2120 | glBindBuffer(GL_ARRAY_BUFFER, 0); [INFO] [stdout] | ^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2124:9 [INFO] [stdout] | [INFO] [stdout] 2124 | glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2124:9 [INFO] [stdout] | [INFO] [stdout] 2124 | glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); [INFO] [stdout] | ^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2137:13 [INFO] [stdout] | [INFO] [stdout] 2137 | glActiveTexture(gl_texture_slot); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:2129:1 [INFO] [stdout] | [INFO] [stdout] 2129 | unsafe fn sg_gl_cache_clear_texture_bindings(sg: &mut sg_state_t, force: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2137:13 [INFO] [stdout] | [INFO] [stdout] 2137 | glActiveTexture(gl_texture_slot); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2138:13 [INFO] [stdout] | [INFO] [stdout] 2138 | glBindTexture(GL_TEXTURE_2D, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2138:13 [INFO] [stdout] | [INFO] [stdout] 2138 | glBindTexture(GL_TEXTURE_2D, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | glBindTexture(GL_TEXTURE_CUBE_MAP, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | glBindTexture(GL_TEXTURE_CUBE_MAP, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2142:17 [INFO] [stdout] | [INFO] [stdout] 2142 | glBindTexture(GL_TEXTURE_3D, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2142:17 [INFO] [stdout] | [INFO] [stdout] 2142 | glBindTexture(GL_TEXTURE_3D, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2143:17 [INFO] [stdout] | [INFO] [stdout] 2143 | glBindTexture(GL_TEXTURE_2D_ARRAY, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2143:17 [INFO] [stdout] | [INFO] [stdout] 2143 | glBindTexture(GL_TEXTURE_2D_ARRAY, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2159:13 [INFO] [stdout] | [INFO] [stdout] 2159 | glBindVertexArray(ctx.vao); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/sgfx.rs:2153:1 [INFO] [stdout] | [INFO] [stdout] 2153 | unsafe fn sg_gl_reset_state_cache(sg: &mut sg_state_t, ctx_id: sg_context) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2159:13 [INFO] [stdout] | [INFO] [stdout] 2159 | glBindVertexArray(ctx.vao); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sgfx::sg_gl_cache_clear_buffer_bindings` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2164:9 [INFO] [stdout] | [INFO] [stdout] 2164 | sg_gl_cache_clear_buffer_bindings(sg, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `sgfx::sg_gl_cache_clear_texture_bindings` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2166:9 [INFO] [stdout] | [INFO] [stdout] 2166 | sg_gl_cache_clear_texture_bindings(sg, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2172:13 [INFO] [stdout] | [INFO] [stdout] 2172 | glDisableVertexAttribArray(i as GLuint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2172:13 [INFO] [stdout] | [INFO] [stdout] 2172 | glDisableVertexAttribArray(i as GLuint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2179:9 [INFO] [stdout] | [INFO] [stdout] 2179 | glGetIntegerv(GL_CURRENT_PROGRAM, &mut get_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2179:9 [INFO] [stdout] | [INFO] [stdout] 2179 | glGetIntegerv(GL_CURRENT_PROGRAM, &mut get_int); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2193:9 [INFO] [stdout] | [INFO] [stdout] 2193 | glEnable(GL_DEPTH_TEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2193:9 [INFO] [stdout] | [INFO] [stdout] 2193 | glEnable(GL_DEPTH_TEST); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2194:9 [INFO] [stdout] | [INFO] [stdout] 2194 | glDepthFunc(GL_ALWAYS); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2194:9 [INFO] [stdout] | [INFO] [stdout] 2194 | glDepthFunc(GL_ALWAYS); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2195:9 [INFO] [stdout] | [INFO] [stdout] 2195 | glDepthMask(GL_FALSE as u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2195:9 [INFO] [stdout] | [INFO] [stdout] 2195 | glDepthMask(GL_FALSE as u8); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `TestLoad` (bin "TestLoad") due to 5 previous errors; 297 warnings emitted [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2196:9 [INFO] [stdout] | [INFO] [stdout] 2196 | glDisable(GL_STENCIL_TEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2196:9 [INFO] [stdout] | [INFO] [stdout] 2196 | glDisable(GL_STENCIL_TEST); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2197:9 [INFO] [stdout] | [INFO] [stdout] 2197 | glStencilFunc(GL_ALWAYS, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2197:9 [INFO] [stdout] | [INFO] [stdout] 2197 | glStencilFunc(GL_ALWAYS, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2198:9 [INFO] [stdout] | [INFO] [stdout] 2198 | glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2198:9 [INFO] [stdout] | [INFO] [stdout] 2198 | glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2199:9 [INFO] [stdout] | [INFO] [stdout] 2199 | glStencilMask(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2199:9 [INFO] [stdout] | [INFO] [stdout] 2199 | glStencilMask(0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2208:9 [INFO] [stdout] | [INFO] [stdout] 2208 | glDisable(GL_BLEND); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2208:9 [INFO] [stdout] | [INFO] [stdout] 2208 | glDisable(GL_BLEND); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2209:9 [INFO] [stdout] | [INFO] [stdout] 2209 | glBlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2209:9 [INFO] [stdout] | [INFO] [stdout] 2209 | glBlendFuncSeparate(GL_ONE, GL_ZERO, GL_ONE, GL_ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2210:9 [INFO] [stdout] | [INFO] [stdout] 2210 | glBlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2210:9 [INFO] [stdout] | [INFO] [stdout] 2210 | glBlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2211:9 [INFO] [stdout] | [INFO] [stdout] 2211 | glBlendColor(0.0, 0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2211:9 [INFO] [stdout] | [INFO] [stdout] 2211 | glBlendColor(0.0, 0.0, 0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2220:9 [INFO] [stdout] | [INFO] [stdout] 2220 | glColorMask(GL_TRUE as u8, GL_TRUE as u8, GL_TRUE as u8, GL_TRUE as u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2220:9 [INFO] [stdout] | [INFO] [stdout] 2220 | glColorMask(GL_TRUE as u8, GL_TRUE as u8, GL_TRUE as u8, GL_TRUE as u8); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2221:9 [INFO] [stdout] | [INFO] [stdout] 2221 | glPolygonOffset(0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2221:9 [INFO] [stdout] | [INFO] [stdout] 2221 | glPolygonOffset(0.0, 0.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2222:9 [INFO] [stdout] | [INFO] [stdout] 2222 | glDisable(GL_POLYGON_OFFSET_FILL); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2222:9 [INFO] [stdout] | [INFO] [stdout] 2222 | glDisable(GL_POLYGON_OFFSET_FILL); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2223:9 [INFO] [stdout] | [INFO] [stdout] 2223 | glDisable(GL_CULL_FACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2223:9 [INFO] [stdout] | [INFO] [stdout] 2223 | glDisable(GL_CULL_FACE); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2224:9 [INFO] [stdout] | [INFO] [stdout] 2224 | glFrontFace(GL_CW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2224:9 [INFO] [stdout] | [INFO] [stdout] 2224 | glFrontFace(GL_CW); [INFO] [stdout] | ^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2225:9 [INFO] [stdout] | [INFO] [stdout] 2225 | glCullFace(GL_BACK); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2225:9 [INFO] [stdout] | [INFO] [stdout] 2225 | glCullFace(GL_BACK); [INFO] [stdout] | ^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2226:9 [INFO] [stdout] | [INFO] [stdout] 2226 | glEnable(GL_SCISSOR_TEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2226:9 [INFO] [stdout] | [INFO] [stdout] 2226 | glEnable(GL_SCISSOR_TEST); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2227:9 [INFO] [stdout] | [INFO] [stdout] 2227 | glDisable(GL_SAMPLE_ALPHA_TO_COVERAGE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2227:9 [INFO] [stdout] | [INFO] [stdout] 2227 | glDisable(GL_SAMPLE_ALPHA_TO_COVERAGE); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2228:9 [INFO] [stdout] | [INFO] [stdout] 2228 | glEnable(GL_DITHER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2228:9 [INFO] [stdout] | [INFO] [stdout] 2228 | glEnable(GL_DITHER); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2229:9 [INFO] [stdout] | [INFO] [stdout] 2229 | glDisable(GL_POLYGON_OFFSET_FILL); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2229:9 [INFO] [stdout] | [INFO] [stdout] 2229 | glDisable(GL_POLYGON_OFFSET_FILL); [INFO] [stdout] | ^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2231:9 [INFO] [stdout] | [INFO] [stdout] 2231 | glEnable(GL_MULTISAMPLE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2231:9 [INFO] [stdout] | [INFO] [stdout] 2231 | glEnable(GL_MULTISAMPLE); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2232:9 [INFO] [stdout] | [INFO] [stdout] 2232 | glEnable(GL_PROGRAM_POINT_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/sgfx.rs:2232:9 [INFO] [stdout] | [INFO] [stdout] 2232 | glEnable(GL_PROGRAM_POINT_SIZE); [INFO] [stdout] | ^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `p.buffers` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/sgfx.rs:2554:10 [INFO] [stdout] | [INFO] [stdout] 2554 | &mut p.buffers[slot_index as usize] [INFO] [stdout] | ^^^^^^^^^ `p` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 2550 | fn sg_buffer_at(p: &mut sg_pools_t, buf_id: u32) -> &mut sg_buffer_t { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 297 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "2fbc08c610cf98b3c0d5229971933eef3f7b1c5d7864845af176d12fd1c99d3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fbc08c610cf98b3c0d5229971933eef3f7b1c5d7864845af176d12fd1c99d3c", kill_on_drop: false }` [INFO] [stdout] 2fbc08c610cf98b3c0d5229971933eef3f7b1c5d7864845af176d12fd1c99d3c