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

ICE: rustc' panicked at 'called Option::unwrap() on a None value', .../definitions.rs:452:14 #95248

Closed
ArthurKValladares opened this issue Mar 23, 2022 · 4 comments
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example 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

@ArthurKValladares
Copy link

Sorry for not providing a lot of details, I currently can't dedicate the time to find a minimal repro. I'll try to at least update the post with a backtrace in the near future.

Meta

rustc --version --verbose:

rustc 1.58.1 (db9d1b20b 2022-01-20)
binary: rustc
commit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b
commit-date: 2022-01-20
host: x86_64-apple-darwin
release: 1.58.1
LLVM version: 13.0.0

Error output

thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/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.58.1 (db9d1b20b 2022-01-20) running on x86_64-apple-darwin

note: compiler flags: -C embed-bitcode=no -C split-debuginfo=unpacked -C codegen-units=16 -C debuginfo=2 -C incremental -C target-cpu=native -C link-arg=-undefined -C link-arg=dynamic_lookup --crate-type lib

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

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `texture::Texture: core::marker::Send`
#1 [check_item_well_formed] checking that `shader_technique::default::<impl at brainstorm/src/gal/src/shader_technique/default.rs:39:1: 60:2>` is well-formed
end of query stack
@ArthurKValladares ArthurKValladares 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 23, 2022
@matthiaskrgr matthiaskrgr added the E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example label Mar 25, 2022
@compiler-errors
Copy link
Member

@ArthurKValladares, do you have a repo that reproduces this?

@ArthurKValladares
Copy link
Author

Sadly not quite yet, this is in code I can't share, and there is no clear path to an easy minimal repro. I'll try to dedicate some time to finding a repro in the next few weeks.

@compiler-errors
Copy link
Member

No worries and no rush. Thanks for the update, was just curious..

@workingjubilee
Copy link
Member

As this is from version 1.58.1, I am closing as a likely functional duplicate of this issue. Several fixes were put in to place to resolve this, see the PRs.

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. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example 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