-
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
incr.comp.: index out of bounds crashes #49065
Comments
Similar-looking crash on mildly tweaked code under latest nightly:
|
This could potentially be related to #48923? Not sure; on the surface, the outer bits of this backtrace and the other suggest that the crashes occurred at seemingly very different points in compilation, but the actual panic itself in both cases is very similar (index errors in When you say it stopped happening, did you only compile it one time, or has it been compiled more than once now without issue? I ask because @avl reported in the other thread that his difficulty was specifically with recompiles:
|
So I've been developing this code for a few days and it stopped compiling just this evening when I filed this bug. Upgrading to latest nightly stopped the error, but I've made a few changes and now it's broken again with a slightly different but broadly similar stacktrace. |
I've just read the linked bug and yes, sounds very similar. I'm using diesel, which is all macro magic. |
Yeah, I just missed your post before responding. Can you try deleting the incremental cache and/or compiling with |
If I run with CARGO_INCREMENTAL=0, indeed it seems to go away. my code doesn't compile, but rust didn't crash. |
Looks like a bug in incremental compilation. Thanks for the bug report! |
triage: P-high |
Likely a dup of #48923 |
I've hit an issue apparently in the cc crate (version 1.0.8) that I can't get around by disabling incremental compilation. I posted the results in #48923 but can create a new issue if that's the right course of action. I can also provide the sample code if needed. |
@RandomInsano, thanks for the report. This looks indeed like a different problem. I would be great if you could open a separate issue for it. |
I'm closing this as a duplicate of #48923. |
Not sure how useful this is, since I just updated nightly and it stopped happening, but I'll let you judge...
Running
cargo build
on my project, I get this (once RUST_BACKTRACE=full is set):The text was updated successfully, but these errors were encountered: