-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Panic when compiling dft library v0.5.3 #38754
Comments
@nagisa adviced me to remove the However I still treat it as a bug, mainly because IMO, compiler should track versions of all relevant data such as caches, targets and so on. |
This seems to be #37803, which is fixed. While this won't happen in the future, you can still hit the bug when changing the compiler from buggy version to fixed version. Do you still want that fixed, or is this good enough? As I understand, the bug was never in any release. |
Well, I think it's not me who should decide. It is definitely not a blocker for me, because there is an easy solution: just do However, I think this bug may affect some non-trivial setups like compile farms or online compilers where one may eventually face some strange compilation errors. |
Closing as not actual |
It all started when I tried to use
clap
library in my project. I addedclap = "2.19.3"
toCargo.toml
and tried to rebuild:…Wait, what? I'm on Linux, why is it trying to download Windows specific libraries?! So I hit
^C
and rechecked the setup. I found nothing very special and concluded that there are some weird dependencies in the libraries, so I tried to continue.Unfortunately, there was another problem:
At that time I realized that my compiler is rather new (built from
39c9f184 Sat Dec 10
) but mycargo
binary is from the very old Rust package1.6.0 (c30b771ad 2016-01-19)
so it may not be able to parse some new syntax.Of course I've tried to upgrade my Rust installation, so I went to the installation site and used now available rustup:
All seemed working as expected, so I tried to recompile again:
Oops. Looks like something went terribly wrong. So, the complete compiler output is:
My guess is that there is some problem with caches versioning or incremental compilation. Should I reset the caches somehow?
P.S.: I intentionally tried to write as detailed as possible because it looks like a problem related to environment and compiler changes. Hope this will help.
The text was updated successfully, but these errors were encountered: