Option::unwrap()
on a None
value in compiler/rustc_middle/src/ty/query/mod.rs
#80049
Labels
A-incr-comp
Area: Incremental compilation
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.
I encountered the backtrace that you can find below when compiling the documentation for Tokio. Unfortunately I am not able to provide a reproducible example because the panic appears to have been caused by the specific state of the incremental artifacts in the
target/
directory when compiling the code.The error was triggered after having performed a
git switch some-other-branch
from one version of the code to another. I don't think this checkout has modified any code in thetokio-test
crate.The compiler version in question was
rustc 1.50.0-nightly (3d6705aa5 2020-12-07)
running on Arch Linux. The error is persisted if I run the command several times, but both upgrading rustc and deletingtarget/
makes it go away. I assume that upgrading rustc doesn't trigger it because it doesn't try to reuse the old artifacts, which is why I submitted this even though I could not trigger it after upgrading.Backtrace
I hope that the above panic backtrace is enough that you can figure out what went wrong, because if not, then I'm sorry but I can't reproduce it.
The text was updated successfully, but these errors were encountered: