thread 'rustc' panicked at 'no entry found for key', compiler\rustc_borrowck\src\region_infer\mod.rs:2163:9
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.68.0-nightly (0b90256ad 2023-01-13) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
thread 'rustc' panicked at 'no entry found for key', compiler\rustc_borrowck\src\region_infer\mod.rs:2163:9
#0 [mir_borrowck] borrow-checking `func`
#1 [type_of] computing type of `func::{opaque#0}`
end of query stack
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.68.0-nightly (0b90256ad 2023-01-13) running on x86_64-pc-windows-msvc
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `func`
#1 [type_of] computing type of `func::{opaque#0}`
end of query stack
error: internal compiler error: no errors encountered even though `delay_span_bug` issued
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#16r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U1, name: BrNamed(DefId(0:46 ~ ice_example[4d34]::{impl#3}::'_), '_) } }
Code
Meta
rustc --version --verbose
:Error output
Backtrace
Backtrace
``` thread 'rustc' panicked at 'no entry found for key', compiler\rustc_borrowck\src\region_infer\mod.rs:2163:9 stack backtrace: thread 'rustc' panicked at 'no entry found for key', compiler\rustc_borrowck\src\region_infer\mod.rs:2163:9 stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose 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.68.0-nightly (0b90256ad 2023-01-13) running on x86_64-pc-windows-msvc note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED] note: some of the compiler flags provided by cargo are hidden query stack during panic: #0 [mir_borrowck] borrow-checking `func` #1 [type_of] computing type of `func::{opaque#0}` #2 [check_mod_item_types] checking item types in top-level module #3 [analysis] running analysis passes on this crate end of query stack note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose 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.68.0-nightly (0b90256ad 2023-01-13) running on x86_64-pc-windows-msvc note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED] note: some of the compiler flags provided by cargo are hidden query stack during panic: #0 [mir_borrowck] borrow-checking `func` #1 [type_of] computing type of `func::{opaque#0}` #2 [check_mod_item_types] checking item types in top-level module #3 [analysis] running analysis passes on this crate end of query stack error: internal compiler error: no errors encountered even though `delay_span_bug` issued error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#16r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U1, name: BrNamed(DefId(0:46 ~ ice_example[4d34]::{impl#3}::'_), '_) } } | = note: delayed at 0: std::backtrace::Backtrace::disabled 1: std::backtrace::Backtrace::force_capture 2:::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#17r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U2, name: BrNamed(DefId(0:46 ~ ice_example[4d34]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#16r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U1, name: BrNamed(DefId(0:48 ~ ice_example[535b]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#33r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U10, name: BrNamed(DefId(0:46 ~ ice_example[4d34]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#17r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U2, name: BrNamed(DefId(0:48 ~ ice_example[535b]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#34r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U11, name: BrNamed(DefId(0:46 ~ ice_example[4d34]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#33r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U10, name: BrNamed(DefId(0:48 ~ ice_example[535b]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#35r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U12, name: BrNamed(DefId(0:46 ~ ice_example[4d34]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#34r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U11, name: BrNamed(DefId(0:48 ~ ice_example[535b]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#36r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U13, name: BrNamed(DefId(0:46 ~ ice_example[4d34]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: ::new
31: rustc_driver::args::arg_expand_all
32: ::new
33: ::new
34: std::sys::windows::thread::Thread::new
35: BaseThreadInitThunk
36: RtlUserThreadStart
error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#38r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U14, name: BrNamed(DefId(0:46 ~ ice_example[4d34]::{impl#3}::'_), '_) } }
|
= note: delayed at 0: std::backtrace::Backtrace::disabled
1: std::backtrace::Backtrace::force_capture
2: ::emit_diagnostic
3: ::visit_constant
4: ::nice_error
5: ::to_region_vid
6: ::to_region_vid
7: rustc_attr::builtin::find_transparency
8: ::visit_terminator_before_primary_effect
9: ::visit_statement
10: ::visit_statement
11: ::emit_raw_bytes
12: ::new_min
13: ::as_any
14: ::pointer_sized
15: ::emit_u32
16: ::new_min
17: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind
18: rustc_hir_analysis::check::check::check_abi
19: ::emit_raw_bytes
20: rustc_privacy::provide
21: ::try_mark_green
22: rustc_hir_analysis::hir_wf_check::provide
23: rustc_hir_analysis::check_crate
24: rustc_interface::passes::analysis
25: ::emit_raw_bytes
26: rustc_privacy::provide
27: ::try_mark_green
28: ::new
29: rustc_driver::args::arg_expand_all
30: