thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/efec545293b9263be9edfb283a7aa66350b3acbf/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.59.0-nightly (efec54529 2021-12-04) running on x86_64-unknown-linux-gnu note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin note: some of the compiler flags provided by cargo are hidden query stack during panic: #0 [collect_mod_item_types] collecting item types in top-level module #1 [analysis] running analysis passes on this crate end of query stack