-
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 incr comp after s/trait/struct/: src/librustc/dep_graph/graph.rs:688: DepNode Hir(...) should have been pre-allocated but wasn't. #62649
Comments
Cannot reproduce with local 1.35.0. Build passes with the exact same compiler, git commit and command line. Maybe something travis specific? Can you try to upgrade to the latest 1.36.0 and see if it still happens? |
It works on 1.36.0-beta.7 on travis: https://travis-ci.org/fflorent/nom_locate/jobs/558169394 |
@progval does this happen even after clearing the Travis cache? |
That fixed it. Should I close the issue? |
No, that means it's an incremental compilation bug. Finding a way to reproduce this would be good. |
I just got the same error on my project, and I am able to reproduce it first building on a first commit and then immediately building again on the next commit.
Edit: see my message below |
Okay I got it:
pub trait Something {
fn foo();
}
pub struct Something {
foo: u8,
}
|
Can confirm the mcve above! 🎉 // revisions: rpass1 rpass2
#[cfg(rpass1)]
pub trait Something {
fn foo();
}
#[cfg(rpass2)]
pub struct Something {
pub foo: u8,
}
fn main() {} |
You have to be kidding me. Just from #60525 causing a regression, we can tell that:
used to have different Now they're both
EDIT: I can't get those to trigger an ICE, traits might be special :(. |
cc @Zoxc @michaelwoerister Any idea how matching |
Compiler team triage: Marking as P-high as this is some sort of regression. No assignee yet. |
Hi, I'm affected by this too, I saw from comment it's related to incremental build. What command should I use to workaround this? |
Use |
In my efforts to add things to the glacier, I couldn't get the MVCE to ICE on the latest nightly. |
Just wanted to confirm it again by renaming of trait to struct with rustc 1.41.0 (5e1a799 2020-01-27) |
…ister Remove obsolete workaround. The regression test for rust-lang#62649 appears to pass even without the workaround.
Triage: Since this has been fixed and is covered by a regression test, is it still relevant to keep open? |
Going to close as fixed with test. |
Hi,
I just got a crash on Travis, on stable (1.35.0), when enabling edition="2018"
Commands ran by Travis:
which causes this output:
But I can't reproduce this on my computer.
Link to the Travis log: https://travis-ci.org/fflorent/nom_locate/jobs/558169389
The text was updated successfully, but these errors were encountered: