-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustc generates wrong calling convention for WinMain #8510
Comments
Interesting! |
After some investigation: it is okay to use Note on GUI: for gcc: to make GUI rust application, pass for msvc (#1768): winsdk linker accepts |
…xFrednet Use URL parameters for filter states This fixes rust-lang#8510 by storing Clippy Lints page filter configuration in the URL parameters. This includes: - Lint levels - Lint groups - Version filters "Filter" was already present in the URL and its behavior is retained. There is existing support for passing a `sel` query parameter; this is also retained, but I am not sure if it used in the wild. The URL parameters only get included if they are modified after loading the page. I have these changes available here in case people want to play with it: https://whee.github.io/rust-clippy/master/ An example with levels, groups, and versions set (oddly): https://whee.github.io/rust-clippy/master/#/?groups=pedantic,perf&levels=allow,warn&versions=gte:53,lte:57,eq:54 Adding a filter: https://whee.github.io/rust-clippy/master/#/manual_str_repeat?groups=pedantic,perf&levels=allow,warn&versions=gte:53,lte:57,eq:54 --- changelog: Docs: [`Clippy's lint list`] now stores filter parameters in the URL, to allow easy sharing [rust-lang#10834](rust-lang/rust-clippy#10834) <!-- changelog_checked -->
Currently rustc generates
WinMain
function with cdecl calling convention (src/librustc/middle/trans/base.rs), but Win32 API docs say stdcall is right.Linker works because we actually export it as "WinMain@16", but I think it's a hack and should be fixed.
The text was updated successfully, but these errors were encountered: