ICE - panic while trying to force a dep node #117903
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
https://github.com/AdaptChat/harmony/tree/ice - repo where ICE happened.
I have attempted to create a minimal verifiable example, however, given this ICE involves async which makes it a lot harder to reproduce an example, I can't provide a minimal verifiable example at this moment.
However, I've done some investigations.
Likely originated from the tokio::main macro.
The error is related to:
https://github.com/AdaptChat/harmony/blob/4782a856468dff82bd20a3fe2675306abd4cb4e3/src/main.rs#L27-L29
When the branches are left empty, the ICE is triggered. However, it disappears when the branches are filled in, e.g.:
It's extremely hard to reproduce and even one slight modification somewhere will cause the ICE to disappear.
Even then, the ICE isn't triggered single time, is very random.
Meta
rustc --version --verbose
:I have the new parallel front-end on:
Error output
Backtrace
The text was updated successfully, but these errors were encountered: