-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
B - bugDang, that shouldn't have happenedDang, that shouldn't have happenedDS - win32Affects the Win32/Windows backendAffects the Win32/Windows backend
Milestone
Description
This static is registered as a global constructor for Windows binaries:
winit/winit-win32/src/event_loop.rs
Line 531 in de78ffd
| static INIT_MAIN_THREAD_ID: unsafe fn() = { |
That means the function will be invoked by the Windows runtime, so it must have the "C" ABI. The code currently uses the "Rust" ABI, which happens to be the same for fn(), but that's not guaranteed.
(Found by Miri)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
B - bugDang, that shouldn't have happenedDang, that shouldn't have happenedDS - win32Affects the Win32/Windows backendAffects the Win32/Windows backend