-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Clippy ICE on Windows 10, Rust 1.34 (also cargo check) #60230
Comments
Do you have some code to share which reproduces the problem? @rustbot modify labels: I-ICE T-compiler A-mir |
Anything. As you can see, the clippy error happens in system libraries, not my code. I have tried to uninstall and reinstall the toolchain and clippy using rustup, same thing happens. |
So, when you create a new project via |
If I do
|
I have to say, that I cannot reproduce it with a clean project (even after adding |
Yeah, looks like the same crash. It bizarrely reproduces 100% on one machine but not on others. Again, reinstalling toolchain etc has no effect. Either way, I think the fix urgently needs to go into stable. |
Yes, this is likely a duplicate, so closing in favor of #59898. It will be fixed in 1.34.1 |
This in fact still happens on Rust 1.34.1. Please re-open.
|
@hrydgard can you please confirm that it has been fixed on beta by using |
Yes, that's a good idea. The weird thing is that #59898 only really happens on crates that target non-tier1 platforms, so this might still be something else. |
It appears to be fixed in beta for me. Still, indeed mysterious that it doesn't seem to happen for others on Windows. If there's anything you'd want me to check about my installation, I'm happy to do so. |
While fixed in beta, still seeing this on Rust stable 1.34.2, just for the record. I don't understand why it only happens on this one machine on Windows... What could possibly be different? |
As Jonas said, it has not been back ported to stable. Beta branch will be 1.35, not the next 1.34.X, that are only hotfixes (in this case an unsound trait method) |
Yeah, I'm not saying it's unexpected that it's not fixed 1.34.2, I'm saying it's very unexpected that no-one else seems to be hitting it. |
I figured out why it's only happening to me on Windows. I used the following ~/.cargo to speed up builds by linking using LLD:
The killer is opt-level="z", which triggers this problem. "s" does too, but not "2" for example. |
Ah then that's the link between your setup and the embedded use cases that were hitting this. |
Then this is certainly a dup of #59898 |
Getting ICE on the most basic runs of cargo clippy after upgrading to 1.34. In rand??
This is on Windows 10.
The text was updated successfully, but these errors were encountered: