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]: Both stable and nightly crash at compiler/rustc_borrowck/src/universal_regions.rs:907:36 #135130

Closed
2 of 4 tasks
wangbo15 opened this issue Jan 5, 2025 · 1 comment
Closed
2 of 4 tasks
Labels
C-bug Category: This is a bug. F-generic_const_exprs `#![feature(generic_const_exprs)]` 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

@wangbo15
Copy link

wangbo15 commented Jan 5, 2025

Code

#![feature(generic_const_exprs)]
async fn test<'a>(_: &'static (),
) -> [(); {
       let x: &'a ();
       1
   }] {
}
fn main() {}

Affected release channels

  • Previous Stable
  • Current Stable
  • Current Beta
  • Current Nightly

Rust Version

$ rustc --version --verbose
rustc 1.83.0 (90b35a623 2024-11-26)
binary: rustc
commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
commit-date: 2024-11-26
host: x86_64-unknown-linux-gnu
release: 1.83.0
LLVM version: 19.1.1

Current error output

$ rustc --edition=2021 2.rs 
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
 --> 2.rs:1:12
  |
1 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
  = note: `#[warn(incomplete_features)]` on by default

error[E0308]: mismatched types
 --> 2.rs:6:7
  |
6 |      }] {
  |  _______^
7 | | }
  | |_^ expected `[(); {
       let x: &'a ();
       1
   }]`, found `()`

warning: unused variable: `x`
 --> 2.rs:4:12
  |
4 |        let x: &'a ();
  |            ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

Backtrace

error: internal compiler error: compiler/rustc_borrowck/src/universal_regions.rs:901:36: cannot convert `'a/#1` to a region vid


thread 'rustc' panicked at compiler/rustc_borrowck/src/universal_regions.rs:901:36:
Box<dyn Any>
stack backtrace:
   0:     0x7f9f1c1e54ba - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hc56bb2061e3f2faf
   1:     0x7f9f1c9255e6 - core::fmt::write::hf476acdbab1f8242
   2:     0x7f9f1d82c311 - std::io::Write::write_fmt::hff3ae507590478c7
   3:     0x7f9f1c1e5312 - std::sys::backtrace::BacktraceLock::print::h59430f67692bb429
   4:     0x7f9f1c1e78b7 - std::panicking::default_hook::{{closure}}::h85fc82fd35f7c854
   5:     0x7f9f1c1e76a0 - std::panicking::default_hook::h149038da7be0a2dc
   6:     0x7f9f1b362738 - std[3aac40dc3bd55acb]::panicking::update_hook::<alloc[11ef5de1b489fae0]::boxed::Box<rustc_driver_impl[550e196038d14fc8]::install_ice_hook::{closure#1}>>::{closure#0}
   7:     0x7f9f1c1e8103 - std::panicking::rust_panic_with_hook::h91fff69bbdba9796
   8:     0x7f9f1b39b541 - std[3aac40dc3bd55acb]::panicking::begin_panic::<rustc_errors[73b4fb24a9d2b318]::ExplicitBug>::{closure#0}
   9:     0x7f9f1b390726 - std[3aac40dc3bd55acb]::sys::backtrace::__rust_end_short_backtrace::<std[3aac40dc3bd55acb]::panicking::begin_panic<rustc_errors[73b4fb24a9d2b318]::ExplicitBug>::{closure#0}, !>
  10:     0x7f9f1b38d3ed - std[3aac40dc3bd55acb]::panicking::begin_panic::<rustc_errors[73b4fb24a9d2b318]::ExplicitBug>
  11:     0x7f9f1b3a54a1 - <rustc_errors[73b4fb24a9d2b318]::diagnostic::BugAbort as rustc_errors[73b4fb24a9d2b318]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f9f1b979883 - rustc_middle[14a978e5f69a019c]::util::bug::opt_span_bug_fmt::<rustc_span[b6e6f95d265627df]::span_encoding::Span>::{closure#0}
  13:     0x7f9f1b95e93a - rustc_middle[14a978e5f69a019c]::ty::context::tls::with_opt::<rustc_middle[14a978e5f69a019c]::util::bug::opt_span_bug_fmt<rustc_span[b6e6f95d265627df]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f9f1b95e7cb - rustc_middle[14a978e5f69a019c]::ty::context::tls::with_context_opt::<rustc_middle[14a978e5f69a019c]::ty::context::tls::with_opt<rustc_middle[14a978e5f69a019c]::util::bug::opt_span_bug_fmt<rustc_span[b6e6f95d265627df]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  15:     0x7f9f19b54d70 - rustc_middle[14a978e5f69a019c]::util::bug::bug_fmt
  16:     0x7f9f1ce08645 - <rustc_borrowck[1fba6a3089e02fd3]::type_check::TypeChecker>::push_region_constraints
  17:     0x7f9f1cbd3dbe - <rustc_borrowck[1fba6a3089e02fd3]::type_check::TypeChecker>::ascribe_user_type
  18:     0x7f9f1d9b7a66 - rustc_borrowck[1fba6a3089e02fd3]::type_check::type_check
  19:     0x7f9f1ca2ff07 - rustc_borrowck[1fba6a3089e02fd3]::nll::compute_regions
  20:     0x7f9f1d9d639a - rustc_borrowck[1fba6a3089e02fd3]::do_mir_borrowck
  21:     0x7f9f1d9c9633 - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::mir_borrowck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>
  22:     0x7f9f1cc89bce - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_data_structures[ae0ce5d866feace6]::vec_cache::VecCache<rustc_span[b6e6f95d265627df]::def_id::LocalDefId, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[528ee24881948e23]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  23:     0x7f9f1cc896d5 - rustc_query_impl[f2ccb8a37d943839]::query_impl::mir_borrowck::get_query_non_incr::__rust_end_short_backtrace
  24:     0x7f9f1a0d1238 - rustc_mir_transform[a976027c43ccba49]::mir_drops_elaborated_and_const_checked
  25:     0x7f9f1cc89877 - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::mir_drops_elaborated_and_const_checked::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>
  26:     0x7f9f1cc89bce - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_data_structures[ae0ce5d866feace6]::vec_cache::VecCache<rustc_span[b6e6f95d265627df]::def_id::LocalDefId, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[528ee24881948e23]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  27:     0x7f9f1cc89627 - rustc_query_impl[f2ccb8a37d943839]::query_impl::mir_drops_elaborated_and_const_checked::get_query_non_incr::__rust_end_short_backtrace
  28:     0x7f9f1cc8957a - rustc_middle[14a978e5f69a019c]::query::plumbing::query_get_at::<rustc_data_structures[ae0ce5d866feace6]::vec_cache::VecCache<rustc_span[b6e6f95d265627df]::def_id::LocalDefId, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[528ee24881948e23]::dep_graph::graph::DepNodeIndex>>
  29:     0x7f9f1cdafa6e - rustc_mir_transform[a976027c43ccba49]::mir_for_ctfe
  30:     0x7f9f1cdaf9e7 - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::mir_for_ctfe::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>
  31:     0x7f9f1ca08e1f - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_query_system[528ee24881948e23]::query::caches::DefIdCache<rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  32:     0x7f9f1d1539ab - rustc_query_impl[f2ccb8a37d943839]::query_impl::mir_for_ctfe::get_query_non_incr::__rust_end_short_backtrace
  33:     0x7f9f1d153af0 - <rustc_const_eval[62deab0820ce8e8f]::interpret::eval_context::InterpCx<rustc_const_eval[62deab0820ce8e8f]::const_eval::machine::CompileTimeMachine>>::load_mir
  34:     0x7f9f1a7967e8 - rustc_const_eval[62deab0820ce8e8f]::const_eval::eval_queries::eval_to_allocation_raw_provider
  35:     0x7f9f1d157ebe - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::eval_to_allocation_raw::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 24usize]>>
  36:     0x7f9f1d1577ec - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_query_system[528ee24881948e23]::query::caches::DefaultCache<rustc_middle[14a978e5f69a019c]::ty::PseudoCanonicalInput<rustc_middle[14a978e5f69a019c]::mir::interpret::GlobalId>, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  37:     0x7f9f1d15734d - rustc_query_impl[f2ccb8a37d943839]::query_impl::eval_to_allocation_raw::get_query_non_incr::__rust_end_short_backtrace
  38:     0x7f9f1d1343c3 - rustc_const_eval[62deab0820ce8e8f]::const_eval::valtrees::eval_to_valtree
  39:     0x7f9f1d134194 - <rustc_const_eval[62deab0820ce8e8f]::provide::{closure#0} as core[b46bc0d640c29f3e]::ops::function::FnOnce<(rustc_middle[14a978e5f69a019c]::ty::context::TyCtxt, rustc_middle[14a978e5f69a019c]::ty::PseudoCanonicalInput<rustc_middle[14a978e5f69a019c]::mir::interpret::GlobalId>)>>::call_once
  40:     0x7f9f1d13413e - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::eval_to_valtree::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 24usize]>>
  41:     0x7f9f1d1340f7 - <rustc_query_impl[f2ccb8a37d943839]::query_impl::eval_to_valtree::dynamic_query::{closure#2} as core[b46bc0d640c29f3e]::ops::function::FnOnce<(rustc_middle[14a978e5f69a019c]::ty::context::TyCtxt, rustc_middle[14a978e5f69a019c]::ty::PseudoCanonicalInput<rustc_middle[14a978e5f69a019c]::mir::interpret::GlobalId>)>>::call_once
  42:     0x7f9f1d1578c2 - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_query_system[528ee24881948e23]::query::caches::DefaultCache<rustc_middle[14a978e5f69a019c]::ty::PseudoCanonicalInput<rustc_middle[14a978e5f69a019c]::mir::interpret::GlobalId>, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  43:     0x7f9f1d3775e3 - rustc_query_impl[f2ccb8a37d943839]::query_impl::eval_to_valtree::get_query_non_incr::__rust_end_short_backtrace
  44:     0x7f9f1d376ecc - rustc_middle[14a978e5f69a019c]::query::plumbing::query_get_at::<rustc_query_system[528ee24881948e23]::query::caches::DefaultCache<rustc_middle[14a978e5f69a019c]::ty::PseudoCanonicalInput<rustc_middle[14a978e5f69a019c]::mir::interpret::GlobalId>, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 24usize]>>>
  45:     0x7f9f1d3764e2 - <rustc_middle[14a978e5f69a019c]::ty::context::TyCtxt>::const_eval_global_id_for_typeck
  46:     0x7f9f1d376379 - <rustc_middle[14a978e5f69a019c]::ty::context::TyCtxt>::const_eval_resolve_for_typeck
  47:     0x7f9f1d3760b7 - rustc_trait_selection[444852e7e18afd76]::traits::try_evaluate_const
  48:     0x7f9f1e5320de - rustc_trait_selection[444852e7e18afd76]::traits::const_evaluatable::is_const_evaluatable.cold
  49:     0x7f9f1d2fcd03 - <rustc_trait_selection[444852e7e18afd76]::traits::fulfill::FulfillProcessor as rustc_data_structures[ae0ce5d866feace6]::obligation_forest::ObligationProcessor>::process_obligation
  50:     0x7f9f1c916e4b - <rustc_data_structures[ae0ce5d866feace6]::obligation_forest::ObligationForest<rustc_trait_selection[444852e7e18afd76]::traits::fulfill::PendingPredicateObligation>>::process_obligations::<rustc_trait_selection[444852e7e18afd76]::traits::fulfill::FulfillProcessor>
  51:     0x7f9f1d102003 - <rustc_trait_selection[444852e7e18afd76]::traits::fulfill::FulfillmentContext<rustc_trait_selection[444852e7e18afd76]::traits::FulfillmentError> as rustc_infer[1a38fbba33ff53d8]::traits::engine::TraitEngine<rustc_trait_selection[444852e7e18afd76]::traits::FulfillmentError>>::select_where_possible
  52:     0x7f9f1cc5b8c2 - rustc_hir_typeck[dfe90fccb9fda837]::check::check_fn
  53:     0x7f9f1cc665db - rustc_hir_typeck[dfe90fccb9fda837]::typeck_with_fallback::{closure#0}
  54:     0x7f9f1cc647cc - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>
  55:     0x7f9f1cc89bce - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_data_structures[ae0ce5d866feace6]::vec_cache::VecCache<rustc_span[b6e6f95d265627df]::def_id::LocalDefId, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[528ee24881948e23]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  56:     0x7f9f1cc88da3 - rustc_query_impl[f2ccb8a37d943839]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  57:     0x7f9f1d1fe850 - rustc_middle[14a978e5f69a019c]::query::plumbing::query_get_at::<rustc_data_structures[ae0ce5d866feace6]::vec_cache::VecCache<rustc_span[b6e6f95d265627df]::def_id::LocalDefId, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[528ee24881948e23]::dep_graph::graph::DepNodeIndex>>
  58:     0x7f9f1d824726 - rustc_hir_analysis[31076c4cd5748c84]::collect::type_of::type_of_opaque
  59:     0x7f9f1d824675 - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::type_of_opaque::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>
  60:     0x7f9f1ca08e1f - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_query_system[528ee24881948e23]::query::caches::DefIdCache<rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  61:     0x7f9f1db0c3f9 - rustc_query_impl[f2ccb8a37d943839]::query_impl::type_of_opaque::get_query_non_incr::__rust_end_short_backtrace
  62:     0x7f9f1d061c6c - rustc_middle[14a978e5f69a019c]::query::plumbing::query_get_at::<rustc_query_system[528ee24881948e23]::query::caches::DefIdCache<rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>>
  63:     0x7f9f1ca17961 - rustc_hir_analysis[31076c4cd5748c84]::collect::type_of::type_of
  64:     0x7f9f1ca0a078 - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>
  65:     0x7f9f1ca08e1f - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_query_system[528ee24881948e23]::query::caches::DefIdCache<rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  66:     0x7f9f1ca089ab - rustc_query_impl[f2ccb8a37d943839]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  67:     0x7f9f1d061c6c - rustc_middle[14a978e5f69a019c]::query::plumbing::query_get_at::<rustc_query_system[528ee24881948e23]::query::caches::DefIdCache<rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 8usize]>>>
  68:     0x7f9f1d0415ac - rustc_hir_analysis[31076c4cd5748c84]::check::check::check_item_type
  69:     0x7f9f1d04f870 - rustc_hir_analysis[31076c4cd5748c84]::check::wfcheck::check_well_formed
  70:     0x7f9f1d04dda3 - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::check_well_formed::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 1usize]>>
  71:     0x7f9f1d04d845 - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_data_structures[ae0ce5d866feace6]::vec_cache::VecCache<rustc_span[b6e6f95d265627df]::def_id::LocalDefId, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[528ee24881948e23]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  72:     0x7f9f1d04d2c1 - rustc_query_impl[f2ccb8a37d943839]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace
  73:     0x7f9f1d04a4eb - rustc_middle[14a978e5f69a019c]::query::plumbing::query_ensure_error_guaranteed::<rustc_data_structures[ae0ce5d866feace6]::vec_cache::VecCache<rustc_span[b6e6f95d265627df]::def_id::LocalDefId, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[528ee24881948e23]::dep_graph::graph::DepNodeIndex>, ()>
  74:     0x7f9f1d04a9db - rustc_hir_analysis[31076c4cd5748c84]::check::wfcheck::check_mod_type_wf
  75:     0x7f9f1d04a50b - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::check_mod_type_wf::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 1usize]>>
  76:     0x7f9f1d8bdf08 - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_query_system[528ee24881948e23]::query::caches::DefaultCache<rustc_span[b6e6f95d265627df]::def_id::LocalModDefId, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  77:     0x7f9f1d8bdcb0 - rustc_query_impl[f2ccb8a37d943839]::query_impl::check_mod_type_wf::get_query_non_incr::__rust_end_short_backtrace
  78:     0x7f9f1cc86738 - rustc_hir_analysis[31076c4cd5748c84]::check_crate
  79:     0x7f9f1cd9b2e8 - rustc_interface[a26ce81f2f299766]::passes::run_required_analyses
  80:     0x7f9f1d83019e - rustc_interface[a26ce81f2f299766]::passes::analysis
  81:     0x7f9f1d83016f - rustc_query_impl[f2ccb8a37d943839]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f2ccb8a37d943839]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 0usize]>>
  82:     0x7f9f1d8c3595 - rustc_query_system[528ee24881948e23]::query::plumbing::try_execute_query::<rustc_query_impl[f2ccb8a37d943839]::DynamicConfig<rustc_query_system[528ee24881948e23]::query::caches::SingleCache<rustc_middle[14a978e5f69a019c]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[f2ccb8a37d943839]::plumbing::QueryCtxt, false>
  83:     0x7f9f1d8c32ce - rustc_query_impl[f2ccb8a37d943839]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  84:     0x7f9f1d81ea5e - rustc_interface[a26ce81f2f299766]::passes::create_and_enter_global_ctxt::<core[b46bc0d640c29f3e]::option::Option<rustc_interface[a26ce81f2f299766]::queries::Linker>, rustc_driver_impl[550e196038d14fc8]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}
  85:     0x7f9f1d89bf16 - rustc_interface[a26ce81f2f299766]::interface::run_compiler::<(), rustc_driver_impl[550e196038d14fc8]::run_compiler::{closure#0}>::{closure#1}
  86:     0x7f9f1d726087 - std[3aac40dc3bd55acb]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[a26ce81f2f299766]::util::run_in_thread_with_globals<rustc_interface[a26ce81f2f299766]::util::run_in_thread_pool_with_globals<rustc_interface[a26ce81f2f299766]::interface::run_compiler<(), rustc_driver_impl[550e196038d14fc8]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  87:     0x7f9f1d726524 - <<std[3aac40dc3bd55acb]::thread::Builder>::spawn_unchecked_<rustc_interface[a26ce81f2f299766]::util::run_in_thread_with_globals<rustc_interface[a26ce81f2f299766]::util::run_in_thread_pool_with_globals<rustc_interface[a26ce81f2f299766]::interface::run_compiler<(), rustc_driver_impl[550e196038d14fc8]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[b46bc0d640c29f3e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  88:     0x7f9f1d727aef - std::sys::pal::unix::thread::Thread::new::thread_start::h9fd3085ff298f095
  89:     0x7f9f17cd0609 - start_thread
                               at /build/glibc-LcI20x/glibc-2.31/nptl/pthread_create.c:477:8
  90:     0x7f9f17bf5353 - clone
                               at /build/glibc-LcI20x/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95:0
  91:                0x0 - <unknown>

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: please make sure that you have updated to the latest nightly

note: please attach the file at `/home/nightwish/workspace/compiler/rust_test/rustc-ice-2025-01-05T17_33_30-3596.txt` to your bug report

query stack during panic:
#0 [mir_borrowck] borrow-checking `test::{opaque#0}::{constant#0}`
#1 [mir_drops_elaborated_and_const_checked] elaborating drops for `test::{opaque#0}::{constant#0}`
end of query stack
error: aborting due to 2 previous errors; 2 warnings emitted

For more information about this error, try `rustc --explain E0308`.

Anything else?

No response

@wangbo15 wangbo15 added 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. labels Jan 5, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 5, 2025
@jieyouxu jieyouxu added F-generic_const_exprs `#![feature(generic_const_exprs)]` and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jan 5, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Jan 5, 2025

I believe this is a duplicate of #131295.

@jieyouxu jieyouxu closed this as completed Jan 5, 2025
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. F-generic_const_exprs `#![feature(generic_const_exprs)]` 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

No branches or pull requests

3 participants