-
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
Compiler panicked at 'called Option::unwrap()
on a None
value', compiler/rustc_middle/src/ty/query/mod.rs:235:5
#79891
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.
Comments
I have encountered this error as well. I'm not sure what code might have triggered it (it happened right after the addition of a couple Meta
Error output
Backtrace with relevant notes
|
Duplicate of #79661, this should be fixed on the latest nightly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I believe the compiler error started to occur after doing the following:
I added dependency
lazy_static = "1.4.0"
tocargo.toml
and use itslazy_static
macro in 2 files like shown in the code section of this bug report.I can workaround the compiler error with
cargo clean
and thencargo build
. Though, after a couple of builds the error re-emerges.Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: