Skip to content

ICE "No HirId for DefId" during check_unused with extern crate in attr #104562

Closed
@jruderman

Description

Found with a modified fuzz-rustc

Code

#[w = { extern crate alloc; }]
fn f() {}

fn main() {}

Error output

error: unexpected expression: `{ extern crate alloc; }`

error: cannot find attribute `w` in this scope

error: internal compiler error: compiler/rustc_middle/src/hir/mod.rs:127:36: No HirId for DefId(0:5 ~ ks[f9da]::f::alloc)

query stack during panic:
thread 'rustc' panicked at 'already borrowed: BorrowMutError', /rustc/a00f8ba7fcac1b27341679c51bf5a3271fa82df3/compiler/rustc_query_system/src/query/plumbing.rs:374:11
Full output including backtraces

error: unexpected expression: `{
           extern crate alloc;
       }`
 --> ks.rs:1:7
  |
1 | #[w = { extern crate alloc; }]
  |       ^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find attribute `w` in this scope
 --> ks.rs:1:3
  |
1 | #[w = { extern crate alloc; }]
  |   ^

error: internal compiler error: compiler/rustc_middle/src/hir/mod.rs:127:36: No HirId for DefId(0:5 ~ ks[f9da]::f::alloc)

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/a00f8ba7fcac1b27341679c51bf5a3271fa82df3/compiler/rustc_errors/src/lib.rs:1555:9
stack backtrace:
   0:        0x10a43ff22 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc8a49f87ce17062a
   1:        0x10a49e85a - core::fmt::write::h8a1a7abc727fe6d0
   2:        0x10a4322ec - std::io::Write::write_fmt::h784a2d3ee2ee8639
   3:        0x10a43fcea - std::sys_common::backtrace::print::hb4003780820818b1
   4:        0x10a443016 - std::panicking::default_hook::{{closure}}::ha4bb64ed2ba8f281
   5:        0x10a442d67 - std::panicking::default_hook::haa41a49d8ba42d3b
   6:        0x11345b9bd - rustc_driver[3dbfeae94bbb450c]::DEFAULT_HOOK::{closure#0}::{closure#0}
   7:        0x10a4437fd - std::panicking::rust_panic_with_hook::h0ec6182f72894cd1
   8:        0x117c10d77 - std[b7fc25f664aa2c42]::panicking::begin_panic::<rustc_errors[3e76822466e0ccc2]::ExplicitBug>::{closure#0}
   9:        0x117c105f9 - std[b7fc25f664aa2c42]::sys_common::backtrace::__rust_end_short_backtrace::<std[b7fc25f664aa2c42]::panicking::begin_panic<rustc_errors[3e76822466e0ccc2]::ExplicitBug>::{closure#0}, !>
  10:        0x118215ff9 - std[b7fc25f664aa2c42]::panicking::begin_panic::<rustc_errors[3e76822466e0ccc2]::ExplicitBug>
  11:        0x117c10589 - std[b7fc25f664aa2c42]::panic::panic_any::<rustc_errors[3e76822466e0ccc2]::ExplicitBug>
  12:        0x117c0decd - <rustc_errors[3e76822466e0ccc2]::HandlerInner>::bug::<&alloc[f3b087a993ab1fcd]::string::String>
  13:        0x117c0d997 - <rustc_errors[3e76822466e0ccc2]::Handler>::bug::<&alloc[f3b087a993ab1fcd]::string::String>
  14:        0x117cbce52 - rustc_middle[e2305deeabdd0cca]::ty::context::tls::with_context_opt::<rustc_middle[e2305deeabdd0cca]::ty::context::tls::with_opt<rustc_middle[e2305deeabdd0cca]::util::bug::opt_span_bug_fmt<rustc_span[663101514bc5927d]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
  15:        0x117cbd251 - rustc_middle[e2305deeabdd0cca]::util::bug::opt_span_bug_fmt::<rustc_span[663101514bc5927d]::span_encoding::Span>
  16:        0x1182179ae - rustc_middle[e2305deeabdd0cca]::util::bug::bug_fmt
  17:        0x117c863b7 - <rustc_middle[e2305deeabdd0cca]::hir::provide::{closure#2} as core[67cd3202410ff936]::ops::function::FnOnce<(rustc_middle[e2305deeabdd0cca]::ty::context::TyCtxt, rustc_span[663101514bc5927d]::def_id::LocalDefId)>>::call_once
  18:        0x116c38ccf - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::try_execute_query::<rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt, rustc_query_system[3b5dd79aa171f2d6]::query::caches::DefaultCache<rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_hir[45ffbd509c54e574]::hir_id::HirId>>
  19:        0x116d33add - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::get_query::<rustc_query_impl[b50f402e55213e8a]::queries::local_def_id_to_hir_id, rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt>
  20:        0x115ef207e - <rustc_middle[e2305deeabdd0cca]::hir::map::Map>::local_def_id_to_hir_id
  21:        0x115ee8e12 - <core[67cd3202410ff936]::iter::adapters::map::Map<core[67cd3202410ff936]::iter::adapters::filter::Filter<core[67cd3202410ff936]::iter::adapters::filter::Filter<core[67cd3202410ff936]::slice::iter::Iter<(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span)>, rustc_hir_analysis[34bd11cda90a81cf]::check_unused::unused_crates_lint::{closure#0}>, rustc_hir_analysis[34bd11cda90a81cf]::check_unused::unused_crates_lint::{closure#1}>, <(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span) as core[67cd3202410ff936]::clone::Clone>::clone> as core[67cd3202410ff936]::iter::traits::iterator::Iterator>::fold::<(), core[67cd3202410ff936]::iter::traits::iterator::Iterator::for_each::call<(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span), <hashbrown[59709d4b2dd2abdb]::map::HashMap<rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span, core[67cd3202410ff936]::hash::BuildHasherDefault<rustc_hash[fdeb5f1b6c4dd57e]::FxHasher>> as core[67cd3202410ff936]::iter::traits::collect::Extend<(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span)>>::extend<core[67cd3202410ff936]::iter::adapters::cloned::Cloned<core[67cd3202410ff936]::iter::adapters::filter::Filter<core[67cd3202410ff936]::iter::adapters::filter::Filter<core[67cd3202410ff936]::slice::iter::Iter<(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span)>, rustc_hir_analysis[34bd11cda90a81cf]::check_unused::unused_crates_lint::{closure#0}>, rustc_hir_analysis[34bd11cda90a81cf]::check_unused::unused_crates_lint::{closure#1}>>>::{closure#0}>::{closure#0}>
  22:        0x115e70ff0 - rustc_hir_analysis[34bd11cda90a81cf]::check_unused::check_crate
  23:        0x115f36ef8 - rustc_hir_analysis[34bd11cda90a81cf]::check_crate
  24:        0x11351e81a - rustc_interface[57c9fce0e0c2ba2]::passes::analysis
  25:        0x116cc0ffc - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::try_execute_query::<rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt, rustc_query_system[3b5dd79aa171f2d6]::query::caches::DefaultCache<(), core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>>
  26:        0x116d3b299 - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::get_query::<rustc_query_impl[b50f402e55213e8a]::queries::analysis, rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt>
  27:        0x1133eadd6 - <rustc_interface[57c9fce0e0c2ba2]::passes::QueryContext>::enter::<rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>
  28:        0x11342eecd - rustc_span[663101514bc5927d]::with_source_map::<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_interface[57c9fce0e0c2ba2]::interface::run_compiler<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}>::{closure#0}::{closure#1}>
  29:        0x11341ef2c - <scoped_tls[6bbd84b04dbf1568]::ScopedKey<rustc_span[663101514bc5927d]::SessionGlobals>>::set::<rustc_interface[57c9fce0e0c2ba2]::interface::run_compiler<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}>::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>
  30:        0x1133ee31a - std[b7fc25f664aa2c42]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[57c9fce0e0c2ba2]::util::run_in_thread_pool_with_globals<rustc_interface[57c9fce0e0c2ba2]::interface::run_compiler<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}>::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>
  31:        0x1133d43ab - <<std[b7fc25f664aa2c42]::thread::Builder>::spawn_unchecked_<rustc_interface[57c9fce0e0c2ba2]::util::run_in_thread_pool_with_globals<rustc_interface[57c9fce0e0c2ba2]::interface::run_compiler<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}>::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>::{closure#1} as core[67cd3202410ff936]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  32:        0x10a44cbb7 - std::sys::unix::thread::Thread::new::thread_start::h0a480c6421a176eb
  33:     0x7ff80d84d4e1 - __pthread_start

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 (a00f8ba7f 2022-11-15) running on x86_64-apple-darwin

query stack during panic:
thread 'rustc' panicked at 'already borrowed: BorrowMutError', /rustc/a00f8ba7fcac1b27341679c51bf5a3271fa82df3/compiler/rustc_query_system/src/query/plumbing.rs:374:11
stack backtrace:
   0:        0x10a43ff22 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc8a49f87ce17062a
   1:        0x10a49e85a - core::fmt::write::h8a1a7abc727fe6d0
   2:        0x10a4322ec - std::io::Write::write_fmt::h784a2d3ee2ee8639
   3:        0x10a43fcea - std::sys_common::backtrace::print::hb4003780820818b1
   4:        0x10a443016 - std::panicking::default_hook::{{closure}}::ha4bb64ed2ba8f281
   5:        0x10a442d67 - std::panicking::default_hook::haa41a49d8ba42d3b
   6:        0x11345b9bd - rustc_driver[3dbfeae94bbb450c]::DEFAULT_HOOK::{closure#0}::{closure#0}
   7:        0x10a4437fd - std::panicking::rust_panic_with_hook::h0ec6182f72894cd1
   8:        0x10a4435a3 - std::panicking::begin_panic_handler::{{closure}}::h957cd87b25305989
   9:        0x10a4403b8 - std::sys_common::backtrace::__rust_end_short_backtrace::hc313cf5730833514
  10:        0x10a44326d - _rust_begin_unwind
  11:        0x10a4cb4a3 - core::panicking::panic_fmt::hd4c8c196bb019bad
  12:        0x10a4cb765 - core::result::unwrap_failed::h6ddaba4b39d21a71
  13:        0x116c3926d - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::try_execute_query::<rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt, rustc_query_system[3b5dd79aa171f2d6]::query::caches::DefaultCache<rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_hir[45ffbd509c54e574]::hir_id::HirId>>
  14:        0x116d33add - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::get_query::<rustc_query_impl[b50f402e55213e8a]::queries::local_def_id_to_hir_id, rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt>
  15:        0x117c947a7 - <rustc_middle[e2305deeabdd0cca]::hir::map::Map>::local_def_id_to_hir_id
  16:        0x117c86c93 - <rustc_middle[e2305deeabdd0cca]::hir::provide::{closure#7} as core[67cd3202410ff936]::ops::function::FnOnce<(rustc_middle[e2305deeabdd0cca]::ty::context::TyCtxt, rustc_span[663101514bc5927d]::def_id::DefId)>>::call_once
  17:        0x116c5cb52 - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::try_execute_query::<rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt, rustc_query_system[3b5dd79aa171f2d6]::query::caches::DefaultCache<rustc_span[663101514bc5927d]::def_id::DefId, rustc_span[663101514bc5927d]::span_encoding::Span>>
  18:        0x116d3b3f3 - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::get_query::<rustc_query_impl[b50f402e55213e8a]::queries::def_span, rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt>
  19:        0x116de3445 - <rustc_query_impl[b50f402e55213e8a]::Queries as rustc_middle[e2305deeabdd0cca]::ty::query::QueryEngine>::def_span
  20:        0x116e5afcd - <rustc_span[663101514bc5927d]::def_id::DefId as rustc_query_impl[b50f402e55213e8a]::keys::Key>::default_span
  21:        0x116f92666 - rustc_query_impl[b50f402e55213e8a]::plumbing::create_query_frame::<rustc_hir[45ffbd509c54e574]::hir_id::OwnerId>
  22:        0x116ea0545 - <rustc_query_impl[b50f402e55213e8a]::query_structs::local_def_id_to_hir_id::{closure#0} as core[67cd3202410ff936]::ops::function::FnOnce<(rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt, &mut std[b7fc25f664aa2c42]::collections::hash::map::HashMap<rustc_query_system[3b5dd79aa171f2d6]::query::job::QueryJobId, rustc_query_system[3b5dd79aa171f2d6]::query::job::QueryJobInfo, core[67cd3202410ff936]::hash::BuildHasherDefault<rustc_hash[fdeb5f1b6c4dd57e]::FxHasher>>)>>::call_once
  23:        0x116e5fe8a - rustc_query_system[3b5dd79aa171f2d6]::query::job::print_query_stack::<rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt>
  24:        0x113584592 - rustc_interface[57c9fce0e0c2ba2]::interface::try_print_query_stack
  25:        0x11345c66c - rustc_driver[3dbfeae94bbb450c]::report_ice
  26:        0x10a4437fd - std::panicking::rust_panic_with_hook::h0ec6182f72894cd1
  27:        0x117c10d77 - std[b7fc25f664aa2c42]::panicking::begin_panic::<rustc_errors[3e76822466e0ccc2]::ExplicitBug>::{closure#0}
  28:        0x117c105f9 - std[b7fc25f664aa2c42]::sys_common::backtrace::__rust_end_short_backtrace::<std[b7fc25f664aa2c42]::panicking::begin_panic<rustc_errors[3e76822466e0ccc2]::ExplicitBug>::{closure#0}, !>
  29:        0x118215ff9 - std[b7fc25f664aa2c42]::panicking::begin_panic::<rustc_errors[3e76822466e0ccc2]::ExplicitBug>
  30:        0x117c10589 - std[b7fc25f664aa2c42]::panic::panic_any::<rustc_errors[3e76822466e0ccc2]::ExplicitBug>
  31:        0x117c0decd - <rustc_errors[3e76822466e0ccc2]::HandlerInner>::bug::<&alloc[f3b087a993ab1fcd]::string::String>
  32:        0x117c0d997 - <rustc_errors[3e76822466e0ccc2]::Handler>::bug::<&alloc[f3b087a993ab1fcd]::string::String>
  33:        0x117cbce52 - rustc_middle[e2305deeabdd0cca]::ty::context::tls::with_context_opt::<rustc_middle[e2305deeabdd0cca]::ty::context::tls::with_opt<rustc_middle[e2305deeabdd0cca]::util::bug::opt_span_bug_fmt<rustc_span[663101514bc5927d]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
  34:        0x117cbd251 - rustc_middle[e2305deeabdd0cca]::util::bug::opt_span_bug_fmt::<rustc_span[663101514bc5927d]::span_encoding::Span>
  35:        0x1182179ae - rustc_middle[e2305deeabdd0cca]::util::bug::bug_fmt
  36:        0x117c863b7 - <rustc_middle[e2305deeabdd0cca]::hir::provide::{closure#2} as core[67cd3202410ff936]::ops::function::FnOnce<(rustc_middle[e2305deeabdd0cca]::ty::context::TyCtxt, rustc_span[663101514bc5927d]::def_id::LocalDefId)>>::call_once
  37:        0x116c38ccf - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::try_execute_query::<rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt, rustc_query_system[3b5dd79aa171f2d6]::query::caches::DefaultCache<rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_hir[45ffbd509c54e574]::hir_id::HirId>>
  38:        0x116d33add - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::get_query::<rustc_query_impl[b50f402e55213e8a]::queries::local_def_id_to_hir_id, rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt>
  39:        0x115ef207e - <rustc_middle[e2305deeabdd0cca]::hir::map::Map>::local_def_id_to_hir_id
  40:        0x115ee8e12 - <core[67cd3202410ff936]::iter::adapters::map::Map<core[67cd3202410ff936]::iter::adapters::filter::Filter<core[67cd3202410ff936]::iter::adapters::filter::Filter<core[67cd3202410ff936]::slice::iter::Iter<(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span)>, rustc_hir_analysis[34bd11cda90a81cf]::check_unused::unused_crates_lint::{closure#0}>, rustc_hir_analysis[34bd11cda90a81cf]::check_unused::unused_crates_lint::{closure#1}>, <(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span) as core[67cd3202410ff936]::clone::Clone>::clone> as core[67cd3202410ff936]::iter::traits::iterator::Iterator>::fold::<(), core[67cd3202410ff936]::iter::traits::iterator::Iterator::for_each::call<(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span), <hashbrown[59709d4b2dd2abdb]::map::HashMap<rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span, core[67cd3202410ff936]::hash::BuildHasherDefault<rustc_hash[fdeb5f1b6c4dd57e]::FxHasher>> as core[67cd3202410ff936]::iter::traits::collect::Extend<(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span)>>::extend<core[67cd3202410ff936]::iter::adapters::cloned::Cloned<core[67cd3202410ff936]::iter::adapters::filter::Filter<core[67cd3202410ff936]::iter::adapters::filter::Filter<core[67cd3202410ff936]::slice::iter::Iter<(rustc_span[663101514bc5927d]::def_id::LocalDefId, rustc_span[663101514bc5927d]::span_encoding::Span)>, rustc_hir_analysis[34bd11cda90a81cf]::check_unused::unused_crates_lint::{closure#0}>, rustc_hir_analysis[34bd11cda90a81cf]::check_unused::unused_crates_lint::{closure#1}>>>::{closure#0}>::{closure#0}>
  41:        0x115e70ff0 - rustc_hir_analysis[34bd11cda90a81cf]::check_unused::check_crate
  42:        0x115f36ef8 - rustc_hir_analysis[34bd11cda90a81cf]::check_crate
  43:        0x11351e81a - rustc_interface[57c9fce0e0c2ba2]::passes::analysis
  44:        0x116cc0ffc - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::try_execute_query::<rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt, rustc_query_system[3b5dd79aa171f2d6]::query::caches::DefaultCache<(), core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>>
  45:        0x116d3b299 - rustc_query_system[3b5dd79aa171f2d6]::query::plumbing::get_query::<rustc_query_impl[b50f402e55213e8a]::queries::analysis, rustc_query_impl[b50f402e55213e8a]::plumbing::QueryCtxt>
  46:        0x1133eadd6 - <rustc_interface[57c9fce0e0c2ba2]::passes::QueryContext>::enter::<rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>
  47:        0x11342eecd - rustc_span[663101514bc5927d]::with_source_map::<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_interface[57c9fce0e0c2ba2]::interface::run_compiler<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}>::{closure#0}::{closure#1}>
  48:        0x11341ef2c - <scoped_tls[6bbd84b04dbf1568]::ScopedKey<rustc_span[663101514bc5927d]::SessionGlobals>>::set::<rustc_interface[57c9fce0e0c2ba2]::interface::run_compiler<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}>::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>
  49:        0x1133ee31a - std[b7fc25f664aa2c42]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[57c9fce0e0c2ba2]::util::run_in_thread_pool_with_globals<rustc_interface[57c9fce0e0c2ba2]::interface::run_compiler<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}>::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>
  50:        0x1133d43ab - <<std[b7fc25f664aa2c42]::thread::Builder>::spawn_unchecked_<rustc_interface[57c9fce0e0c2ba2]::util::run_in_thread_pool_with_globals<rustc_interface[57c9fce0e0c2ba2]::interface::run_compiler<core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>, rustc_driver[3dbfeae94bbb450c]::run_compiler::{closure#1}>::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[67cd3202410ff936]::result::Result<(), rustc_errors[3e76822466e0ccc2]::ErrorGuaranteed>>::{closure#1} as core[67cd3202410ff936]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  51:        0x10a44cbb7 - std::sys::unix::thread::Thread::new::thread_start::h0a480c6421a176eb
  52:     0x7ff80d84d4e1 - __pthread_start

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.67.0-nightly (a00f8ba7f 2022-11-15) running on x86_64-apple-darwin

query stack during panic:
thread panicked while processing panic. aborting.
Abort trap: 6

Regression

Regression in nightly-2020-12-11, perhaps from #78837

Version

rustc 1.67.0-nightly (a00f8ba7f 2022-11-15)
binary: rustc
commit-hash: a00f8ba7fcac1b27341679c51bf5a3271fa82df3
commit-date: 2022-11-15
host: x86_64-apple-darwin
release: 1.67.0-nightly
LLVM version: 15.0.4

Activity

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

Metadata

Assignees

Labels

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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions