-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: called Option::unwrap()
on a None
value', compiler\rustc_hir\src\definitions.rs:452:14
#90682
Comments
Option::unwrap()
on a None
value', compiler\rustc_hir\src\definitions.rs:452:14
@Crazytieguy can you still reproduce the crash if you remove |
@jyn514 If I remove -Z share-generics it compiles :) |
Option::unwrap()
on a None
value', compiler\rustc_hir\src\definitions.rs:452:14-Zshare-generics
: ICE: called Option::unwrap()
on a None
value', compiler\rustc_hir\src\definitions.rs:452:14
cc @davidtwco |
|
Oh oops, sorry. Never mind then. |
This looks suspiciously like an incremental compilation bug. @Crazytieguy, do you happen to know which part of the code you modified before the ICE occurred? |
@michaelwoerister The change has to be in here Crazytieguy/bevy_chess@64592ff If I remember correctly, the last thing I did was replace PlayerTurn with GameStatus. camera.rs was complete and working properly before, so it's not that. |
I experienced the same ICE after writing this commit. The last file I had worked on was |
|
-Zshare-generics
: ICE: called Option::unwrap()
on a None
value', compiler\rustc_hir\src\definitions.rs:452:14Option::unwrap()
on a None
value', compiler\rustc_hir\src\definitions.rs:452:14
I encountered this issue when adding
I tried recreating it in a small project as well but I had no luck. It's actix-web with SeaQL. I encountered the compiler error after adding try_join! in a similar state to as it is presented. The issue did not go away and did not compile until I also used Full backtrace:
Be aware I'm a new developer and I have no idea what I'm doing. rustc 1.57.0 (f1edd04 2021-11-29), Manjaro |
changes cause rustc ICE propably related to: rust-lang/rust#90682
Also encountered this with 1.57.0 stable in my private project. |
This is a bug in incremental compilation, which makes it very difficult to debug and dependent on the changes between a rebuild and the next. And indeed, the "easy" fix is cargo clean. |
Perhaps we should disable incremental compilation when compiling with a version of rustc that's at least a minor version more recent than the version that was used for the previous build? |
Hopefully fixed by #91919. |
Print a backtrace when query forcing fails. The aim of this PR is to help debugging incremental compilation bugs where query forcing panics. For instance: rust-lang#90682 rust-lang#90697 rust-lang#90715 rust-lang#90739 rust-lang#91401 These bugs happen when the dep-graph attempts to force a dep-node whose fingerprint does not correspond to an actual DefPathHash. PR rust-lang#91741 attempts to hide this bug. I still don't know how to reproduce these bugs, so I sadly could not test this debugging device.
Print a backtrace when query forcing fails. The aim of this PR is to help debugging incremental compilation bugs where query forcing panics. For instance: rust-lang/rust#90682 rust-lang/rust#90697 rust-lang/rust#90715 rust-lang/rust#90739 rust-lang/rust#91401 These bugs happen when the dep-graph attempts to force a dep-node whose fingerprint does not correspond to an actual DefPathHash. PR rust-lang/rust#91741 attempts to hide this bug. I still don't know how to reproduce these bugs, so I sadly could not test this debugging device.
Print a backtrace when query forcing fails. The aim of this PR is to help debugging incremental compilation bugs where query forcing panics. For instance: rust-lang/rust#90682 rust-lang/rust#90697 rust-lang/rust#90715 rust-lang/rust#90739 rust-lang/rust#91401 These bugs happen when the dep-graph attempts to force a dep-node whose fingerprint does not correspond to an actual DefPathHash. PR rust-lang/rust#91741 attempts to hide this bug. I still don't know how to reproduce these bugs, so I sadly could not test this debugging device.
Print a backtrace when query forcing fails. The aim of this PR is to help debugging incremental compilation bugs where query forcing panics. For instance: rust-lang/rust#90682 rust-lang/rust#90697 rust-lang/rust#90715 rust-lang/rust#90739 rust-lang/rust#91401 These bugs happen when the dep-graph attempts to force a dep-node whose fingerprint does not correspond to an actual DefPathHash. PR rust-lang/rust#91741 attempts to hide this bug. I still don't know how to reproduce these bugs, so I sadly could not test this debugging device.
Code
https://github.com/Crazytieguy/bevy_chess/tree/64592ffea7a46662b44588253eee050b8cdf6f6d
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: