Repository navigation
[ICE]: no resolutions for a doc link #164459
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Description
Code
rustdoc --crate-type lib code.rs --document-private-items
mod a {
//!
#"]
}Meta
rustc --version --verbose:
rustc 1.101.0-nightly (5d8fec066 2026-10-16)
binary: rustc
commit-hash: 5d8fec0669a64607db9ccbf663e7c23125bf4748
commit-date: 2026-10-16
host: x86_64-unknown-linux-gnu
release: 1.101.0-nightly
LLVM version: 23.1.4
Error output
<output>
Backtrace
error: internal compiler error: /rustc-dev/5d8fec0669a64607db9ccbf663e7c23125bf4748/compiler/rustc_metadata/src/rmeta/encoder.rs:2802:36: no resolutions for a doc link
--> code.rs:1:1
|
1 | / mod a {
2 | | //!
3 | | #"]
4 | | }
| |_^
thread 'rustc' (831570) panicked at /rustc-dev/5d8fec0669a64607db9ccbf663e7c23125bf4748/compiler/rustc_metadata/src/rmeta/encoder.rs:2802:36:
Box<dyn Any>
stack backtrace:
0: 0x7efec9c79846 - <<std[2d0355171b11e4aa]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[5d050ae3161daf4c]::fmt::Display>::fmt
1: 0x7efeca2101a9 - core[5d050ae3161daf4c]::fmt::write
2: 0x7efec8092fac - <std[2d0355171b11e4aa]::sys::stdio::unix::Stderr as core[5d050ae3161daf4c]::io::write::Write>::write_fmt
3: 0x7efec9c4a75a - std[2d0355171b11e4aa]::panicking::default_hook::{closure#0}
4: 0x7efec9c6d1c5 - std[2d0355171b11e4aa]::panicking::default_hook
5: 0x7efec89fce89 - std[2d0355171b11e4aa]::panicking::update_hook::<alloc[a9353d85dd39d305]::boxed::Box<rustc_driver_impl[2b0ff45c6f9ba49]::install_ice_hook::{closure#1}>>::{closure#0}
6: 0x7efec9c6d662 - std[2d0355171b11e4aa]::panicking::panic_with_hook
7: 0x7efec9802107 - std[2d0355171b11e4aa]::panicking::begin_panic::<rustc_span[f1d263a8c5e6e777]::macros::ExplicitBug>::{closure#0}
8: 0x7efec980012e - std[2d0355171b11e4aa]::sys::backtrace::__rust_end_short_backtrace::<std[2d0355171b11e4aa]::panicking::begin_panic<rustc_span[f1d263a8c5e6e777]::macros::ExplicitBug>::{closure#0}, !>
9: 0x7efec97ff7bc - std[2d0355171b11e4aa]::panicking::begin_panic::<rustc_span[f1d263a8c5e6e777]::macros::ExplicitBug>
10: 0x7efec5c31e51 - rustc_span[f1d263a8c5e6e777]::macros::bug_impl
11: 0x7efec907419f - <rustc_metadata[511dcefa4db0325a]::rmeta::encoder::provide::{closure#0} as core[5d050ae3161daf4c]::ops::function::FnOnce<(rustc_middle[8e65d7b7259fc525]::ty::context::TyCtxt, rustc_span[f1d263a8c5e6e777]::def_id::LocalModId)>>::call_once
12: 0x7efec966faf3 - rustc_query_impl[1582a6416d52638a]::query_vtables::doc_link_resolutions::invoke_provider_fn::__rust_begin_short_backtrace
13: 0x7efec95e3fea - rustc_query_impl[1582a6416d52638a]::execution::try_execute_query::<rustc_middle[8e65d7b7259fc525]::query::caches::DefaultCache<rustc_span[f1d263a8c5e6e777]::def_id::ModId, rustc_middle[8e65d7b7259fc525]::query::erase::ErasedData<[u8; 8usize]>>, false>
14: 0x7efec966fb2a - rustc_query_impl[1582a6416d52638a]::query_vtables::doc_link_resolutions::execute_query_non_incr::__rust_end_short_backtrace
15: 0x55a67163f4ab - <rustdoc[32ead7552883b965]::passes::collect_intra_doc_links::LinkCollector>::resolve_path
16: 0x55a67163dad8 - <rustdoc[32ead7552883b965]::passes::collect_intra_doc_links::LinkCollector>::resolve
17: 0x55a67163a130 - <rustdoc[32ead7552883b965]::passes::collect_intra_doc_links::LinkCollector>::resolve_link
18: 0x55a67162b584 - <rustdoc[32ead7552883b965]::passes::collect_intra_doc_links::LinkCollector>::resolve_links::{closure#1}
19: 0x55a671627c0c - <rustdoc[32ead7552883b965]::passes::collect_intra_doc_links::LinkCollector>::resolve_links::{closure#2}
20: 0x55a6716275c5 - <rustdoc[32ead7552883b965]::passes::collect_intra_doc_links::LinkCollector as rustdoc[32ead7552883b965]::visit::DocVisitor>::visit_item
21: 0x55a67162713b - <rustdoc[32ead7552883b965]::passes::collect_intra_doc_links::LinkCollector as rustdoc[32ead7552883b965]::visit::DocVisitor>::visit_item
22: 0x55a6714e162c - rustdoc[32ead7552883b965]::core::run_global_ctxt
23: 0x55a6716d8edb - rustdoc[32ead7552883b965]::main_args::{closure#2}::{closure#0}
24: 0x55a6717240df - rustc_interface[f52e132873fab5c7]::interface::run_compiler::<(), rustdoc[32ead7552883b965]::main_args::{closure#2}>::{closure#2}
25: 0x55a671721e53 - std[2d0355171b11e4aa]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[f52e132873fab5c7]::util::run_in_thread_with_globals<rustc_interface[f52e132873fab5c7]::util::run_in_thread_pool_with_globals<rustc_interface[f52e132873fab5c7]::interface::run_compiler<(), rustdoc[32ead7552883b965]::main_args::{closure#2}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
26: 0x55a671721bbf - <std[2d0355171b11e4aa]::thread::lifecycle::spawn_unchecked<rustc_interface[f52e132873fab5c7]::util::run_in_thread_with_globals<rustc_interface[f52e132873fab5c7]::util::run_in_thread_pool_with_globals<rustc_interface[f52e132873fab5c7]::interface::run_compiler<(), rustdoc[32ead7552883b965]::main_args::{closure#2}>::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[5d050ae3161daf4c]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
27: 0x7efecb4f719b - <std[2d0355171b11e4aa]::sys::thread::unix::Thread>::new::thread_start
28: 0x7efec44980a2 - <unknown>
29: 0x7efec452080c - <unknown>
30: 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-rustdoc&template=ice.md
note: please make sure that you have updated to the latest nightly
note: please attach the file at `/home/matthias/vcs/github/CRED/rustc-ice-2026-10-17T08_33_43-831569.txt` to your bug report
note: rustc 1.101.0-nightly (5d8fec066 2026-10-16) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib
query stack during panic:
#0 [doc_link_resolutions] resolutions for documentation links for a module
end of query stack
error: aborting due to 1 previous error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Activity
matthiaskrgr commentedon Oct 17, 2026
no error on stable or beta, ICE on nightly
apiraino commentedon Oct 17, 2026
regression bisection points to rollup b46c90c
with obvious candidate is #162862
cc @GuillaumeGomez
Rollup merge of rust-lang#164594 - GuillaumeGomez:intra-doc-deprecate…
Rollup merge of rust-lang#164594 - GuillaumeGomez:intra-doc-deprecate…
Rollup merge of rust-lang#164594 - GuillaumeGomez:intra-doc-deprecate…
Rollup merge of rust-lang#164594 - GuillaumeGomez:intra-doc-deprecate…
Rollup merge of rust-lang#164594 - GuillaumeGomez:intra-doc-deprecate…
Rollup merge of rust-lang#164594 - GuillaumeGomez:intra-doc-deprecate…
Rollup merge of rust-lang#164594 - GuillaumeGomez:intra-doc-deprecate…
Rollup merge of rust-lang#164594 - GuillaumeGomez:intra-doc-deprecate…
Unrolled build for #164594 in rollup 164662
Rollup merge of #164594 - GuillaumeGomez:intra-doc-deprecated, r=Urgau
Rollup merge of #164594 - GuillaumeGomez:intra-doc-deprecated, r=Urgau
Rollup merge of #164594 - GuillaumeGomez:intra-doc-deprecated, r=Urgau