Skip to content

ICE: panicked at 'called Option::unwrap() on a None value', compiler/rustc_hir/src/definitions.rs:452:14 #91585

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

Closed
Bunch-of-cells opened this issue Dec 6, 2021 · 3 comments
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

@Bunch-of-cells
Copy link

Bunch-of-cells commented Dec 6, 2021

Code

<code>

Meta

rustc --version --verbose:

<version>

Error output

<output>
Backtrace

<backtrace>

alumin112@pop-os:~/Desktop/Rust/othello$ cargo run
   Compiling othello v0.1.0 (/home/alumin112/Desktop/Rust/othello)
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/compiler/rustc_hir/src/definitions.rs:452:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.57.0 (f1edd0429 2021-11-29) running on x86_64-unknown-linux-gnu

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `othello`
@Bunch-of-cells Bunch-of-cells added 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. labels Dec 6, 2021
@fee1-dead
Copy link
Member

Hello @Alumin112, could you please edit the issue description to include the source code that caused this error? Thanks.

@fee1-dead fee1-dead changed the title I got this error panicked at 'called Option::unwrap() on a None value', compiler/rustc_hir/src/definitions.rs:452:14 Dec 6, 2021
@fee1-dead fee1-dead changed the title panicked at 'called Option::unwrap() on a None value', compiler/rustc_hir/src/definitions.rs:452:14 ICE: panicked at 'called Option::unwrap() on a None value', compiler/rustc_hir/src/definitions.rs:452:14 Dec 6, 2021
@hellow554
Copy link
Contributor

Looks like a dup of #90715

@cjgillot
Copy link
Contributor

Closing as duplicate.

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.
Projects
None yet
Development

No branches or pull requests

4 participants