-
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
ICE: panicked at 'forcing query with already existing DepNode
'
#101518
Comments
Minimized: #[derive(PartialEq, Eq)]
struct Id<'a> {
ns: &'a str,
}
fn visit_struct() {
let id = Id { ns: "random1" };
const FLAG: Id<'static> = Id {
ns: "needs_to_be_the_same",
};
match id {
FLAG => {}
_ => {}
}
}
fn visit_struct2() {
let id = Id { ns: "random2" };
const FLAG: Id<'static> = Id {
ns: "needs_to_be_the_same",
};
match id {
FLAG => {}
_ => {}
}
} godbolt shows it ICEs as far back as 1.42.0 from 03/2020. |
Thanks for the MCVE. I suspect an issue with |
Ah, damn, I just minimized it, too xD Looks roughly the same. |
@rustbot label S-bug-has-mcve Note that it only ICEs with incremental compilation turned on (hence e.g. it doesnt reproduce on the playground. |
This is probably a duplicate of #83085 |
…imulacrum Add a few known-bug tests The labels of these tests should be changed from `S-bug-has-mcve` to `S-bug-has-test` once this is merged. cc: rust-lang#101518 rust-lang#99492 rust-lang#90950 rust-lang#89196 rust-lang#104034 rust-lang#101350 rust-lang#103705 rust-lang#103899 I couldn't reproduce the failures in rust-lang#101962 and rust-lang#100772 (so either these have started passing, or I didn't repro properly), so leaving those out for now. rust-lang#102065 was a bit more complicated, since it uses `rustc_private` and I didn't want to mess with that.
Hope it's fine to close in favor of #83085 (which has a patch for fixing the issue in progress) |
Code
For now I only have a branch, which can be found at https://github.com/InstantDomain/instant-xml/tree/ice-2. To reproduce, run
cargo test
with either stable (currently 1.63.0) or nightly. UsingCARGO_INCREMENTAL=0
makes the problem go away.cargo clean
doesn't help.Meta
rustc --version --verbose
:Error output
Backtrace
#97858 had a similar error but seems to have been intermittent, while this reproduces every time.
@rustbot label +A-incr-comp +E-needs-mcve
cc @steffahn
The text was updated successfully, but these errors were encountered: