error[E0658]: use of unstable library feature `extern_item_impls`
--> /tmp/icemaker_global_tempdir.fwZSuw0lJskB/rustc_testrunner_tmpdir_reporting.IfxQ3aZG6HPN/mvce.rs:2:3
|
2 | #[eii]
| ^^^
|
= note: see issue #125418 <https://github.com/rust-lang/rust/issues/125418> for more information
= help: add `#![feature(extern_item_impls)]` to the crate attributes to enable
= note: this compiler was built on 2026-02-08; consider upgrading it if it is out of date
error[E0428]: the name `A` is defined multiple times
--> /tmp/icemaker_global_tempdir.fwZSuw0lJskB/rustc_testrunner_tmpdir_reporting.IfxQ3aZG6HPN/mvce.rs:3:1
|
1 | const A: () = 0;
| ---------------- previous definition of the value `A` here
2 | #[eii]
3 | fn A() {}
| ^^^^^^ `A` redefined here
|
= note: `A` must be defined only once in the value namespace of this module
error[E0601]: `main` function not found in crate `mvce`
--> /tmp/icemaker_global_tempdir.fwZSuw0lJskB/rustc_testrunner_tmpdir_reporting.IfxQ3aZG6HPN/mvce.rs:3:10
|
3 | fn A() {}
| ^ consider adding a `main` function to `/tmp/icemaker_global_tempdir.fwZSuw0lJskB/rustc_testrunner_tmpdir_reporting.IfxQ3aZG6HPN/mvce.rs`
error: internal compiler error: /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_analysis/src/collect.rs:1032:13: unexpected sort of node in fn_sig(): Item(Item { owner_id: DefId(0:3 ~ mvce[ba04]::A), kind: Const(A#0, Generics { params: [], predicates: [], has_where_clause_predicates: false, where_clause_span: /tmp/icemaker_global_tempdir.fwZSuw0lJskB/rustc_testrunner_tmpdir_reporting.IfxQ3aZG6HPN/mvce.rs:1:12: 1:12 (#0), span: /tmp/icemaker_global_tempdir.fwZSuw0lJskB/rustc_testrunner_tmpdir_reporting.IfxQ3aZG6HPN/mvce.rs:1:8: 1:8 (#0) }, Ty { hir_id: HirId(DefId(0:3 ~ mvce[ba04]::A).1), span: /tmp/icemaker_global_tempdir.fwZSuw0lJskB/rustc_testrunner_tmpdir_reporting.IfxQ3aZG6HPN/mvce.rs:1:10: 1:12 (#0), kind: Tup([]) }, Body(BodyId { hir_id: HirId(DefId(0:3 ~ mvce[ba04]::A).2) })), span: /tmp/icemaker_global_tempdir.fwZSuw0lJskB/rustc_testrunner_tmpdir_reporting.IfxQ3aZG6HPN/mvce.rs:1:1: 1:17 (#0), vis_span: no-location (#0), has_delayed_lints: false, eii: false })
thread 'rustc' (3938157) panicked at /rustc-dev/13c38730d981289cc7ae4cc109fd7756bf83ee67/compiler/rustc_hir_analysis/src/collect.rs:1032:13:
Box<dyn Any>
stack backtrace:
0: 0x7fb29d7bebcb - <<std[bd410f491febadb6]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[2ca3c49344714521]::fmt::Display>::fmt
1: 0x7fb29de0ecc8 - core[2ca3c49344714521]::fmt::write
2: 0x7fb29d7d5eb6 - <std[bd410f491febadb6]::sys::stdio::unix::Stderr as std[bd410f491febadb6]::io::Write>::write_fmt
3: 0x7fb29d794c08 - std[bd410f491febadb6]::panicking::default_hook::{closure#0}
4: 0x7fb29d7b1fd3 - std[bd410f491febadb6]::panicking::default_hook
5: 0x7fb29c78c9e2 - std[bd410f491febadb6]::panicking::update_hook::<alloc[a248f8e1b1583859]::boxed::Box<rustc_driver_impl[b59eeeb9fc736c31]::install_ice_hook::{closure#1}>>::{closure#0}
6: 0x7fb29d7b22b2 - std[bd410f491febadb6]::panicking::panic_with_hook
7: 0x7fb29c7c30f1 - std[bd410f491febadb6]::panicking::begin_panic::<rustc_errors[9a7d3fb2b4d26c7d]::ExplicitBug>::{closure#0}
8: 0x7fb29c7ba246 - std[bd410f491febadb6]::sys::backtrace::__rust_end_short_backtrace::<std[bd410f491febadb6]::panicking::begin_panic<rustc_errors[9a7d3fb2b4d26c7d]::ExplicitBug>::{closure#0}, !>
9: 0x7fb29c7b9fab - std[bd410f491febadb6]::panicking::begin_panic::<rustc_errors[9a7d3fb2b4d26c7d]::ExplicitBug>
10: 0x7fb29c7cee61 - <rustc_errors[9a7d3fb2b4d26c7d]::diagnostic::BugAbort as rustc_errors[9a7d3fb2b4d26c7d]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
11: 0x7fb29cd851b9 - rustc_middle[3efcf2d0f50fae3f]::util::bug::opt_span_bug_fmt::<rustc_span[6275488d32054521]::span_encoding::Span>::{closure#0}
12: 0x7fb29cd85342 - rustc_middle[3efcf2d0f50fae3f]::ty::context::tls::with_opt::<rustc_middle[3efcf2d0f50fae3f]::util::bug::opt_span_bug_fmt<rustc_span[6275488d32054521]::span_encoding::Span>::{closure#0}, !>::{closure#0}
13: 0x7fb29cd7694b - rustc_middle[3efcf2d0f50fae3f]::ty::context::tls::with_context_opt::<rustc_middle[3efcf2d0f50fae3f]::ty::context::tls::with_opt<rustc_middle[3efcf2d0f50fae3f]::util::bug::opt_span_bug_fmt<rustc_span[6275488d32054521]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
14: 0x7fb29a2ed904 - rustc_middle[3efcf2d0f50fae3f]::util::bug::bug_fmt
15: 0x7fb29e0f8d48 - rustc_hir_analysis[9091eb4b622a99a6]::collect::fn_sig
16: 0x7fb29e0f7ba6 - rustc_query_impl[21826ead98e520a1]::query_impl::fn_sig::compute_fn::__rust_begin_short_backtrace
17: 0x7fb29e0faecb - rustc_query_system[6518298d71496d73]::query::plumbing::try_execute_query::<rustc_query_impl[21826ead98e520a1]::SemiDynamicQueryDispatcher<rustc_query_system[6518298d71496d73]::query::caches::DefIdCache<rustc_middle[3efcf2d0f50fae3f]::query::erase::ErasedData<[u8; 24usize]>>, {rustc_query_impl[21826ead98e520a1]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>, false>
18: 0x7fb29e0fa5a3 - rustc_query_impl[21826ead98e520a1]::query_impl::fn_sig::get_query_non_incr::__rust_end_short_backtrace
19: 0x7fb29c93428a - rustc_hir_analysis[9091eb4b622a99a6]::check::compare_eii::compare_eii_function_types
20: 0x7fb29e78b489 - rustc_hir_analysis[9091eb4b622a99a6]::check::wfcheck::check_item_fn
21: 0x7fb29e4df47c - rustc_hir_analysis[9091eb4b622a99a6]::check::check::check_item_type
22: 0x7fb29e4db63a - rustc_hir_analysis[9091eb4b622a99a6]::check::wfcheck::check_well_formed
23: 0x7fb29e4db61b - rustc_query_impl[21826ead98e520a1]::query_impl::check_well_formed::compute_fn::__rust_begin_short_backtrace
24: 0x7fb29e4db03a - rustc_query_system[6518298d71496d73]::query::plumbing::try_execute_query::<rustc_query_impl[21826ead98e520a1]::SemiDynamicQueryDispatcher<rustc_data_structures[ca9174053067dbfd]::vec_cache::VecCache<rustc_span[6275488d32054521]::def_id::LocalDefId, rustc_middle[3efcf2d0f50fae3f]::query::erase::ErasedData<[u8; 1usize]>, rustc_query_system[6518298d71496d73]::dep_graph::graph::DepNodeIndex>, {rustc_query_impl[21826ead98e520a1]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>, false>
25: 0x7fb29e4dab82 - rustc_query_impl[21826ead98e520a1]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace
26: 0x7fb29e4d8269 - rustc_hir_analysis[9091eb4b622a99a6]::check::wfcheck::check_type_wf
27: 0x7fb29e4d8163 - rustc_query_impl[21826ead98e520a1]::query_impl::check_type_wf::compute_fn::__rust_begin_short_backtrace
28: 0x7fb29f093487 - rustc_query_system[6518298d71496d73]::query::plumbing::try_execute_query::<rustc_query_impl[21826ead98e520a1]::SemiDynamicQueryDispatcher<rustc_query_system[6518298d71496d73]::query::caches::SingleCache<rustc_middle[3efcf2d0f50fae3f]::query::erase::ErasedData<[u8; 1usize]>>, {rustc_query_impl[21826ead98e520a1]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>, false>
29: 0x7fb29f093136 - rustc_query_impl[21826ead98e520a1]::query_impl::check_type_wf::get_query_non_incr::__rust_end_short_backtrace
30: 0x7fb29eac6e73 - rustc_hir_analysis[9091eb4b622a99a6]::check_crate
31: 0x7fb29eabf359 - rustc_interface[923b877a2cdf5a67]::passes::analysis
32: 0x7fb29f0903ce - rustc_query_system[6518298d71496d73]::query::plumbing::try_execute_query::<rustc_query_impl[21826ead98e520a1]::SemiDynamicQueryDispatcher<rustc_query_system[6518298d71496d73]::query::caches::SingleCache<rustc_middle[3efcf2d0f50fae3f]::query::erase::ErasedData<[u8; 0usize]>>, {rustc_query_impl[21826ead98e520a1]::QueryFlags { is_anon: false, is_depth_limit: false, is_feedable: false }}>, false>
33: 0x7fb29f090192 - rustc_query_impl[21826ead98e520a1]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
34: 0x7fb29f1d32e7 - <rustc_interface[923b877a2cdf5a67]::passes::create_and_enter_global_ctxt<core[2ca3c49344714521]::option::Option<rustc_interface[923b877a2cdf5a67]::queries::Linker>, rustc_driver_impl[b59eeeb9fc736c31]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[2ca3c49344714521]::ops::function::FnOnce<(&rustc_session[45e3122b25e742c0]::session::Session, rustc_middle[3efcf2d0f50fae3f]::ty::context::CurrentGcx, alloc[a248f8e1b1583859]::sync::Arc<rustc_data_structures[ca9174053067dbfd]::jobserver::Proxy>, &std[bd410f491febadb6]::sync::once_lock::OnceLock<rustc_middle[3efcf2d0f50fae3f]::ty::context::GlobalCtxt>, &rustc_data_structures[ca9174053067dbfd]::sync::worker_local::WorkerLocal<rustc_middle[3efcf2d0f50fae3f]::arena::Arena>, &rustc_data_structures[ca9174053067dbfd]::sync::worker_local::WorkerLocal<rustc_hir[6cfa7645bd0a50ff]::Arena>, rustc_driver_impl[b59eeeb9fc736c31]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
35: 0x7fb29f07e261 - rustc_interface[923b877a2cdf5a67]::interface::run_compiler::<(), rustc_driver_impl[b59eeeb9fc736c31]::run_compiler::{closure#0}>::{closure#1}
36: 0x7fb29f0601fe - std[bd410f491febadb6]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[923b877a2cdf5a67]::util::run_in_thread_with_globals<rustc_interface[923b877a2cdf5a67]::util::run_in_thread_pool_with_globals<rustc_interface[923b877a2cdf5a67]::interface::run_compiler<(), rustc_driver_impl[b59eeeb9fc736c31]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
37: 0x7fb29f060720 - <std[bd410f491febadb6]::thread::lifecycle::spawn_unchecked<rustc_interface[923b877a2cdf5a67]::util::run_in_thread_with_globals<rustc_interface[923b877a2cdf5a67]::util::run_in_thread_pool_with_globals<rustc_interface[923b877a2cdf5a67]::interface::run_compiler<(), rustc_driver_impl[b59eeeb9fc736c31]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[2ca3c49344714521]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
38: 0x7fb29f0615ac - <std[bd410f491febadb6]::sys::thread::unix::Thread>::new::thread_start
39: 0x7fb29889698b - <unknown>
40: 0x7fb29891a9cc - <unknown>
41: 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: rustc 1.95.0-nightly (13c38730d 2026-02-08) running on x86_64-unknown-linux-gnu
query stack during panic:
#0 [fn_sig] computing function signature of `A`
#1 [check_well_formed] checking that `_::A` is well-formed
#2 [check_type_wf] checking that types are well-formed
#3 [analysis] running analysis passes on crate `mvce`
end of query stack
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0428, E0601, E0658.
For more information about an error, try `rustc --explain E0428`.
auto-reduced (treereduce-rust):
original:
Version information
Possibly related line of code:
rust/compiler/rustc_hir_analysis/src/collect.rs
Lines 1026 to 1038 in 13c3873
Command:
/home/matthias/.rustup/toolchains/master/bin/rustcProgram output
@rustbot label +F-extern_item_impls