-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Non-consecutive crate IDs triggering assert #13560
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
Labels
A-syntaxext
Area: Syntax extensions
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
I think that I have a fix for this, but I'm unable to reproduce in a smaller test case. Do you know of a way to minimize to something other than |
I poked around a tiny bit last night but didn't find a repo. I'd imagine that it'd just be "link against a ton of crates with a syntax one somewhere in the middle". I can try to make another repro tonight. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 16, 2014
Syntax-only crates are no longer registered with the cstore, so there's no need to allocate crate numbers to them. This ends up leaving gaps in the crate numbering scheme which is not expected in the rest of the compiler. Closes rust-lang#13560
Here's a very minimal test case: #![feature(phase)]
#[phase(syntax)]
extern crate fourcc;
#[phase(syntax, link)]
extern crate log; |
bors
added a commit
that referenced
this issue
Apr 17, 2014
Syntax-only crates are no longer registered with the cstore, so there's no need to allocate crate numbers to them. This ends up leaving gaps in the crate numbering scheme which is not expected in the rest of the compiler. Closes #13560
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-syntaxext
Area: Syntax extensions
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
building sfackler/rust-postgres@650a030 triggers an assert inside of
metadata::encoder
:Moving the
#[phase(syntax)] extern crate rust_phf
to the bottom of the crate list suppresses the issue. It looks like syntax-only crates are still taking a crate ID increader
which is creating "holes" at link-time. I tried simply removing the assert that tripped but that broke the world.The text was updated successfully, but these errors were encountered: