Skip to content

One off compiler error with no changes to the code #149697

@annie444

Description

@annie444

Code

Unfortunately, this seems to be a one off. I can't get the error to recur. However, if it's at all helpful, the only changes that were made in the repo were changes to markdown files included with include_str!(). The Cargo.lock was not changed between the previous build and this failing build.

Meta

rustc --version --verbose:

rustc 1.91.1 (ed61e7d7e 2025-11-07)
binary: rustc
commit-hash: ed61e7d7e242494fb7057f2657300d9e77bb4fcb
commit-date: 2025-11-07
host: aarch64-apple-darwin
release: 1.91.1
LLVM version: 21.1.2

Error output

error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:692:32: uninterned StableCrateId: StableCrateId(0)
Backtrace

error: internal compiler error: compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:692:32: uninterned StableCrateId: StableCrateId(0)


thread 'rustc' (104364993) panicked at compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:692:32:
Box<dyn Any>
stack backtrace:
   0:        0x1133fdbf8 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hfd528c9d14c1136f
   1:        0x1108351d4 - core::fmt::write::h2ddadfca81aeb692
   2:        0x1133b7820 - std::io::Write::write_fmt::hc70e63382e9f29d2
   3:        0x1133c8f9c - std::sys::backtrace::BacktraceLock::print::hea663f6050de4073
   4:        0x1133cf5c0 - std::panicking::default_hook::{{closure}}::hbcaf474e707f3b7d
   5:        0x1133cf260 - std::panicking::default_hook::hff9145c2c6e89cdf
   6:        0x1113d6664 - std[61e3cf0e49db9e2]::panicking::update_hook::<alloc[9f300485f014b380]::boxed::Box<rustc_driver_impl[f71edeeeb67068f7]::install_ice_hook::{closure#1}>>::{closure#0}
   7:        0x1133cfae8 - std::panicking::panic_with_hook::he6431e171a67d1a5
   8:        0x111459ba0 - std[61e3cf0e49db9e2]::panicking::begin_panic::<rustc_errors[34df37362a135e2b]::ExplicitBug>::{closure#0}
   9:        0x111446ff8 - std[61e3cf0e49db9e2]::sys::backtrace::__rust_end_short_backtrace::<std[61e3cf0e49db9e2]::panicking::begin_panic<rustc_errors[34df37362a135e2b]::ExplicitBug>::{closure#0}, !>
  10:        0x116198fe0 - std[61e3cf0e49db9e2]::panicking::begin_panic::<rustc_errors[34df37362a135e2b]::ExplicitBug>
  11:        0x1161993a8 - <rustc_errors[34df37362a135e2b]::diagnostic::BugAbort as rustc_errors[34df37362a135e2b]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:        0x116201cbc - rustc_middle[dda7fe0dc4dc28d1]::util::bug::opt_span_bug_fmt::<rustc_span[aa51eebbfc7afd73]::span_encoding::Span>::{closure#0}
  13:        0x11202bf7c - rustc_middle[dda7fe0dc4dc28d1]::ty::context::tls::with_opt::<rustc_middle[dda7fe0dc4dc28d1]::util::bug::opt_span_bug_fmt<rustc_span[aa51eebbfc7afd73]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:        0x1120019f4 - rustc_middle[dda7fe0dc4dc28d1]::ty::context::tls::with_context_opt::<rustc_middle[dda7fe0dc4dc28d1]::ty::context::tls::with_opt<rustc_middle[dda7fe0dc4dc28d1]::util::bug::opt_span_bug_fmt<rustc_span[aa51eebbfc7afd73]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  15:        0x116205080 - rustc_middle[dda7fe0dc4dc28d1]::util::bug::bug_fmt
  16:        0x111fd5754 - <rustc_metadata[af6988351dd7973]::rmeta::decoder::cstore_impl::provide_cstore_hooks::{closure#0} as core[5e47c8f4dec2dc26]::ops::function::FnOnce<(rustc_middle[dda7fe0dc4dc28d1]::ty::context::TyCtxt, rustc_span[aa51eebbfc7afd73]::def_id::DefPathHash, rustc_span[aa51eebbfc7afd73]::def_id::StableCrateId)>>::call_once
  17:        0x11209407c - <rustc_middle[dda7fe0dc4dc28d1]::ty::context::TyCtxt>::def_path_hash_to_def_id
  18:        0x112897c10 - rustc_query_impl[5f846028cc15e01d]::plumbing::force_from_dep_node::<rustc_query_impl[5f846028cc15e01d]::DynamicConfig<rustc_data_structures[26aca51b5d4b7103]::vec_cache::VecCache<rustc_hir_id[8ddbaefa2b6ebfa8]::OwnerId, rustc_middle[dda7fe0dc4dc28d1]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[2cc97363d695203a]::dep_graph::graph::DepNodeIndex>, false, false, false>>
  19:        0x112b39d8c - <rustc_query_impl[5f846028cc15e01d]::plumbing::query_callback<rustc_query_impl[5f846028cc15e01d]::query_impl::hir_attr_map::QueryType>::{closure#0} as core[5e47c8f4dec2dc26]::ops::function::FnOnce<(rustc_middle[dda7fe0dc4dc28d1]::ty::context::TyCtxt, rustc_query_system[2cc97363d695203a]::dep_graph::dep_node::DepNode, rustc_query_system[2cc97363d695203a]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once
  20:        0x112860a28 - <rustc_query_system[2cc97363d695203a]::dep_graph::graph::DepGraphData<rustc_middle[dda7fe0dc4dc28d1]::dep_graph::DepsType>>::try_mark_previous_green::<rustc_query_impl[5f846028cc15e01d]::plumbing::QueryCtxt>
  21:        0x112860804 - <rustc_query_system[2cc97363d695203a]::dep_graph::graph::DepGraphData<rustc_middle[dda7fe0dc4dc28d1]::dep_graph::DepsType>>::try_mark_green::<rustc_query_impl[5f846028cc15e01d]::plumbing::QueryCtxt>
  22:        0x1128ab808 - rustc_query_system[2cc97363d695203a]::query::plumbing::ensure_must_run::<rustc_query_impl[5f846028cc15e01d]::DynamicConfig<rustc_query_system[2cc97363d695203a]::query::caches::SingleCache<rustc_middle[dda7fe0dc4dc28d1]::query::erase::Erased<[u8; 12usize]>>, false, false, false>, rustc_query_impl[5f846028cc15e01d]::plumbing::QueryCtxt>
  23:        0x112a3d730 - rustc_query_impl[5f846028cc15e01d]::query_impl::entry_fn::get_query_incr::__rust_end_short_backtrace
  24:        0x111cd8d2c - rustc_interface[d50093d3b8b05fc]::passes::run_required_analyses
  25:        0x111cdc090 - rustc_interface[d50093d3b8b05fc]::passes::analysis
  26:        0x1128ab088 - rustc_query_impl[5f846028cc15e01d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[5f846028cc15e01d]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[dda7fe0dc4dc28d1]::query::erase::Erased<[u8; 0usize]>>
  27:        0x1128c6b00 - rustc_query_system[2cc97363d695203a]::query::plumbing::try_execute_query::<rustc_query_impl[5f846028cc15e01d]::DynamicConfig<rustc_query_system[2cc97363d695203a]::query::caches::SingleCache<rustc_middle[dda7fe0dc4dc28d1]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[5f846028cc15e01d]::plumbing::QueryCtxt, true>
  28:        0x112a3cd24 - rustc_query_impl[5f846028cc15e01d]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  29:        0x11138bb68 - rustc_interface[d50093d3b8b05fc]::passes::create_and_enter_global_ctxt::<core[5e47c8f4dec2dc26]::option::Option<rustc_interface[d50093d3b8b05fc]::queries::Linker>, rustc_driver_impl[f71edeeeb67068f7]::run_compiler::{closure#0}::{closure#2}>
  30:        0x1113d4c6c - rustc_interface[d50093d3b8b05fc]::interface::run_compiler::<(), rustc_driver_impl[f71edeeeb67068f7]::run_compiler::{closure#0}>::{closure#1}
  31:        0x1113c923c - std[61e3cf0e49db9e2]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[d50093d3b8b05fc]::util::run_in_thread_with_globals<rustc_interface[d50093d3b8b05fc]::util::run_in_thread_pool_with_globals<rustc_interface[d50093d3b8b05fc]::interface::run_compiler<(), rustc_driver_impl[f71edeeeb67068f7]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  32:        0x1113daf58 - <<std[61e3cf0e49db9e2]::thread::Builder>::spawn_unchecked_<rustc_interface[d50093d3b8b05fc]::util::run_in_thread_with_globals<rustc_interface[d50093d3b8b05fc]::util::run_in_thread_pool_with_globals<rustc_interface[d50093d3b8b05fc]::interface::run_compiler<(), rustc_driver_impl[f71edeeeb67068f7]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5e47c8f4dec2dc26]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  33:        0x1133c5a80 - std::sys::thread::unix::Thread::new::thread_start::h96f5a914e64457ad
  34:        0x188fe9c08 - __pthread_cond_wait

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.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