ICE: called Option::unwrap() on a None value
in compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs
#125757
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.
Uh oh!
There was an error while loading. Please reload this page.
Code
(hand-reduced)
#[derive(Default)]
added atstruct MyStruct
, to reduce unrelated error message(original)
Meta
rustc --version --verbose
:Error output
Command:
rustc
Backtrace
Note
rustc_infer/src/infer/error_reporting/note_and_explain.rs L666
rust/compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs
Line 666 in debd22d
The text was updated successfully, but these errors were encountered: