rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.57k stars 12.74k forks source link

ICE: BoundUniversalRegionError #106874

Closed frozenlib closed 7 months ago

frozenlib commented 1 year ago

Code

use std::marker::PhantomData;
use std::rc::Rc;

pub fn func<V, F: Fn(&mut V)>(f: F) -> A<impl X> {
    A(B(C::new(D::new(move |st| f(st)))))
}

trait X {}
trait Y {
    type V;
}

struct A<T>(T);

struct B<T>(Rc<T>);
impl<T> X for B<T> {}

struct C<T: Y>(T::V);
impl<T: Y> C<T> {
    fn new(_: T) -> Rc<Self> {
        todo!()
    }
}
struct D<V, F>(F, PhantomData<fn(&mut V)>);

impl<V, F> D<V, F> {
    fn new(_: F) -> Self {
        todo!()
    }
}
impl<V, F: Fn(&mut V)> Y for D<V, F> {
    type V = V;
}

Meta

rustc --version --verbose:

rustc 1.68.0-nightly (0b90256ad 2023-01-13)
binary: rustc
commit-hash: 0b90256ada21c6a81b4c18f2c7a23151ab5fc232
commit-date: 2023-01-13
host: x86_64-pc-windows-msvc
release: 1.68.0-nightly
LLVM version: 15.0.6

Error output

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}::'_), '_) } }

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: ::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: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: '_#39r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U15, 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: '_#36r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U13, 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: '_#40r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U16, 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: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: '_#41r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U17, 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: '_#39r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U15, 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: `compute_regions` tainted `infcx` with errors but did not emit any errors --> src\lib.rs:4:1 | 4 | / pub fn func(f: F) -> A { 5 | | A(B(C::new(D::new(move |st| f(st))))) 6 | | } | |_^ | = note: delayed at 0: std::backtrace::Backtrace::disabled 1: std::backtrace::Backtrace::force_capture 2: ::emit_diagnostic 3: ::visit_constant 4: rustc_attr::builtin::find_transparency 5: ::visit_terminator_before_primary_effect 6: ::visit_statement 7: ::visit_statement 8: ::emit_raw_bytes 9: ::new_min 10: ::as_any 11: ::pointer_sized 12: ::emit_u32 13: ::new_min 14: <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind 15: rustc_hir_analysis::check::check::check_abi 16: ::emit_raw_bytes 17: rustc_privacy::provide 18: ::try_mark_green 19: rustc_hir_analysis::hir_wf_check::provide 20: rustc_hir_analysis::check_crate 21: rustc_interface::passes::analysis 22: ::emit_raw_bytes 23: rustc_privacy::provide 24: ::try_mark_green 25: ::new 26: rustc_driver::args::arg_expand_all 27: ::new 28: rustc_driver::args::arg_expand_all 29: ::new 30: ::new 31: std::sys::windows::thread::Thread::new 32: BaseThreadInitThunk 33: RtlUserThreadStart thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `infer_trait_placeholder_mismatch`: the fluent string has an argument `trait_def_id` that was not found. help: no arguments are available ', compiler\rustc_errors\src\emitter.rs:2306:77 stack backtrace: 0: 0x7ffb5de79f52 - ::fmt::hc866bf8b11919b4f error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#40r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U16, 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 1: 0x7ffb5deb668b - core::fmt::write::h67f5a998f81d6731 2: 0x7ffb5de6cc8a - ::fmt::h2b24f2cd1b567825 3: 0x7ffb5de79c9b - std::sys::common::alloc::realloc_fallback::h31973c0233ad2da2 4: 0x7ffb5de7d649 - std::panicking::default_hook::hce60451ac7b3ab94 5: 0x7ffb5de7d2cb - std::panicking::default_hook::hce60451ac7b3ab94 6: 0x7ffaf4a8c37f - rustc_driver[bb081788fe83386c]::describe_lints 7: 0x7ffb5de7dfaf - std::panicking::rust_panic_with_hook::h698ff0019e4f0cfb 8: 0x7ffb5de7dd0e - ::get::h736b7927b09a1075 9: 0x7ffb5de7ac4f - ::fmt::hc866bf8b11919b4f 10: 0x7ffb5de7d9c0 - rust_begin_unwind 11: 0x7ffb5deec215 - core::panicking::panic_fmt::hce3f805b550bd1ec 12: 0x7ffb5deec736 - core::result::unwrap_failed::h3694b801ed086bc0 13: 0x7ffaf1c3083a - ::collect_annotations 14: 0x7ffaf1c33994 - rustc_errors[b2241cae6fc60286]::emitter::is_case_difference 15: 0x7ffaf1c29db1 - ::emit_diagnostic 16: 0x7ffaf1c1fe44 - ::emit_artifact_notification 17: 0x7ffaf1c1f1dd - ::emit_diagnostic 18: 0x7ffaf1c1bc47 - ::emit_diagnostic 19: 0x7ffaf1c1b313 - ::emit_diagnostic 20: 0x7ffaf1c1c139 - ::emit_diagnostic 21: 0x7ffaf1c192e9 - ::drop 22: 0x7ffaf1bd7a30 - ::new 23: 0x7ffaf1bd9b8c - ::new 24: 0x7ffaf1bd195d - ::new 25: 0x7ffaf1bd1704 - ::new 26: 0x7ffaf44a07c0 - _rust_realloc 27: 0x7ffaf449fc16 - _rust_realloc 28: 0x7ffaf449b7ec - _rust_realloc 29: 0x7ffaf449ef7d - _rust_realloc 30: 0x7ffaf449c105 - _rust_realloc 31: 0x7ffbc82d3f2f - _chkstk 32: 0x7ffbc82503d4 - RtlUnwindEx 33: 0x7ffaf449bcb6 - _rust_realloc 34: 0x7ffaf449dc29 - _rust_realloc 35: 0x7ffaf449e03f - _rust_realloc 36: 0x7ffaf449f079 - _rust_realloc 37: 0x7ffaf449c105 - _rust_realloc 38: 0x7ffbc82d3eaf - _chkstk 39: 0x7ffbc824eae6 - RtlFindCharInUnicodeString 40: 0x7ffbc8284b35 - RtlRaiseException 41: 0x7ffbc5b806bc - RaiseException 42: 0x7ffb5dedef48 - _umodti3 43: 0x7ffb5de95268 - _rust_start_panic 44: 0x7ffb5de7e22b - rust_panic 45: 0x7ffb5de7dfd6 - std::panicking::rust_panic_with_hook::h698ff0019e4f0cfb 46: 0x7ffb5de7dd0e - ::get::h736b7927b09a1075 47: 0x7ffb5de7ac4f - ::fmt::hc866bf8b11919b4f 48: 0x7ffb5de7d9c0 - rust_begin_unwind 49: 0x7ffb5deec215 - core::panicking::panic_fmt::hce3f805b550bd1ec 50: 0x7ffb5deb3440 - ::fmt::hf81485f6a8a4e354 51: 0x7ffb5deb33eb - ::fmt::hf81485f6a8a4e354 52: 0x7ffb5deec1d9 - core::option::expect_failed::h42ce0e15bfaf5156 53: 0x7ffaf4826efc - ::fmt 54: 0x7ffaf2aec711 - ::visit_terminator_before_primary_effect 55: 0x7ffaf2ad63b2 - ::visit_statement 56: 0x7ffaf2ad5908 - ::visit_statement 57: 0x7ffaf21f18c5 - ::emit_raw_bytes 58: 0x7ffaf371ffd9 - ::new_min 59: 0x7ffaf38567cf - ::as_any 60: 0x7ffaf2e54459 - ::pointer_sized 61: 0x7ffaf389eedb - ::emit_u32 62: 0x7ffaf37ec6ea - ::new_min 63: 0x7ffaf1cc7c0c - <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis[8bace4e3c18a24d7]::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind 64: 0x7ffaf2e945ab - rustc_hir_analysis[8bace4e3c18a24d7]::check::check::check_abi 65: 0x7ffaf21f3025 - ::emit_raw_bytes 66: 0x7ffaf20abb3c - rustc_privacy[8db6e08342172396]::provide 67: 0x7ffaf21b32cf - ::try_mark_green 68: 0x7ffaf1cd1500 - rustc_hir_analysis[8bace4e3c18a24d7]::hir_wf_check::provide 69: 0x7ffaf1cbb103 - rustc_hir_analysis[8bace4e3c18a24d7]::check_crate 70: 0x7ffaf1df4d1d - rustc_interface[4c4a2b2ce0ade12b]::passes::analysis 71: 0x7ffaf2211d79 - ::emit_raw_bytes 72: 0x7ffaf2134f76 - rustc_privacy[8db6e08342172396]::provide 73: 0x7ffaf21b110f - ::try_mark_green 74: 0x7ffaf1bdaf85 - ::new 75: 0x7ffaf1bec978 - rustc_driver[bb081788fe83386c]::args::arg_expand_all 76: 0x7ffaf1bd0d22 - ::new 77: 0x7ffaf1bebe16 - rustc_driver[bb081788fe83386c]::args::arg_expand_all error: internal compiler error: BoundUniversalRegionError { longer_fr: '_#41r, error_element: Location(bb0[0]), placeholder: Placeholder { universe: U17, 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 78: 0x7ffaf1bdc123 - ::new 79: 0x7ffaf1bd4b2d - ::new 80: 0x7ffb5de90b3c - std::sys::windows::thread::Thread::new::hd0260019de9c231a 81: 0x7ffbc78426bd - BaseThreadInitThunk 82: 0x7ffbc828dfb8 - RtlUserThreadStart 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] thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `infer_trait_placeholder_mismatch`: note: some of the compiler flags provided by cargo are hidden query stack during panic: end of query stack thread panicked while panicking. aborting. the fluent string has an argument `trait_def_id` that was not found. help: no arguments are available ', compiler\rustc_errors\src\emitter.rs:2306:77 stack backtrace: 0: 0x7ffb5de79f52 - ::fmt::hc866bf8b11919b4f 1: 0x7ffb5deb668b - core::fmt::write::h67f5a998f81d6731 2: 0x7ffb5de6cc8a - ::fmt::h2b24f2cd1b567825 3: 0x7ffb5de79c9b - std::sys::common::alloc::realloc_fallback::h31973c0233ad2da2 4: 0x7ffb5de7d649 - std::panicking::default_hook::hce60451ac7b3ab94 5: 0x7ffb5de7d2cb - std::panicking::default_hook::hce60451ac7b3ab94 6: 0x7ffaf4a8c37f - rustc_driver[bb081788fe83386c]::describe_lints 7: 0x7ffb5de7dfaf - std::panicking::rust_panic_with_hook::h698ff0019e4f0cfb 8: 0x7ffb5de7dd0e - ::get::h736b7927b09a1075 9: 0x7ffb5de7ac4f - ::fmt::hc866bf8b11919b4f 10: 0x7ffb5de7d9c0 - rust_begin_unwind 11: 0x7ffb5deec215 - core::panicking::panic_fmt::hce3f805b550bd1ec 12: 0x7ffb5deec736 - core::result::unwrap_failed::h3694b801ed086bc0 13: 0x7ffaf1c3083a - ::collect_annotations 14: 0x7ffaf1c33994 - rustc_errors[b2241cae6fc60286]::emitter::is_case_difference 15: 0x7ffaf1c29db1 - ::emit_diagnostic 16: 0x7ffaf1c1fe44 - ::emit_artifact_notification 17: 0x7ffaf1c1f1dd - ::emit_diagnostic 18: 0x7ffaf1c1bc47 - ::emit_diagnostic 19: 0x7ffaf1c1b313 - ::emit_diagnostic 20: 0x7ffaf1c1c139 - ::emit_diagnostic 21: 0x7ffaf1c192e9 - ::drop 22: 0x7ffaf1bd7a30 - ::new 23: 0x7ffaf1bd9b8c - ::new 24: 0x7ffaf1bd195d - ::new 25: 0x7ffaf1bd1704 - ::new 26: 0x7ffaf44a07c0 - _rust_realloc 27: 0x7ffaf449fc16 - _rust_realloc 28: 0x7ffaf449b7ec - _rust_realloc 29: 0x7ffaf449ef7d - _rust_realloc 30: 0x7ffaf449c105 - _rust_realloc 31: 0x7ffbc82d3f2f - _chkstk 32: 0x7ffbc82503d4 - RtlUnwindEx 33: 0x7ffaf449bcb6 - _rust_realloc 34: 0x7ffaf449dc29 - _rust_realloc 35: 0x7ffaf449e03f - _rust_realloc 36: 0x7ffaf449f079 - _rust_realloc 37: 0x7ffaf449c105 - _rust_realloc 38: 0x7ffbc82d3eaf - _chkstk 39: 0x7ffbc824eae6 - RtlFindCharInUnicodeString 40: 0x7ffbc8284b35 - RtlRaiseException 41: 0x7ffbc5b806bc - RaiseException 42: 0x7ffb5dedef48 - _umodti3 43: 0x7ffb5de95268 - _rust_start_panic 44: 0x7ffb5de7e22b - rust_panic 45: 0x7ffb5de7dfd6 - std::panicking::rust_panic_with_hook::h698ff0019e4f0cfb 46: 0x7ffb5de7dd0e - ::get::h736b7927b09a1075 47: 0x7ffb5de7ac4f - ::fmt::hc866bf8b11919b4f 48: 0x7ffb5de7d9c0 - rust_begin_unwind 49: 0x7ffb5deec215 - core::panicking::panic_fmt::hce3f805b550bd1ec 50: 0x7ffb5deb3440 - ::fmt::hf81485f6a8a4e354 51: 0x7ffb5deb33eb - ::fmt::hf81485f6a8a4e354 52: 0x7ffb5deec1d9 - core::option::expect_failed::h42ce0e15bfaf5156 53: 0x7ffaf4826efc - ::fmt 54: 0x7ffaf2aec711 - ::visit_terminator_before_primary_effect 55: 0x7ffaf2ad63b2 - ::visit_statement 56: 0x7ffaf2ad5908 - ::visit_statement 57: 0x7ffaf21f18c5 - ::emit_raw_bytes 58: 0x7ffaf371ffd9 - ::new_min 59: 0x7ffaf38567cf - ::as_any 60: 0x7ffaf2e54459 - ::pointer_sized 61: 0x7ffaf389eedb - ::emit_u32 62: 0x7ffaf37ec6ea - ::new_min 63: 0x7ffaf1cc7c0c - <::create_substs_for_ast_path::{closure#0}::SubstsForAstPathCtxt as rustc_hir_analysis[8bace4e3c18a24d7]::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind 64: 0x7ffaf2e945ab - rustc_hir_analysis[8bace4e3c18a24d7]::check::check::check_abi 65: 0x7ffaf21f3025 - ::emit_raw_bytes 66: 0x7ffaf20abb3c - rustc_privacy[8db6e08342172396]::provide 67: 0x7ffaf21b32cf - ::try_mark_green 68: 0x7ffaf1cd1500 - rustc_hir_analysis[8bace4e3c18a24d7]::hir_wf_check::provide 69: 0x7ffaf1cbb103 - rustc_hir_analysis[8bace4e3c18a24d7]::check_crate 70: 0x7ffaf1df4d1d - rustc_interface[4c4a2b2ce0ade12b]::passes::analysis 71: 0x7ffaf2211d79 - ::emit_raw_bytes error: could not compile `ice-example` Caused by: process didn't exit successfully: `rustc --crate-name ice_example --edition=2021 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=186 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b88d3f7568afe792 -C extra-filename=-b88d3f7568afe792 --out-dir F:\my_data\projects\ice-example\target\debug\deps -C incremental=F:\my_data\projects\ice-example\target\debug\incremental -L dependency=F:\my_data\projects\ice-example\target\debug\deps` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN) warning: build failed, waiting for other jobs to finish... 72: 0x7ffaf2134f76 - rustc_privacy[8db6e08342172396]::provide 73: 0x7ffaf21b110f - ::try_mark_green 74: 0x7ffaf1bdaf85 - ::new 75: 0x7ffaf1bec978 - rustc_driver[bb081788fe83386c]::args::arg_expand_all 76: 0x7ffaf1bd0d22 - ::new 77: 0x7ffaf1bebe16 - rustc_driver[bb081788fe83386c]::args::arg_expand_all 78: 0x7ffaf1bdc123 - ::new 79: 0x7ffaf1bd4b2d - ::new 80: 0x7ffb5de90b3c - std::sys::windows::thread::Thread::new::hd0260019de9c231a 81: 0x7ffbc78426bd - BaseThreadInitThunk 82: 0x7ffbc828dfb8 - RtlUserThreadStart 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: end of query stack thread panicked while panicking. aborting. error: could not compile `ice-example` ``` https://gist.github.com/frozenlib/f473e0008fb5af5d1e48187c2934e536

compiler-errors commented 1 year ago

This was fixed in #115384.

searched nightlies: from nightly-2023-06-01 to nightly-2023-09-22 regressed nightly: nightly-2023-09-01 searched commit range: https://github.com/rust-lang/rust/compare/59a8294849358a878a72358aa6d5fe5b9d312867...2f5df8a94bb3c5fae4e3fcbfc8ef20f1f976cb19 regressed commit: https://github.com/rust-lang/rust/commit/4b71f0303978581cb7444f0c493a0b35dab621e6

bisected with cargo-bisect-rustc v0.6.6 Host triple: aarch64-unknown-linux-gnu Reproduce with: ```bash cargo bisect-rustc --start=2023-06-01 --regress=non-ice ```