-
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
ICE in Creader::resolve_crate() when resolving unknown crate from metadata #40535
Comments
@abonander Great! Is this a regression? |
Not sure, let me check. |
@jseyfried Looks like a beta-to-nightly. On stable and beta I get a regular old "cannot find crate |
Thanks! Self-assigning so I don't forget about this. |
Seems it's a little more complicated than I first expected. I use So this may be due to argument parsing changes instead of changes in Creader, or an unfortunate interaction of such changes, but it also appears to be a stable-to-beta regression since stable doesn't ICE. I initially thought it was a beta-to-nightly regression because beta initially printed the same error as stable, but my beta was outdated and it ICEs after updating. |
I guess it's back to metadata because the arguments don't appear malformed, So... stable-beta regression of metadata loading, I guess? |
cc @nrc |
Maybe related: #40469 |
Found the problematic My first instinct is to just add an |
Wow, I guess it was that simple. I don't get the ICE anymore. PR incoming. |
Minimal reproduction case: https://github.com/abonander/rust-issue-40535 |
Correctly get source for metatdata-only crate type Closes rust-lang#40535 However, I'm not sure how to approach writing a regression test since I'm still working on a reduced test case from the code that caused the ICE in the first place. It's not enough to have an unknown `extern crate` in a metadata crate, it depends on a few extra arguments but I'm not sure which yet. Also replaced the `unwrap()` with a more informative `expect()`. r? @jseyfried
Backtrace and last log statement before panic:
I have the code that caused the ICE (including Cargo.lock) branched off here: https://github.com/abonander/img-dup/tree/ice_mar_2017
@jseyfried I'd like to work on this one, first step will be to attempt building with a debug-mode rustc to get the exact line number.
The text was updated successfully, but these errors were encountered: