Skip to content
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

rustc panicked at stable_hash_impls.rs: unwrap on None #122576

Closed
DerickEddington opened this issue Mar 15, 2024 · 1 comment
Closed

rustc panicked at stable_hash_impls.rs: unwrap on None #122576

DerickEddington opened this issue Mar 15, 2024 · 1 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.

Comments

@DerickEddington
Copy link

DerickEddington commented Mar 15, 2024

Reproduction

$ git clone --branch=tool-bug/rustc/1 https://github.com/DerickEddington/sailce.git \
  && cd sailce

$ cargo +nightly-2024-03-15 check --workspace --all-targets --all-features

Meta

rustc +nightly-2024-03-15 --version --verbose:

rustc 1.78.0-nightly (f4b771bf1 2024-03-14)
binary: rustc
commit-hash: f4b771bf1fb836392e1c510a625cdc81be09c952
commit-date: 2024-03-14
host: x86_64-unknown-linux-gnu
release: 1.78.0-nightly
LLVM version: 18.1.0

Error output

thread 'rustc' panicked at /rustc/f4b771bf1fb836392e1c510a625cdc81be09c952/compiler/rustc_hir/src/stable_hash_impls.rs:97:35:
called `Option::unwrap()` on a `None` value
...

Backtrace

See attached file:
rustc-ice-2024-03-15T23_33_23-4426.txt

@DerickEddington DerickEddington 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 Mar 15, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 15, 2024
@jieyouxu
Copy link
Member

Thanks for the report. You are running into #122508 which is fixed in the next nightly. In the mean time, you can work around this by #122508 (comment)

A workaround to this issue should be to use cargo check --release or cargo build --release which should disable incremental compilation.

Closing as a duplicate of #122508.

@jieyouxu jieyouxu closed this as not planned Won't fix, can't repro, duplicate, stale Mar 16, 2024
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 16, 2024
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

3 participants