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: -Zdrop-tracking node_type: no type for node expr None() #105202

Closed
matthiaskrgr opened this issue Dec 3, 2022 · 0 comments · Fixed by #105267
Closed

ICE: -Zdrop-tracking node_type: no type for node expr None() #105202

matthiaskrgr opened this issue Dec 3, 2022 · 0 comments · Fixed by #105267
Assignees
Labels
C-bug Category: This is a bug. 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

@matthiaskrgr
Copy link
Member

Code

fn main() {
    None
}

async fn from_config(_: None) {}

async fn foo() {
    None(None {
         auto : None,
        ..None()
    })
    .await;
}

#[derive(Default)]
async fn foo() {
    None(None {
         auto : None,
        ..None()
    })
    .await;
}

Meta

rustc --version --verbose:

rustc 1.67.0-nightly (32e613bba 2022-12-02)
binary: rustc
commit-hash: 32e613bbaafee1bcabba48a2257b838f8d1c03d3
commit-date: 2022-12-02
host: x86_64-unknown-linux-gnu
release: 1.67.0-nightly
LLVM version: 15.0.4

Error output

rustc -Zdrop-tracking <file> --edition=2021


Backtrace

error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
  --> ./f13b3787cf9d87b92160f13b638f7e516241c09f.rs:19:1
   |
19 |   #[derive(Default)]
   |   ^^^^^^^^^^^^^^^^^^ not applicable here
20 | / async fn foo() {
21 | |     None(None {
22 | |          auto : None,
23 | |         ..None()
24 | |     })
25 | |     .await;
26 | | }
   | |_- not a `struct`, `enum` or `union`

error[E0428]: the name `foo` is defined multiple times
  --> ./f13b3787cf9d87b92160f13b638f7e516241c09f.rs:20:1
   |
11 | async fn foo() {
   | -------------- previous definition of the value `foo` here
...
20 | async fn foo() {
   | ^^^^^^^^^^^^^^ `foo` redefined here
   |
   = note: `foo` must be defined only once in the value namespace of this module

error[E0573]: expected type, found variant `None`
 --> ./f13b3787cf9d87b92160f13b638f7e516241c09f.rs:9:25
  |
9 | async fn from_config(_: None) {}
  |                         ^^^^ not a type
  |
help: try using the variant's enum
  |
9 | async fn from_config(_: core::option::Option) {}
  |                         ~~~~~~~~~~~~~~~~~~~~
9 | async fn from_config(_: std::option::Option) {}
  |                         ~~~~~~~~~~~~~~~~~~~

error[E0618]: expected function, found `Option<_>`
  --> ./f13b3787cf9d87b92160f13b638f7e516241c09f.rs:12:5
   |
12 |       None(None {
   |  _____-^^^
13 | |          auto : None,
14 | |         ..None()
15 | |     })
   | |______- call expression requires function

error[E0559]: variant `Option<_>::None` has no field named `auto`
  --> ./f13b3787cf9d87b92160f13b638f7e516241c09f.rs:13:10
   |
13 |          auto : None,
   |          ^^^^ `Option<_>::None` does not have this field

error: internal compiler error: compiler/rustc_middle/src/ty/context.rs:716:13: node_type: no type for node `expr None() (hir_id=HirId { owner: OwnerId { def_id: DefId(0:6 ~ f13b3787cf9d87b92160f13b638f7e516241c09f[6d87]::foo) }, local_id: 8 })`

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/compiler/rustc_errors/src/lib.rs:1575:9
stack backtrace:
   0:     0x7fe74cc64a5a - std::backtrace_rs::backtrace::libunwind::trace::h445f1a380ebe24fa
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fe74cc64a5a - std::backtrace_rs::backtrace::trace_unsynchronized::h8c542444dc84bbad
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fe74cc64a5a - std::sys_common::backtrace::_print_fmt::hd1e3793b0f95c644
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fe74cc64a5a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h515025d5c2825d78
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fe74d13fe4e - core::fmt::write::hfd15a46634ae3152
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/core/src/fmt/mod.rs:1208:17
   5:     0x7fe74cc58cc5 - std::io::Write::write_fmt::h74b2e38eb2a622bf
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/io/mod.rs:1682:15
   6:     0x7fe74cc64825 - std::sys_common::backtrace::_print::hd2af8aafbe5d4e4d
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7fe74cc64825 - std::sys_common::backtrace::print::hc83e0ce2c452dd90
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7fe74cc66baf - std::panicking::default_hook::{{closure}}::h6fa5498814662258
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/panicking.rs:267:22
   9:     0x7fe74cc668eb - std::panicking::default_hook::h27c5cc64dbc8482d
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/panicking.rs:286:9
  10:     0x7fe74bebdf24 - rustc_driver[1a6385c1c72d16e7]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7fe74cc673ad - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h555d7d9f22ed347d
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/alloc/src/boxed.rs:2032:9
  12:     0x7fe74cc673ad - std::panicking::rust_panic_with_hook::hf0b4a17e8b00f779
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/panicking.rs:692:13
  13:     0x7fe74c3001f1 - std[79527836cf90b5dd]::panicking::begin_panic::<rustc_errors[643e9caaba05b420]::ExplicitBug>::{closure#0}
  14:     0x7fe74c2ff256 - std[79527836cf90b5dd]::sys_common::backtrace::__rust_end_short_backtrace::<std[79527836cf90b5dd]::panicking::begin_panic<rustc_errors[643e9caaba05b420]::ExplicitBug>::{closure#0}, !>
  15:     0x7fe74c35c3a6 - std[79527836cf90b5dd]::panicking::begin_panic::<rustc_errors[643e9caaba05b420]::ExplicitBug>
  16:     0x7fe74c2fd626 - std[79527836cf90b5dd]::panic::panic_any::<rustc_errors[643e9caaba05b420]::ExplicitBug>
  17:     0x7fe74c2fcc66 - <rustc_errors[643e9caaba05b420]::HandlerInner>::bug::<&alloc[976f33e9556b75e2]::string::String>
  18:     0x7fe74c2fc8c0 - <rustc_errors[643e9caaba05b420]::Handler>::bug::<&alloc[976f33e9556b75e2]::string::String>
  19:     0x7fe74c3c50be - rustc_middle[19d5e5a4d6179ade]::ty::context::tls::with_context_opt::<rustc_middle[19d5e5a4d6179ade]::ty::context::tls::with_opt<rustc_middle[19d5e5a4d6179ade]::util::bug::opt_span_bug_fmt<rustc_span[c03eaf4ea18165a3]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
  20:     0x7fe74c3c7586 - rustc_middle[19d5e5a4d6179ade]::util::bug::opt_span_bug_fmt::<rustc_span[c03eaf4ea18165a3]::span_encoding::Span>
  21:     0x7fe74a5e5e83 - rustc_middle[19d5e5a4d6179ade]::util::bug::bug_fmt
  22:     0x7fe74a2930db - <rustc_middle[19d5e5a4d6179ade]::ty::context::TypeckResults>::expr_ty
  23:     0x7fe74c0d92ed - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor>::handle_uninhabited_return
  24:     0x7fe74c0d9bf5 - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor as rustc_hir[d4549fac27bc3fb6]::intravisit::Visitor>::visit_expr
  25:     0x7fe74c0d9475 - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor as rustc_hir[d4549fac27bc3fb6]::intravisit::Visitor>::visit_expr
  26:     0x7fe74c0d9be1 - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor as rustc_hir[d4549fac27bc3fb6]::intravisit::Visitor>::visit_expr
  27:     0x7fe74c0d9be1 - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor as rustc_hir[d4549fac27bc3fb6]::intravisit::Visitor>::visit_expr
  28:     0x7fe74c0d98de - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor as rustc_hir[d4549fac27bc3fb6]::intravisit::Visitor>::visit_expr
  29:     0x7fe74c08dcfa - rustc_hir[d4549fac27bc3fb6]::intravisit::walk_block::<rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor>
  30:     0x7fe74c0d9475 - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor as rustc_hir[d4549fac27bc3fb6]::intravisit::Visitor>::visit_expr
  31:     0x7fe74c0d9475 - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor as rustc_hir[d4549fac27bc3fb6]::intravisit::Visitor>::visit_expr
  32:     0x7fe74c0d9475 - <rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::DropRangeVisitor as rustc_hir[d4549fac27bc3fb6]::intravisit::Visitor>::visit_expr
  33:     0x7fe74c0d912c - rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::cfg_build::build_control_flow_graph
  34:     0x7fe74c0a5740 - rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::drop_ranges::compute_drop_ranges
  35:     0x7fe74c0b69a0 - rustc_hir_typeck[130b4bf7cc6036b2]::generator_interior::resolve_interior
  36:     0x7fe74a0abba9 - <rustc_hir_typeck[130b4bf7cc6036b2]::inherited::InheritedBuilder>::enter::<rustc_hir_typeck[130b4bf7cc6036b2]::typeck_with_fallback<rustc_hir_typeck[130b4bf7cc6036b2]::typeck::{closure#0}>::{closure#0}::{closure#1}, &rustc_middle[19d5e5a4d6179ade]::ty::context::TypeckResults>
  37:     0x7fe74a09ca56 - rustc_hir_typeck[130b4bf7cc6036b2]::typeck
  38:     0x7fe74a09ab74 - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::VecCache<rustc_span[c03eaf4ea18165a3]::def_id::LocalDefId, &rustc_middle[19d5e5a4d6179ade]::ty::context::TypeckResults>>
  39:     0x7fe74b87821c - <rustc_query_impl[81623dbe8f24b13f]::Queries as rustc_middle[19d5e5a4d6179ade]::ty::query::QueryEngine>::typeck
  40:     0x7fe74a9c81f4 - rustc_mir_build[2a761c73c83e5543]::thir::cx::thir_body
  41:     0x7fe74ab2ce62 - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::DefaultCache<rustc_middle[19d5e5a4d6179ade]::ty::WithOptConstParam<rustc_span[c03eaf4ea18165a3]::def_id::LocalDefId>, core[7075224b64f80aa]::result::Result<(&rustc_data_structures[61c58c87d46f5182]::steal::Steal<rustc_middle[19d5e5a4d6179ade]::thir::Thir>, rustc_middle[19d5e5a4d6179ade]::thir::ExprId), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>>
  42:     0x7fe74ab26131 - rustc_mir_build[2a761c73c83e5543]::build::mir_built
  43:     0x7fe74ab80a39 - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::DefaultCache<rustc_middle[19d5e5a4d6179ade]::ty::WithOptConstParam<rustc_span[c03eaf4ea18165a3]::def_id::LocalDefId>, &rustc_data_structures[61c58c87d46f5182]::steal::Steal<rustc_middle[19d5e5a4d6179ade]::mir::Body>>>
  44:     0x7fe74a62a295 - rustc_mir_transform[a58974710e8b365c]::check_unsafety::unsafety_check_result
  45:     0x7fe74a884e3d - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::VecCache<rustc_span[c03eaf4ea18165a3]::def_id::LocalDefId, &rustc_middle[19d5e5a4d6179ade]::mir::query::UnsafetyCheckResult>>
  46:     0x7fe74a880b8e - rustc_mir_transform[a58974710e8b365c]::mir_const
  47:     0x7fe74ab80d6f - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::DefaultCache<rustc_middle[19d5e5a4d6179ade]::ty::WithOptConstParam<rustc_span[c03eaf4ea18165a3]::def_id::LocalDefId>, &rustc_data_structures[61c58c87d46f5182]::steal::Steal<rustc_middle[19d5e5a4d6179ade]::mir::Body>>>
  48:     0x7fe74b0bd637 - rustc_mir_transform[a58974710e8b365c]::mir_promoted
  49:     0x7fe74ac44b92 - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::DefaultCache<rustc_middle[19d5e5a4d6179ade]::ty::WithOptConstParam<rustc_span[c03eaf4ea18165a3]::def_id::LocalDefId>, (&rustc_data_structures[61c58c87d46f5182]::steal::Steal<rustc_middle[19d5e5a4d6179ade]::mir::Body>, &rustc_data_structures[61c58c87d46f5182]::steal::Steal<rustc_index[cfd45676e0bc99c1]::vec::IndexVec<rustc_middle[19d5e5a4d6179ade]::mir::Promoted, rustc_middle[19d5e5a4d6179ade]::mir::Body>>)>>
  50:     0x7fe74ac4338f - rustc_borrowck[aad1bdc7d96c95af]::mir_borrowck
  51:     0x7fe74af5cc8d - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::VecCache<rustc_span[c03eaf4ea18165a3]::def_id::LocalDefId, &rustc_middle[19d5e5a4d6179ade]::mir::query::BorrowCheckResult>>
  52:     0x7fe74b8785cb - <rustc_query_impl[81623dbe8f24b13f]::Queries as rustc_middle[19d5e5a4d6179ade]::ty::query::QueryEngine>::mir_borrowck
  53:     0x7fe74b6afb03 - rustc_hir_analysis[9c428cfd855369e3]::collect::type_of::type_of
  54:     0x7fe74a855cb6 - rustc_query_system[c29954e9c418d3e1]::query::plumbing::get_query::<rustc_query_impl[81623dbe8f24b13f]::queries::type_of, rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt>
  55:     0x7fe74b102cc9 - rustc_hir_analysis[9c428cfd855369e3]::check::check::check_mod_item_types
  56:     0x7fe74aa29e13 - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::VecCache<rustc_span[c03eaf4ea18165a3]::def_id::LocalDefId, ()>>
  57:     0x7fe74b2826b3 - rustc_query_system[c29954e9c418d3e1]::query::plumbing::get_query::<rustc_query_impl[81623dbe8f24b13f]::queries::check_mod_item_types, rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt>
  58:     0x7fe74b5683a5 - <rustc_middle[19d5e5a4d6179ade]::hir::map::Map>::for_each_module::<rustc_hir_analysis[9c428cfd855369e3]::check_crate::{closure#6}::{closure#0}>
  59:     0x7fe74a1e26a2 - rustc_hir_analysis[9c428cfd855369e3]::check_crate
  60:     0x7fe74a1e22eb - rustc_interface[ee8495dca531fc0c]::passes::analysis
  61:     0x7fe74b5e824a - rustc_query_system[c29954e9c418d3e1]::query::plumbing::try_execute_query::<rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt, rustc_query_system[c29954e9c418d3e1]::query::caches::DefaultCache<(), core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>>
  62:     0x7fe74b5e7f40 - rustc_query_system[c29954e9c418d3e1]::query::plumbing::get_query::<rustc_query_impl[81623dbe8f24b13f]::queries::analysis, rustc_query_impl[81623dbe8f24b13f]::plumbing::QueryCtxt>
  63:     0x7fe74aff4b1b - <rustc_interface[ee8495dca531fc0c]::passes::QueryContext>::enter::<rustc_driver[1a6385c1c72d16e7]::run_compiler::{closure#1}::{closure#2}::{closure#2}, core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>
  64:     0x7fe74afec4ce - <rustc_interface[ee8495dca531fc0c]::interface::Compiler>::enter::<rustc_driver[1a6385c1c72d16e7]::run_compiler::{closure#1}::{closure#2}, core[7075224b64f80aa]::result::Result<core[7075224b64f80aa]::option::Option<rustc_interface[ee8495dca531fc0c]::queries::Linker>, rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>
  65:     0x7fe74afe74e8 - rustc_span[c03eaf4ea18165a3]::with_source_map::<core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>, rustc_interface[ee8495dca531fc0c]::interface::run_compiler<core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>, rustc_driver[1a6385c1c72d16e7]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  66:     0x7fe74afe6fd5 - <scoped_tls[6605aed902b0fb11]::ScopedKey<rustc_span[c03eaf4ea18165a3]::SessionGlobals>>::set::<rustc_interface[ee8495dca531fc0c]::interface::run_compiler<core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>, rustc_driver[1a6385c1c72d16e7]::run_compiler::{closure#1}>::{closure#0}, core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>
  67:     0x7fe74afe65c2 - std[79527836cf90b5dd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[ee8495dca531fc0c]::util::run_in_thread_pool_with_globals<rustc_interface[ee8495dca531fc0c]::interface::run_compiler<core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>, rustc_driver[1a6385c1c72d16e7]::run_compiler::{closure#1}>::{closure#0}, core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>
  68:     0x7fe74b76b8e8 - <<std[79527836cf90b5dd]::thread::Builder>::spawn_unchecked_<rustc_interface[ee8495dca531fc0c]::util::run_in_thread_pool_with_globals<rustc_interface[ee8495dca531fc0c]::interface::run_compiler<core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>, rustc_driver[1a6385c1c72d16e7]::run_compiler::{closure#1}>::{closure#0}, core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[7075224b64f80aa]::result::Result<(), rustc_errors[643e9caaba05b420]::ErrorGuaranteed>>::{closure#1} as core[7075224b64f80aa]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  69:     0x7fe74cc6e5e3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb948150b9fd67a86
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/alloc/src/boxed.rs:2000:9
  70:     0x7fe74cc6e5e3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h2f842213b427eb19
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/alloc/src/boxed.rs:2000:9
  71:     0x7fe74cc6e5e3 - std::sys::unix::thread::Thread::new::thread_start::h2adb6f1223042fb8
                               at /rustc/32e613bbaafee1bcabba48a2257b838f8d1c03d3/library/std/src/sys/unix/thread.rs:108:17
  72:     0x7fe748a9f8fd - <unknown>
  73:     0x7fe748b21a60 - <unknown>
  74:                0x0 - <unknown>

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.67.0-nightly (32e613bba 2022-12-02) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z drop-tracking

query stack during panic:
#0 [typeck] type-checking `foo`
#1 [thir_body] building THIR for `foo`
#2 [mir_built] building MIR for `foo`
#3 [unsafety_check_result] unsafety-checking `foo`
#4 [mir_const] preparing `foo` for borrow checking
#5 [mir_promoted] processing MIR for `foo`
#6 [mir_borrowck] borrow-checking `foo`
#7 [type_of] computing type of `foo::{opaque#0}`
#8 [check_mod_item_types] checking item types in top-level module
#9 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to 6 previous errors

Some errors have detailed explanations: E0428, E0559, E0573, E0618, E0774.
For more information about an error, try `rustc --explain E0428`.

@matthiaskrgr matthiaskrgr 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. C-bug Category: This is a bug. labels Dec 3, 2022
@compiler-errors compiler-errors self-assigned this Dec 4, 2022
@bors bors closed this as completed in 3bcfa4c Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. 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
2 participants