Skip to content

rustdoc causes a rustc panic #109733

Closed
Closed

Description

@CGMossa

Code

This happened when I ran

rustdoc src/lib.rs

in bevy/crates/bevy_ecs, that can be found here: https://github.com/bevyengine/bevy/blob/aefe1f0739bb395d2454e05a1a812acab767892c/crates/bevy_ecs/src/lib.rs

In order to attempt to narrow it down, I ran rustdoc on every source file in bevy_ecs.
Only other file that caused the ICE is: src/system/mod.rs, which can be found here: https://github.com/bevyengine/bevy/blob/daa1b0209ae4c46cdda61b2263e2cfab88625937/crates/bevy_ecs/src/system/mod.rs

Meta

rustc --version --verbose:

rustc 1.68.0 (2c8cc3432 2023-03-06)
binary: rustc
commit-hash: 2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74
commit-date: 2023-03-06
host: x86_64-pc-windows-msvc
release: 1.68.0
LLVM version: 15.0.6

Note that this happens on nightly as well, but the location of the panic is different.

Error output

thread 'rustc' panicked at 'internal error: entered unreachable code', compiler\rustc_resolve\src\lib.rs:1958:67
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 (2c8cc3432 2023-03-06) running on x86_64-pc-windows-msvc

query stack during panic:
end of query stack
error: aborting due to 55 previous errors

Some errors have detailed explanations: E0412, E0432, E0433, E0603.
For more information about an error, try `rustc --explain E0412`.

Here's a backtrace with RUST_BACKTRACE=full.

Backtrace

stack backtrace:
   0:     0x7ffc60899d02 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h792a027c2747e99d
   1:     0x7ffc608d570b - core::fmt::write::h5d1fd4698cef7a98
   2:     0x7ffc6088cdfa - <std::io::IoSlice as core::fmt::Debug>::fmt::hba64fac32bc54252
   3:     0x7ffc60899a4b - std::sys::common::alloc::realloc_fallback::hfe62d187ace61bcd
   4:     0x7ffc6089d3f9 - std::panicking::default_hook::hc7b7ee9dc8a166a2
   5:     0x7ffc6089d07b - std::panicking::default_hook::hc7b7ee9dc8a166a2
   6:     0x7ffc4f37ec34 - rustc_driver[6fce53b951639747]::describe_lints
   7:     0x7ffc6089dd5f - std::panicking::rust_panic_with_hook::h80ad08272951bba3
   8:     0x7ffc6089da7b - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h87fe0efc42413a8e
   9:     0x7ffc6089a9ff - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h792a027c2747e99d
  10:     0x7ffc6089d770 - rust_begin_unwind
  11:     0x7ffc6090b3d5 - core::panicking::panic_fmt::hce24276b766fe029
  12:     0x7ffc6090b48c - core::panicking::panic::h2f164b064a86475f
  13:     0x7ffc4fdf4066 - <rustc_resolve[a6df4b0daa4644d]::Resolver>::resolve_rustdoc_path
  14:     0x7ff7070c044a - <unknown>
  15:     0x7ff70717730e - <unknown>
  16:     0x7ff707176aac - <unknown>
  17:     0x7ff7070c17a4 - <unknown>
  18:     0x7ff707173bac - <unknown>
  19:     0x7ff7070be423 - <unknown>
  20:     0x7ff707171d87 - <unknown>
  21:     0x7ff706f50aa8 - <unknown>
  22:     0x7ff706e03182 - <unknown>
  23:     0x7ff706f65c06 - <unknown>
  24:     0x7ff706ebb4fb - <unknown>
  25:     0x7ffc608b021c - std::sys::windows::thread::Thread::new::he1a8155b1a8cc29c
  26:     0x7ffcf77b26bd - BaseThreadInitThunk
  27:     0x7ffcf8aaa9f8 - RtlUserThreadStart

Recreate steps

gh repo clone bevyengine/bevy
cd bevy/crates/bevy_ecs
rustdoc src/lib.rs

Activity

  1. added
    C-bugCategory: This is a bug.
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Mar 29, 2023
  2. added
    A-resolveArea: Name/path resolution done by `rustc_resolve` specifically
    on Mar 29, 2023
  3. jyn514 commented on Mar 29, 2023

    @jyn514
    Member

    Note that this happens on nightly as well, but the location of the panic is different.

    Can you post the panic you see on nightly?

  4. CGMossa commented on Mar 29, 2023

    @CGMossa
    Author
    Details

    
    thread 'rustc' panicked at 'internal error: entered unreachable code', compiler\rustc_resolve\src\lib.rs:1876:67
    stack backtrace:
       0:     0x7ffcab8f6c72 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h496acad3e5333a14
       1:     0x7ffcab93540b - core::fmt::write::h069031b30e516187
       2:     0x7ffcab8ec34a - <std::io::IoSliceMut as core::fmt::Debug>::fmt::h4a42a68c62a0da99     
       3:     0x7ffcab8f69bb - std::sys::common::alloc::realloc_fallback::h3369f43b6728265f
       4:     0x7ffcab8fa319 - std::panicking::default_hook::h47f798cc522c8194
       5:     0x7ffcab8f9f9b - std::panicking::default_hook::h47f798cc522c8194
       6:     0x7ffc5448087c - rustc_driver_impl[ad227f1719532c9c]::describe_lints
       7:     0x7ffcab8fac82 - std::panicking::rust_panic_with_hook::hd39650a597753593
       8:     0x7ffcab8fa99b - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h7d7e5954cde42deb
       9:     0x7ffcab8f7939 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h496acad3e5333a14
      10:     0x7ffcab8fa690 - rust_begin_unwind
      11:     0x7ffcab968d45 - core::panicking::panic_fmt::h37efe0a188178441
      12:     0x7ffcab968dfc - core::panicking::panic::hb77962d753708ec9
      13:     0x7ffc51c6d1b0 - <rustc_resolve[a3e18f00d8624b92]::Resolver>::resolve_crate
      14:     0x7ffc532f4409 - <<rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      15:     0x7ffc532f4e05 - <<rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      16:     0x7ffc532d887f - <<rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      17:     0x7ffc533621bc - <rustc_resolve[a3e18f00d8624b92]::Segment as core[663717899f0eee36]::convert::From<&rustc_ast[aff60dad45e2f618]::ast::PathSegment>>::from
      18:     0x7ffc532dedc4 - <<rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      19:     0x7ffc532c2eab - <rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_item
      20:     0x7ffc51c6523b - <rustc_resolve[a3e18f00d8624b92]::def_collector::DefCollector as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_param
      21:     0x7ffc533128ac - <rustc_resolve[a3e18f00d8624b92]::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      22:     0x7ffc5187f1f0 - rustc_interface[50c04c391bbbe617]::passes::resolver_for_lowering      
      23:     0x7ffc51b280fa - rustc_privacy[57f72dae7a249f52]::provide
      24:     0x7ffc51bcd0f2 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      25:     0x7ffc51882228 - rustc_interface[50c04c391bbbe617]::passes::output_filenames
      26:     0x7ffc51ae65e7 - rustc_privacy[57f72dae7a249f52]::provide
      27:     0x7ffc51be4a72 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      28:     0x7ffc52373aa1 - rustc_ast_lowering[60b2977bf22bd781]::lower_to_hir
      29:     0x7ffc51b8e55c - rustc_privacy[57f72dae7a249f52]::provide
      30:     0x7ffc51bcd352 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      31:     0x7ffc531d9325 - <rustc_middle[f8d94cf90023dcea]::ty::Visibility as rustc_privacy[57f72dae7a249f52]::VisibilityLike>::new_min
      32:     0x7ffc5323719b - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::as_any
      33:     0x7ffc5196e6cb - <rustc_middle[f8d94cf90023dcea]::hir::map::Map>::get_module
      34:     0x7ffc51970758 - <rustc_middle[f8d94cf90023dcea]::hir::map::Map as rustc_hir[89e8a09b50c1156d]::intravisit::Map>::trait_item
      35:     0x7ffc51ad32e6 - rustc_privacy[57f72dae7a249f52]::provide
      36:     0x7ffc51bcd5b2 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      37:     0x7ff7dffdf41e - <unknown>
      38:     0x7ff7dfeb0899 - <unknown>
      39:     0x7ff7e00a9670 - <unknown>
      40:     0x7ff7dfeaff92 - <unknown>
      41:     0x7ff7e004434e - <unknown>
      42:     0x7ff7e00f6916 - <unknown>
      43:     0x7ff7dffe3aa3 - <unknown>
      44:     0x7ff7dfec3306 - <unknown>
      45:     0x7ff7e00207bb - <unknown>
      46:     0x7ffcab90cacc - std::sys::windows::thread::Thread::new::h22703d71819bc824
      47:     0x7ffcf77b26bd - BaseThreadInitThunk
      48:     0x7ffcf8aaa9f8 - RtlUserThreadStart
    
    error: 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.70.0-nightly (39f2657d1 2023-03-09) running on x86_64-pc-windows-msvc
    
    query stack during panic:
    thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/39f2657d1101b50f9b71ae460b762d330cc8426b\compiler\rustc_query_system\src\query\job.rs:141:44
    stack backtrace:
       0:     0x7ffcab8f6c72 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h496acad3e5333a14
       1:     0x7ffcab93540b - core::fmt::write::h069031b30e516187
       2:     0x7ffcab8ec34a - <std::io::IoSliceMut as core::fmt::Debug>::fmt::h4a42a68c62a0da99     
       3:     0x7ffcab8f69bb - std::sys::common::alloc::realloc_fallback::h3369f43b6728265f
       4:     0x7ffcab8fa319 - std::panicking::default_hook::h47f798cc522c8194
       5:     0x7ffcab8f9f9b - std::panicking::default_hook::h47f798cc522c8194
       6:     0x7ffc5448087c - rustc_driver_impl[ad227f1719532c9c]::describe_lints
       7:     0x7ffcab8fac82 - std::panicking::rust_panic_with_hook::hd39650a597753593
       8:     0x7ffcab8fa99b - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h7d7e5954cde42deb
       9:     0x7ffcab8f7939 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h496acad3e5333a14
      10:     0x7ffcab8fa690 - rust_begin_unwind
      11:     0x7ffcab968d45 - core::panicking::panic_fmt::h37efe0a188178441
      12:     0x7ffcab968dfc - core::panicking::panic::hb77962d753708ec9
      13:     0x7ffc54e7d976 - <rustc_query_impl[94188344f151e92c]::plumbing::QueryCtxt>::try_print_query_stack
      14:     0x7ffc51b84941 - rustc_privacy[57f72dae7a249f52]::provide
      15:     0x7ffc51be668e - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      16:     0x7ffc5198383a - <rustc_middle[f8d94cf90023dcea]::ty::print::pretty::FmtPrinter>::new  
      17:     0x7ffc54983381 - <rustc_middle[f8d94cf90023dcea]::ty::context::TyCtxt>::def_path_str_with_substs
      18:     0x7ffc54a13797 - rustc_middle[f8d94cf90023dcea]::query::descs::hir_attrs
      19:     0x7ffc54e79c05 - <rustc_query_impl[94188344f151e92c]::plumbing::QueryCtxt>::try_print_query_stack
      20:     0x7ffc54ed14c5 - RNvXsf_NtCscIjetGtktaq_16rustc_query_impl13on_disk_cacheRINtNtNtNtCsgRVzOUNmIYX_3std11collections4hash3map7HashMapNtNtCse1AxD1PoIMD_10rustc_span6def_id5DefIdNtNtCslmCdM5tENny_12rustc_middle2ty2TyINtNtCs8M5wBmkPYS8_4core4hash18BuildHasherDefaultNtCsarH6rZ2
      21:     0x7ffc54d66ce0 - <rustc_privacy[57f72dae7a249f52]::errors::PrivateInPublicLint as rustc_errors[db358ed34dc1d3f1]::diagnostic::DecorateLint<()>>::msg
      22:     0x7ffc54ed8385 - RNvXsf_NtCscIjetGtktaq_16rustc_query_impl13on_disk_cacheRINtNtNtNtCsgRVzOUNmIYX_3std11collections4hash3map7HashMapNtNtCse1AxD1PoIMD_10rustc_span6def_id5DefIdNtNtCslmCdM5tENny_12rustc_middle2ty2TyINtNtCs8M5wBmkPYS8_4core4hash18BuildHasherDefaultNtCsarH6rZ2
      23:     0x7ffc54e21dcd - <&[(rustc_middle[f8d94cf90023dcea]::middle::exported_symbols::ExportedSymbol, rustc_middle[f8d94cf90023dcea]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[d4891fa73bd6f232]::serialize::Decodable<rustc_query_impl[94188344f151e92c]::on_disk_cache::CacheDecoder>>::decode
      24:     0x7ffc51b8ebdf - rustc_privacy[57f72dae7a249f52]::provide
      25:     0x7ffc51bcd352 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      26:     0x7ffc531d6e9b - <rustc_middle[f8d94cf90023dcea]::ty::Visibility as rustc_privacy[57f72dae7a249f52]::VisibilityLike>::new_min
      27:     0x7ffc52cdcef5 - <rustc_middle[f8d94cf90023dcea]::hir::map::Map>::attrs
      28:     0x7ffc51956df0 - <rustc_middle[f8d94cf90023dcea]::ty::consts::Const>::from_opt_const_arg_anon_const
      29:     0x7ffc51b83faa - rustc_privacy[57f72dae7a249f52]::provide
      30:     0x7ffc51be668e - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      31:     0x7ffc5198383a - <rustc_middle[f8d94cf90023dcea]::ty::print::pretty::FmtPrinter>::new  
      32:     0x7ffc54983381 - <rustc_middle[f8d94cf90023dcea]::ty::context::TyCtxt>::def_path_str_with_substs
      33:     0x7ffc54a13257 - rustc_middle[f8d94cf90023dcea]::query::descs::hir_owner
      34:     0x7ffc54e79c05 - <rustc_query_impl[94188344f151e92c]::plumbing::QueryCtxt>::try_print_query_stack
      35:     0x7ffc54ed1545 - RNvXsf_NtCscIjetGtktaq_16rustc_query_impl13on_disk_cacheRINtNtNtNtCsgRVzOUNmIYX_3std11collections4hash3map7HashMapNtNtCse1AxD1PoIMD_10rustc_span6def_id5DefIdNtNtCslmCdM5tENny_12rustc_middle2ty2TyINtNtCs8M5wBmkPYS8_4core4hash18BuildHasherDefaultNtCsarH6rZ2
      36:     0x7ffc54d66ce0 - <rustc_privacy[57f72dae7a249f52]::errors::PrivateInPublicLint as rustc_errors[db358ed34dc1d3f1]::diagnostic::DecorateLint<()>>::msg
      37:     0x7ffc54ed8445 - RNvXsf_NtCscIjetGtktaq_16rustc_query_impl13on_disk_cacheRINtNtNtNtCsgRVzOUNmIYX_3std11collections4hash3map7HashMapNtNtCse1AxD1PoIMD_10rustc_span6def_id5DefIdNtNtCslmCdM5tENny_12rustc_middle2ty2TyINtNtCs8M5wBmkPYS8_4core4hash18BuildHasherDefaultNtCsarH6rZ2
      38:     0x7ffc54e21dcd - <&[(rustc_middle[f8d94cf90023dcea]::middle::exported_symbols::ExportedSymbol, rustc_middle[f8d94cf90023dcea]::middle::exported_symbols::SymbolExportInfo)] as rustc_serialize[d4891fa73bd6f232]::serialize::Decodable<rustc_query_impl[94188344f151e92c]::on_disk_cache::CacheDecoder>>::decode
      39:     0x7ffc54e7fbfc - <rustc_query_impl[94188344f151e92c]::plumbing::QueryCtxt>::try_print_query_stack
      40:     0x7ffc5485c646 - rustc_interface[50c04c391bbbe617]::interface::try_print_query_stack   
      41:     0x7ffc544813ba - rustc_driver_impl[ad227f1719532c9c]::report_ice
      42:     0x7ffc544808c2 - rustc_driver_impl[ad227f1719532c9c]::describe_lints
      43:     0x7ffcab8fac82 - std::panicking::rust_panic_with_hook::hd39650a597753593
      44:     0x7ffcab8fa99b - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h7d7e5954cde42deb
      45:     0x7ffcab8f7939 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h496acad3e5333a14
      46:     0x7ffcab8fa690 - rust_begin_unwind
      47:     0x7ffcab968d45 - core::panicking::panic_fmt::h37efe0a188178441
      48:     0x7ffcab968dfc - core::panicking::panic::hb77962d753708ec9
      49:     0x7ffc51c6d1b0 - <rustc_resolve[a3e18f00d8624b92]::Resolver>::resolve_crate
      50:     0x7ffc532f4409 - <<rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      51:     0x7ffc532f4e05 - <<rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      52:     0x7ffc532d887f - <<rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      53:     0x7ffc533621bc - <rustc_resolve[a3e18f00d8624b92]::Segment as core[663717899f0eee36]::convert::From<&rustc_ast[aff60dad45e2f618]::ast::PathSegment>>::from
      54:     0x7ffc532dedc4 - <<rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      55:     0x7ffc532c2eab - <rustc_resolve[a3e18f00d8624b92]::late::LateResolutionVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_item
      56:     0x7ffc51c6523b - <rustc_resolve[a3e18f00d8624b92]::def_collector::DefCollector as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_param
      57:     0x7ffc533128ac - <rustc_resolve[a3e18f00d8624b92]::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast[aff60dad45e2f618]::visit::Visitor>::visit_ty
      58:     0x7ffc5187f1f0 - rustc_interface[50c04c391bbbe617]::passes::resolver_for_lowering      
      59:     0x7ffc51b280fa - rustc_privacy[57f72dae7a249f52]::provide
      60:     0x7ffc51bcd0f2 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      61:     0x7ffc51882228 - rustc_interface[50c04c391bbbe617]::passes::output_filenames
      62:     0x7ffc51ae65e7 - rustc_privacy[57f72dae7a249f52]::provide
      63:     0x7ffc51be4a72 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      64:     0x7ffc52373aa1 - rustc_ast_lowering[60b2977bf22bd781]::lower_to_hir
      65:     0x7ffc51b8e55c - rustc_privacy[57f72dae7a249f52]::provide
      66:     0x7ffc51bcd352 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      67:     0x7ffc531d9325 - <rustc_middle[f8d94cf90023dcea]::ty::Visibility as rustc_privacy[57f72dae7a249f52]::VisibilityLike>::new_min
      68:     0x7ffc5323719b - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::as_any
      69:     0x7ffc5196e6cb - <rustc_middle[f8d94cf90023dcea]::hir::map::Map>::get_module
      70:     0x7ffc51970758 - <rustc_middle[f8d94cf90023dcea]::hir::map::Map as rustc_hir[89e8a09b50c1156d]::intravisit::Map>::trait_item
      71:     0x7ffc51ad32e6 - rustc_privacy[57f72dae7a249f52]::provide
      72:     0x7ffc51bcd5b2 - <rustc_query_impl[94188344f151e92c]::Queries as rustc_middle[f8d94cf90023dcea]::ty::query::QueryEngine>::try_mark_green
      73:     0x7ff7dffdf41e - <unknown>
      74:     0x7ff7dfeb0899 - <unknown>
      75:     0x7ff7e00a9670 - <unknown>
      76:     0x7ff7dfeaff92 - <unknown>
      77:     0x7ff7e004434e - <unknown>
      78:     0x7ff7e00f6916 - <unknown>
      79:     0x7ff7dffe3aa3 - <unknown>
      80:     0x7ff7dfec3306 - <unknown>
      81:     0x7ff7e00207bb - <unknown>
      82:     0x7ffcab90cacc - std::sys::windows::thread::Thread::new::h22703d71819bc824
      83:     0x7ffcf77b26bd - BaseThreadInitThunk
      84:     0x7ffcf8aaa9f8 - RtlUserThreadStart
    
    error: 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.70.0-nightly (39f2657d1 2023-03-09) running on x86_64-pc-windows-msvc
    
    query stack during panic:
    end of query stack
    thread panicked while panicking. aborting.
    

  5. ChrisDenton commented on Mar 30, 2023

    @ChrisDenton
    Member

    Hm, 2023-03-09 seems to be a nightly from a little while back. Have you tried latest nightly?

  6. CGMossa commented on Mar 30, 2023

    @CGMossa
    Author
    Details

    
    thread 'rustc' panicked at 'internal error: entered unreachable code', compiler\rustc_resolve\src\lib.rs:1870:67
    stack backtrace:
       0:     0x7ffc77976a72 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h91f604f4ffa5801e
       1:     0x7ffc779b4eab - core::fmt::write::hab634a7da6eda80f
       2:     0x7ffc7796be1a - <std::io::IoSliceMut as core::fmt::Debug>::fmt::hd4d7057f831cdf36
       3:     0x7ffc779767bb - std::sys::common::alloc::realloc_fallback::h0462ecd6e4895a2b
       4:     0x7ffc7797a14a - std::panicking::default_hook::h11dda33d25b1c293
       5:     0x7ffc77979db0 - std::panicking::default_hook::h11dda33d25b1c293
       6:     0x7ffc6d02b57e - rustc_driver_impl[80e6611556be2cef]::describe_lints
       7:     0x7ffc7797aa5f - std::panicking::rust_panic_with_hook::hbdafd2453062d848
       8:     0x7ffc7797a77b - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h65d2be1af01a551c
       9:     0x7ffc77977719 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h91f604f4ffa5801e
      10:     0x7ffc7797a4d0 - rust_begin_unwind
      11:     0x7ffc779e8ed5 - core::panicking::panic_fmt::hef645f8ef8eec178
      12:     0x7ffc779e8f8c - core::panicking::panic::h45fca6531abd18aa
      13:     0x7ffc6b15d970 - <rustc_resolve[eb7387a18a5833cf]::Resolver>::resolve_crate
      14:     0x7ffc6c5aefc1 - <<rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      15:     0x7ffc6c5af6a0 - <<rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      16:     0x7ffc6c5959d3 - <<rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      17:     0x7ffc6c5df64a - <rustc_resolve[eb7387a18a5833cf]::effective_visibilities::EffectiveVisibilitiesVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_item
      18:     0x7ffc6c59be1d - <<rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      19:     0x7ffc6c58063b - <rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_item
      20:     0x7ffc6b155e8b - <rustc_builtin_macros[b8b40dbabaaf7e00]::deriving::generic::find_type_parameters::Visitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      21:     0x7ffc6b15e7cd - rustc_resolve[eb7387a18a5833cf]::provide
      22:     0x7ffc6b15d150 - <rustc_resolve[eb7387a18a5833cf]::Resolver>::resolve_crate
      23:     0x7ffc6a8a4e3e - rustc_interface[acb21b123d0ba37]::passes::resolver_for_lowering
      24:     0x7ffc6b40857d - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      25:     0x7ffc6b346941 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      26:     0x7ffc6a8a792b - rustc_interface[acb21b123d0ba37]::passes::output_filenames
      27:     0x7ffc6b30bf5f - <rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::CustomEq as rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::Qualif>::in_adt_inherently
      28:     0x7ffc6b3e4e72 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      29:     0x7ffc6b355051 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      30:     0x7ffc6c4e5de2 - rustc_ast_lowering[81dcca6d70b57c42]::lower_to_hir
      31:     0x7ffc6b30d819 - <rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::CustomEq as rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::Qualif>::in_adt_inherently
      32:     0x7ffc6b4404c2 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      33:     0x7ffc6b346aa1 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      34:     0x7ffc6ceed0ce - <rustc_middle[99c60881b72579c1]::ty::Predicate>::is_coinductive
      35:     0x7ffc6ca989d8 - <rustc_span[e1ca11e9f2e7f58d]::symbol::Symbol as rustc_serialize[d95a6b06eb86861e]::serialize::Encodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheEncoder>>::encode
      36:     0x7ffc6c9829a8 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::as_any
      37:     0x7ffc6b6bb89a - <rustc_middle[99c60881b72579c1]::hir::map::Map>::get_module
      38:     0x7ffc6b6bbfb9 - <rustc_middle[99c60881b72579c1]::hir::map::Map as rustc_hir[9ac1ca697d999d0a]::intravisit::Map>::trait_item
      39:     0x7ffc6b30b83e - <rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::CustomEq as rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::Qualif>::in_adt_inherently
      40:     0x7ffc6b3dbe52 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      41:     0x7ffc6b346c01 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      42:     0x7ff7cb312d2e - <unknown>
      43:     0x7ff7cb2ce8f4 - <unknown>
      44:     0x7ff7cb456ee8 - <unknown>
      45:     0x7ff7cb2cdfef - <unknown>
      46:     0x7ff7cb47a583 - <unknown>
      47:     0x7ff7cb371459 - <unknown>
      48:     0x7ff7cb2cc567 - <unknown>
      49:     0x7ff7cb37412c - <unknown>
      50:     0x7ff7cb3e1236 - <unknown>
      51:     0x7ff7cb445062 - <unknown>
      52:     0x7ffc7798c91c - std::sys::windows::thread::Thread::new::hc271a03890a34556
      53:     0x7ffcd7a87614 - BaseThreadInitThunk
      54:     0x7ffcd88c26a1 - RtlUserThreadStart
    
    error: 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.70.0-nightly (17c116721 2023-03-29) running on x86_64-pc-windows-msvc
    
    query stack during panic:
    thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/17c11672167827b0dd92c88ef69f24346d1286dd\compiler\rustc_query_system\src\query\job.rs:139:44
    stack backtrace:
       0:     0x7ffc77976a72 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h91f604f4ffa5801e
       1:     0x7ffc779b4eab - core::fmt::write::hab634a7da6eda80f
       2:     0x7ffc7796be1a - <std::io::IoSliceMut as core::fmt::Debug>::fmt::hd4d7057f831cdf36
       3:     0x7ffc779767bb - std::sys::common::alloc::realloc_fallback::h0462ecd6e4895a2b
       4:     0x7ffc7797a14a - std::panicking::default_hook::h11dda33d25b1c293
       5:     0x7ffc77979db0 - std::panicking::default_hook::h11dda33d25b1c293
       6:     0x7ffc6d02b57e - rustc_driver_impl[80e6611556be2cef]::describe_lints
       7:     0x7ffc7797aa5f - std::panicking::rust_panic_with_hook::hbdafd2453062d848
       8:     0x7ffc7797a77b - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h65d2be1af01a551c
       9:     0x7ffc77977719 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h91f604f4ffa5801e
      10:     0x7ffc7797a4d0 - rust_begin_unwind
      11:     0x7ffc779e8ed5 - core::panicking::panic_fmt::hef645f8ef8eec178
      12:     0x7ffc779e8f8c - core::panicking::panic::h45fca6531abd18aa
      13:     0x7ffc6ee2e595 - <&[rustc_ast[c03cc9997dba8755]::ast::Attribute] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      14:     0x7ffc6ee694fd - <&[rustc_ast[c03cc9997dba8755]::ast::Attribute] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      15:     0x7ffc6b43b1f1 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      16:     0x7ffc6b35623d - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      17:     0x7ffc6b6e681a - <rustc_middle[99c60881b72579c1]::ty::print::pretty::FmtPrinter>::new
      18:     0x7ffc6f567cd1 - <rustc_middle[99c60881b72579c1]::ty::context::TyCtxt>::def_path_str_with_substs
      19:     0x7ffc6f550a24 - rustc_middle[99c60881b72579c1]::query::descs::hir_attrs
      20:     0x7ffc6ed674d5 - <rustc_query_impl[d3aba5db8cad4e9d]::plumbing::QueryCtxt>::try_print_query_stack
      21:     0x7ffc6ee08b35 - <alloc[573ce340f5291ee5]::vec::Vec<u8> as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      22:     0x7ffc6ee62fc7 - <&[rustc_ast[c03cc9997dba8755]::ast::Attribute] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      23:     0x7ffc6ee0fa55 - <alloc[573ce340f5291ee5]::vec::Vec<u8> as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      24:     0x7ffc6ed56c4d - <rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheEncoder as rustc_serialize[d95a6b06eb86861e]::serialize::Encoder>::emit_char     
      25:     0x7ffc6ee6610f - <&[rustc_ast[c03cc9997dba8755]::ast::Attribute] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      26:     0x7ffc6b440775 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      27:     0x7ffc6b346aa1 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      28:     0x7ffc6cee8782 - <rustc_middle[99c60881b72579c1]::ty::Predicate>::is_coinductive
      29:     0x7ffc6ca978f9 - <rustc_span[e1ca11e9f2e7f58d]::symbol::Symbol as rustc_serialize[d95a6b06eb86861e]::serialize::Encodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheEncoder>>::encode
      30:     0x7ffc6c98374a - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::as_any
      31:     0x7ffc6cf1fe4b - <rustc_middle[99c60881b72579c1]::hir::map::Map>::attrs
      32:     0x7ffc6b6b6bf1 - <rustc_middle[99c60881b72579c1]::mir::tcx::PlaceTy>::field_ty
      33:     0x7ffc6b43ad83 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      34:     0x7ffc6b35623d - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      35:     0x7ffc6b6e681a - <rustc_middle[99c60881b72579c1]::ty::print::pretty::FmtPrinter>::new
      36:     0x7ffc6f567cd1 - <rustc_middle[99c60881b72579c1]::ty::context::TyCtxt>::def_path_str_with_substs
      37:     0x7ffc6f5504e4 - rustc_middle[99c60881b72579c1]::query::descs::hir_owner
      38:     0x7ffc6ed674d5 - <rustc_query_impl[d3aba5db8cad4e9d]::plumbing::QueryCtxt>::try_print_query_stack
      39:     0x7ffc6ee08bb5 - <alloc[573ce340f5291ee5]::vec::Vec<u8> as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      40:     0x7ffc6ee62fc7 - <&[rustc_ast[c03cc9997dba8755]::ast::Attribute] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      41:     0x7ffc6ee0fb15 - <alloc[573ce340f5291ee5]::vec::Vec<u8> as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      42:     0x7ffc6ed56c4d - <rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheEncoder as rustc_serialize[d95a6b06eb86861e]::serialize::Encoder>::emit_char     
      43:     0x7ffc6ee302c1 - <&[rustc_ast[c03cc9997dba8755]::ast::Attribute] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      44:     0x7ffc6d088fdb - rustc_interface[acb21b123d0ba37]::interface::try_print_query_stack
      45:     0x7ffc6d02c0e0 - rustc_driver_impl[80e6611556be2cef]::report_ice
      46:     0x7ffc6d02b5c4 - rustc_driver_impl[80e6611556be2cef]::describe_lints
      47:     0x7ffc7797aa5f - std::panicking::rust_panic_with_hook::hbdafd2453062d848
      48:     0x7ffc7797a77b - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h65d2be1af01a551c
      49:     0x7ffc77977719 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h91f604f4ffa5801e
      50:     0x7ffc7797a4d0 - rust_begin_unwind
      51:     0x7ffc779e8ed5 - core::panicking::panic_fmt::hef645f8ef8eec178
      52:     0x7ffc779e8f8c - core::panicking::panic::h45fca6531abd18aa
      53:     0x7ffc6b15d970 - <rustc_resolve[eb7387a18a5833cf]::Resolver>::resolve_crate
      54:     0x7ffc6c5aefc1 - <<rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      55:     0x7ffc6c5af6a0 - <<rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      56:     0x7ffc6c5959d3 - <<rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      57:     0x7ffc6c5df64a - <rustc_resolve[eb7387a18a5833cf]::effective_visibilities::EffectiveVisibilitiesVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_item
      58:     0x7ffc6c59be1d - <<rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor>::find_lifetime_for_self::SelfVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      59:     0x7ffc6c58063b - <rustc_resolve[eb7387a18a5833cf]::late::LateResolutionVisitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_item
      60:     0x7ffc6b155e8b - <rustc_builtin_macros[b8b40dbabaaf7e00]::deriving::generic::find_type_parameters::Visitor as rustc_ast[c03cc9997dba8755]::visit::Visitor>::visit_ty
      61:     0x7ffc6b15e7cd - rustc_resolve[eb7387a18a5833cf]::provide
      62:     0x7ffc6b15d150 - <rustc_resolve[eb7387a18a5833cf]::Resolver>::resolve_crate
      63:     0x7ffc6a8a4e3e - rustc_interface[acb21b123d0ba37]::passes::resolver_for_lowering
      64:     0x7ffc6b40857d - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      65:     0x7ffc6b346941 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      66:     0x7ffc6a8a792b - rustc_interface[acb21b123d0ba37]::passes::output_filenames
      67:     0x7ffc6b30bf5f - <rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::CustomEq as rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::Qualif>::in_adt_inherently
      68:     0x7ffc6b3e4e72 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      69:     0x7ffc6b355051 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      70:     0x7ffc6c4e5de2 - rustc_ast_lowering[81dcca6d70b57c42]::lower_to_hir
      71:     0x7ffc6b30d819 - <rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::CustomEq as rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::Qualif>::in_adt_inherently
      72:     0x7ffc6b4404c2 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      73:     0x7ffc6b346aa1 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      74:     0x7ffc6ceed0ce - <rustc_middle[99c60881b72579c1]::ty::Predicate>::is_coinductive
      75:     0x7ffc6ca989d8 - <rustc_span[e1ca11e9f2e7f58d]::symbol::Symbol as rustc_serialize[d95a6b06eb86861e]::serialize::Encodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheEncoder>>::encode
      76:     0x7ffc6c9829a8 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::as_any
      77:     0x7ffc6b6bb89a - <rustc_middle[99c60881b72579c1]::hir::map::Map>::get_module
      78:     0x7ffc6b6bbfb9 - <rustc_middle[99c60881b72579c1]::hir::map::Map as rustc_hir[9ac1ca697d999d0a]::intravisit::Map>::trait_item
      79:     0x7ffc6b30b83e - <rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::CustomEq as rustc_const_eval[5bc5628c60c7bc7b]::transform::check_consts::qualifs::Qualif>::in_adt_inherently
      80:     0x7ffc6b3dbe52 - <&[rustc_span[e1ca11e9f2e7f58d]::symbol::Ident] as rustc_serialize[d95a6b06eb86861e]::serialize::Decodable<rustc_query_impl[d3aba5db8cad4e9d]::on_disk_cache::CacheDecoder>>::decode
      81:     0x7ffc6b346c01 - <rustc_query_impl[d3aba5db8cad4e9d]::Queries as rustc_middle[99c60881b72579c1]::ty::query::QueryEngine>::try_mark_green
      82:     0x7ff7cb312d2e - <unknown>
      83:     0x7ff7cb2ce8f4 - <unknown>
      84:     0x7ff7cb456ee8 - <unknown>
      85:     0x7ff7cb2cdfef - <unknown>
      86:     0x7ff7cb47a583 - <unknown>
      87:     0x7ff7cb371459 - <unknown>
      88:     0x7ff7cb2cc567 - <unknown>
      89:     0x7ff7cb37412c - <unknown>
      90:     0x7ff7cb3e1236 - <unknown>
      91:     0x7ff7cb445062 - <unknown>
      92:     0x7ffc7798c91c - std::sys::windows::thread::Thread::new::hc271a03890a34556
      93:     0x7ffcd7a87614 - BaseThreadInitThunk
      94:     0x7ffcd88c26a1 - RtlUserThreadStart
    
    error: 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.70.0-nightly (17c116721 2023-03-29) running on x86_64-pc-windows-msvc
    
    query stack during panic:
    end of query stack
    thread panicked while panicking. aborting.
    

  7. jyn514 commented on Mar 30, 2023

    @jyn514
    Member
  8. bvanjoi commented on May 11, 2023

    @bvanjoi
    Contributor

    reduce:

    mod s {
        pub use b::A;
    
        pub trait A {}
    }
    
    use s::A;
    
    /// [`A`]
    pub fn f() -> () {}
  9. added
    -Zfixed-x18Unstable option: -Zfixed-x18
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    and removed
    -Zfixed-x18Unstable option: -Zfixed-x18
    on May 11, 2023
  10. bvanjoi commented on May 11, 2023

    @bvanjoi
    Contributor

    reduce:

    mod s {
        pub use b::A;
    
        pub trait A {}
    }
    
    use s::A;
    
    /// [`A`]
    pub fn f() -> () {}

    This case maybe solved by #109602, and I will continue this PR, so @rustbot claim

  11. bvanjoi commented on May 27, 2023

    @bvanjoi
    Contributor

    I think this ICE had fixed, maybe we can close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions