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: BoundUniversalRegionError #106874

Closed
frozenlib opened this issue Jan 14, 2023 · 1 comment · Fixed by #122943
Closed

ICE: BoundUniversalRegionError #106874

frozenlib opened this issue Jan 14, 2023 · 1 comment · Fixed by #122943
Labels
E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. glacier ICE tracked in rust-lang/glacier. 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

@frozenlib
Copy link

frozenlib commented Jan 14, 2023

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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::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<V, F: Fn(&mut V)>(f: F) -> A<impl X> {
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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: rustc_attr::builtin::find_transparency
             5: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             6: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
             7: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
             8: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
             9: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            10: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            11: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            12: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            13: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            14: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            17: rustc_privacy::provide
            18: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            19: rustc_hir_analysis::hir_wf_check::provide
            20: rustc_hir_analysis::check_crate
            21: rustc_interface::passes::analysis
            22: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            23: rustc_privacy::provide
            24: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            25: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            26: rustc_driver::args::arg_expand_all
            27: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            28: rustc_driver::args::arg_expand_all
            29: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::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 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            34: std::sys::windows::thread::Thread::new
            35: BaseThreadInitThunk
            36: RtlUserThreadStart


   1:     0x7ffb5deb668b - core::fmt::write::h67f5a998f81d6731
   2:     0x7ffb5de6cc8a - <std::io::IoSlice as core::fmt::Debug>::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 - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h736b7927b09a1075
   9:     0x7ffb5de7ac4f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc866bf8b11919b4f
  10:     0x7ffb5de7d9c0 - rust_begin_unwind
  11:     0x7ffb5deec215 - core::panicking::panic_fmt::hce3f805b550bd1ec
  12:     0x7ffb5deec736 - core::result::unwrap_failed::h3694b801ed086bc0
  13:     0x7ffaf1c3083a - <rustc_errors[b2241cae6fc60286]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7ffaf1c33994 - rustc_errors[b2241cae6fc60286]::emitter::is_case_difference
  15:     0x7ffaf1c29db1 - <rustc_errors[b2241cae6fc60286]::emitter::EmitterWriter as rustc_errors[b2241cae6fc60286]::emitter::Emitter>::emit_diagnostic
  16:     0x7ffaf1c1fe44 - <rustc_errors[b2241cae6fc60286]::json::JsonEmitter as rustc_errors[b2241cae6fc60286]::emitter::Emitter>::emit_artifact_notification
  17:     0x7ffaf1c1f1dd - <rustc_errors[b2241cae6fc60286]::json::JsonEmitter as rustc_errors[b2241cae6fc60286]::emitter::Emitter>::emit_diagnostic
  18:     0x7ffaf1c1bc47 - <rustc_errors[b2241cae6fc60286]::HandlerInner>::emit_diagnostic
  19:     0x7ffaf1c1b313 - <rustc_errors[b2241cae6fc60286]::HandlerInner>::emit_diagnostic
  20:     0x7ffaf1c1c139 - <rustc_errors[b2241cae6fc60286]::HandlerInner>::emit_diagnostic
  21:     0x7ffaf1c192e9 - <rustc_errors[b2241cae6fc60286]::HandlerInner as core[46165faad62e3de7]::ops::drop::Drop>::drop
  22:     0x7ffaf1bd7a30 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  23:     0x7ffaf1bd9b8c - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  24:     0x7ffaf1bd195d - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  25:     0x7ffaf1bd1704 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::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 - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h736b7927b09a1075
  47:     0x7ffb5de7ac4f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc866bf8b11919b4f
  48:     0x7ffb5de7d9c0 - rust_begin_unwind
  49:     0x7ffb5deec215 - core::panicking::panic_fmt::hce3f805b550bd1ec
  50:     0x7ffb5deb3440 - <core::panic::panic_info::PanicInfo as core::fmt::Display>::fmt::hf81485f6a8a4e354
  51:     0x7ffb5deb33eb - <core::panic::panic_info::PanicInfo as core::fmt::Display>::fmt::hf81485f6a8a4e354
  52:     0x7ffb5deec1d9 - core::option::expect_failed::h42ce0e15bfaf5156
  53:     0x7ffaf4826efc - <rustc_borrowck[8ea061bf871c66e1]::path_utils::Control as core[46165faad62e3de7]::fmt::Debug>::fmt
  54:     0x7ffaf2aec711 - <rustc_borrowck[8ea061bf871c66e1]::MirBorrowckCtxt as rustc_mir_dataflow[4b58f5e2ce45981d]::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
  55:     0x7ffaf2ad63b2 - <rustc_borrowck[8ea061bf871c66e1]::constraint_generation::ConstraintGeneration as rustc_middle[f5d51dd2513ec959]::mir::visit::Visitor>::visit_statement
  56:     0x7ffaf2ad5908 - <rustc_borrowck[8ea061bf871c66e1]::constraint_generation::ConstraintGeneration as rustc_middle[f5d51dd2513ec959]::mir::visit::Visitor>::visit_statement
  57:     0x7ffaf21f18c5 - <rustc_query_impl[ac4d5ea71928498d]::on_disk_cache::CacheEncoder as rustc_serialize[374f527923e49b7f]::serialize::Encoder>::emit_raw_bytes
  58:     0x7ffaf371ffd9 - <rustc_middle[f5d51dd2513ec959]::ty::Visibility as rustc_privacy[8db6e08342172396]::VisibilityLike>::new_min
  59:     0x7ffaf38567cf - <rustc_query_impl[ac4d5ea71928498d]::Queries as rustc_middle[f5d51dd2513ec959]::ty::query::QueryEngine>::as_any
  60:     0x7ffaf2e54459 - <rustc_hir[32b36ec6f432361e]::lang_items::LanguageItems>::pointer_sized
  61:     0x7ffaf389eedb - <rustc_query_impl[ac4d5ea71928498d]::on_disk_cache::CacheEncoder as rustc_serialize[374f527923e49b7f]::serialize::Encoder>::emit_u32
  62:     0x7ffaf37ec6ea - <rustc_middle[f5d51dd2513ec959]::ty::Visibility as rustc_privacy[8db6e08342172396]::VisibilityLike>::new_min
  63:     0x7ffaf1cc7c0c - <<dyn rustc_hir_analysis[8bace4e3c18a24d7]::astconv::AstConv>::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 - <rustc_query_impl[ac4d5ea71928498d]::on_disk_cache::CacheEncoder as rustc_serialize[374f527923e49b7f]::serialize::Encoder>::emit_raw_bytes
  66:     0x7ffaf20abb3c - rustc_privacy[8db6e08342172396]::provide
  67:     0x7ffaf21b32cf - <rustc_query_impl[ac4d5ea71928498d]::Queries as rustc_middle[f5d51dd2513ec959]::ty::query::QueryEngine>::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 - <rustc_query_impl[ac4d5ea71928498d]::on_disk_cache::CacheEncoder as rustc_serialize[374f527923e49b7f]::serialize::Encoder>::emit_raw_bytes
  72:     0x7ffaf2134f76 - rustc_privacy[8db6e08342172396]::provide
  73:     0x7ffaf21b110f - <rustc_query_impl[ac4d5ea71928498d]::Queries as rustc_middle[f5d51dd2513ec959]::ty::query::QueryEngine>::try_mark_green
  74:     0x7ffaf1bdaf85 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  75:     0x7ffaf1bec978 - rustc_driver[bb081788fe83386c]::args::arg_expand_all
  76:     0x7ffaf1bd0d22 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::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: <rustc_errors::HandlerInner>::emit_diagnostic
             3: <rustc_borrowck::renumber::NllVisitor as rustc_middle::mir::visit::MutVisitor>::visit_constant
             4: <rustc_borrowck::type_check::InstantiateOpaqueType as rustc_borrowck::diagnostics::bound_region_errors::TypeOpInfo>::nice_error
             5: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             6: <rustc_middle::ty::sty::Region as rustc_borrowck::nll::ToRegionVid>::to_region_vid
             7: rustc_attr::builtin::find_transparency
             8: <rustc_borrowck::MirBorrowckCtxt as rustc_mir_dataflow::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
             9: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            10: <rustc_borrowck::constraint_generation::ConstraintGeneration as rustc_middle::mir::visit::Visitor>::visit_statement
            11: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            12: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            13: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::as_any
            14: <rustc_hir::lang_items::LanguageItems>::pointer_sized
            15: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_u32
            16: <rustc_middle::ty::Visibility as rustc_privacy::VisibilityLike>::new_min
            17: <<dyn rustc_hir_analysis::astconv::AstConv>::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: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            20: rustc_privacy::provide
            21: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            22: rustc_hir_analysis::hir_wf_check::provide
            23: rustc_hir_analysis::check_crate
            24: rustc_interface::passes::analysis
            25: <rustc_query_impl::on_disk_cache::CacheEncoder as rustc_serialize::serialize::Encoder>::emit_raw_bytes
            26: rustc_privacy::provide
            27: <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green
            28: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            29: rustc_driver::args::arg_expand_all
            30: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            31: rustc_driver::args::arg_expand_all
            32: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            33: <rustc_data_structures::temp_dir::MaybeTempDir>::new
            34: std::sys::windows::thread::Thread::new
            35: BaseThreadInitThunk
            36: RtlUserThreadStart


  78:     0x7ffaf1bdc123 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  79:     0x7ffaf1bd4b2d - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::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 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc866bf8b11919b4f
   1:     0x7ffb5deb668b - core::fmt::write::h67f5a998f81d6731
   2:     0x7ffb5de6cc8a - <std::io::IoSlice as core::fmt::Debug>::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 - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h736b7927b09a1075
   9:     0x7ffb5de7ac4f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc866bf8b11919b4f
  10:     0x7ffb5de7d9c0 - rust_begin_unwind
  11:     0x7ffb5deec215 - core::panicking::panic_fmt::hce3f805b550bd1ec
  12:     0x7ffb5deec736 - core::result::unwrap_failed::h3694b801ed086bc0
  13:     0x7ffaf1c3083a - <rustc_errors[b2241cae6fc60286]::emitter::FileWithAnnotatedLines>::collect_annotations
  14:     0x7ffaf1c33994 - rustc_errors[b2241cae6fc60286]::emitter::is_case_difference
  15:     0x7ffaf1c29db1 - <rustc_errors[b2241cae6fc60286]::emitter::EmitterWriter as rustc_errors[b2241cae6fc60286]::emitter::Emitter>::emit_diagnostic
  16:     0x7ffaf1c1fe44 - <rustc_errors[b2241cae6fc60286]::json::JsonEmitter as rustc_errors[b2241cae6fc60286]::emitter::Emitter>::emit_artifact_notification
  17:     0x7ffaf1c1f1dd - <rustc_errors[b2241cae6fc60286]::json::JsonEmitter as rustc_errors[b2241cae6fc60286]::emitter::Emitter>::emit_diagnostic
  18:     0x7ffaf1c1bc47 - <rustc_errors[b2241cae6fc60286]::HandlerInner>::emit_diagnostic
  19:     0x7ffaf1c1b313 - <rustc_errors[b2241cae6fc60286]::HandlerInner>::emit_diagnostic
  20:     0x7ffaf1c1c139 - <rustc_errors[b2241cae6fc60286]::HandlerInner>::emit_diagnostic
  21:     0x7ffaf1c192e9 - <rustc_errors[b2241cae6fc60286]::HandlerInner as core[46165faad62e3de7]::ops::drop::Drop>::drop
  22:     0x7ffaf1bd7a30 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  23:     0x7ffaf1bd9b8c - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  24:     0x7ffaf1bd195d - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  25:     0x7ffaf1bd1704 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::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 - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h736b7927b09a1075
  47:     0x7ffb5de7ac4f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc866bf8b11919b4f
  48:     0x7ffb5de7d9c0 - rust_begin_unwind
  49:     0x7ffb5deec215 - core::panicking::panic_fmt::hce3f805b550bd1ec
  50:     0x7ffb5deb3440 - <core::panic::panic_info::PanicInfo as core::fmt::Display>::fmt::hf81485f6a8a4e354
  51:     0x7ffb5deb33eb - <core::panic::panic_info::PanicInfo as core::fmt::Display>::fmt::hf81485f6a8a4e354
  52:     0x7ffb5deec1d9 - core::option::expect_failed::h42ce0e15bfaf5156
  53:     0x7ffaf4826efc - <rustc_borrowck[8ea061bf871c66e1]::path_utils::Control as core[46165faad62e3de7]::fmt::Debug>::fmt
  54:     0x7ffaf2aec711 - <rustc_borrowck[8ea061bf871c66e1]::MirBorrowckCtxt as rustc_mir_dataflow[4b58f5e2ce45981d]::framework::visitor::ResultsVisitor>::visit_terminator_before_primary_effect
  55:     0x7ffaf2ad63b2 - <rustc_borrowck[8ea061bf871c66e1]::constraint_generation::ConstraintGeneration as rustc_middle[f5d51dd2513ec959]::mir::visit::Visitor>::visit_statement
  56:     0x7ffaf2ad5908 - <rustc_borrowck[8ea061bf871c66e1]::constraint_generation::ConstraintGeneration as rustc_middle[f5d51dd2513ec959]::mir::visit::Visitor>::visit_statement
  57:     0x7ffaf21f18c5 - <rustc_query_impl[ac4d5ea71928498d]::on_disk_cache::CacheEncoder as rustc_serialize[374f527923e49b7f]::serialize::Encoder>::emit_raw_bytes
  58:     0x7ffaf371ffd9 - <rustc_middle[f5d51dd2513ec959]::ty::Visibility as rustc_privacy[8db6e08342172396]::VisibilityLike>::new_min
  59:     0x7ffaf38567cf - <rustc_query_impl[ac4d5ea71928498d]::Queries as rustc_middle[f5d51dd2513ec959]::ty::query::QueryEngine>::as_any
  60:     0x7ffaf2e54459 - <rustc_hir[32b36ec6f432361e]::lang_items::LanguageItems>::pointer_sized
  61:     0x7ffaf389eedb - <rustc_query_impl[ac4d5ea71928498d]::on_disk_cache::CacheEncoder as rustc_serialize[374f527923e49b7f]::serialize::Encoder>::emit_u32
  62:     0x7ffaf37ec6ea - <rustc_middle[f5d51dd2513ec959]::ty::Visibility as rustc_privacy[8db6e08342172396]::VisibilityLike>::new_min
  63:     0x7ffaf1cc7c0c - <<dyn rustc_hir_analysis[8bace4e3c18a24d7]::astconv::AstConv>::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 - <rustc_query_impl[ac4d5ea71928498d]::on_disk_cache::CacheEncoder as rustc_serialize[374f527923e49b7f]::serialize::Encoder>::emit_raw_bytes
  66:     0x7ffaf20abb3c - rustc_privacy[8db6e08342172396]::provide
  67:     0x7ffaf21b32cf - <rustc_query_impl[ac4d5ea71928498d]::Queries as rustc_middle[f5d51dd2513ec959]::ty::query::QueryEngine>::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 - <rustc_query_impl[ac4d5ea71928498d]::on_disk_cache::CacheEncoder as rustc_serialize[374f527923e49b7f]::serialize::Encoder>::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 - <rustc_query_impl[ac4d5ea71928498d]::Queries as rustc_middle[f5d51dd2513ec959]::ty::query::QueryEngine>::try_mark_green
  74:     0x7ffaf1bdaf85 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  75:     0x7ffaf1bec978 - rustc_driver[bb081788fe83386c]::args::arg_expand_all
  76:     0x7ffaf1bd0d22 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  77:     0x7ffaf1bebe16 - rustc_driver[bb081788fe83386c]::args::arg_expand_all
  78:     0x7ffaf1bdc123 - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::new
  79:     0x7ffaf1bd4b2d - <rustc_data_structures[2a4e4975c8d1ae43]::temp_dir::MaybeTempDir>::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

@estebank estebank added 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 Jan 15, 2023
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Jan 31, 2023
… r=Mark-Simulacrum

Include both md and yaml ICE ticket templates

* Existing compilers link to the md version
* The YAML version field for the backtrace *doesn't let us paste a full backtrace*
* We will need the YAML version in order to be able to submit reports once we start storing the backtrace to disk

Follow up to rust-lang#106831. Reaction to rust-lang#106874, which made me realize that *really* long backtraces are rejected by GitHub Forms. A single backtrace won't hit this, but ICEs sometimes compound.
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Jan 31, 2023
… r=Mark-Simulacrum

Include both md and yaml ICE ticket templates

* Existing compilers link to the md version
* The YAML version field for the backtrace *doesn't let us paste a full backtrace*
* We will need the YAML version in order to be able to submit reports once we start storing the backtrace to disk

Follow up to rust-lang#106831. Reaction to rust-lang#106874, which made me realize that *really* long backtraces are rejected by GitHub Forms. A single backtrace won't hit this, but ICEs sometimes compound.
@rust-lang-glacier-bot rust-lang-glacier-bot added the glacier ICE tracked in rust-lang/glacier. label Mar 3, 2023
@chenyukang chenyukang self-assigned this Jun 3, 2023
@chenyukang chenyukang removed their assignment Jun 19, 2023
@compiler-errors
Copy link
Member

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: 59a8294...2f5df8a
regressed commit: 4b71f03

bisected with cargo-bisect-rustc v0.6.6

Host triple: aarch64-unknown-linux-gnu
Reproduce with:

cargo bisect-rustc --start=2023-06-01 --regress=non-ice 

@compiler-errors compiler-errors added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Sep 22, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 23, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 23, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 24, 2024
workingjubilee added a commit to workingjubilee/rustc that referenced this issue Mar 24, 2024
@bors bors closed this as completed in f2bc9c5 Mar 24, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Mar 24, 2024
Rollup merge of rust-lang#122943 - matthiaskrgr:ice-tests-9xxxx-to-12xxxx, r=fmease

add a couple more ice tests

Fixes rust-lang#104779
Fixes rust-lang#106423
Fixes rust-lang#106444
Fixes rust-lang#101852
Fixes rust-lang#106874
Fixes rust-lang#105047
Fixes rust-lang#107228
Fixes rust-lang#99945
RenjiSann pushed a commit to RenjiSann/rust that referenced this issue Mar 25, 2024
RenjiSann pushed a commit to RenjiSann/rust that referenced this issue Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. glacier ICE tracked in rust-lang/glacier. 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

Successfully merging a pull request may close this issue.

5 participants