-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Access violation exception with nightly-msvc (x86 only) #2310
Comments
It does not crash with x64 compiler, but does with the x86 one. How is it possible? |
@oli-obk could you add a bug label here? |
Thanks for looking into this more closely. So a debug clippy works but a release clippy fails? Or is it whether the crate is built in release mode? |
Yes, it was about the clippy compiled in debug mode. Only release and only x86 version crashes. |
It was even worse:
rustc 1.31.0 (abe02cefd 2018-12-04) But yes, nightly-i686 clippy works well: rustc 1.33.0-nightly (adbfec2 2018-12-17) |
Huh, how come that it is the same clippy version (0.0.212) in release and nightly with different revisions? |
Clippy is no longer distributed as the crate and versions doesn't matter for rustup. |
Funny thing: it works in debug build, but crashes in the release one.
It looks like the failing code is in EarlyLintPass::check_block (according to windows debugger).
https://github.com/rust-lang-nursery/rust-clippy/blob/1ecce2d803dbae76b2956012c3213ce7448cceae/clippy_lints/src/returns.rs#L106-L128
Project which causes this crash: https://github.com/sciter-sdk/rust-sciter (run
cargo +nightly clippy
).Env:
The text was updated successfully, but these errors were encountered: