Skip to content

[ICE]: no resolutions for a doc link #164459

Closed

Description

@matthiaskrgr

Code

rustdoc --crate-type lib code.rs --document-private-items

mod a {
    //!
    #![deprecated = "[](TypeAlias::x)"]
}

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 | |     #![deprecated = "[](TypeAlias::x)"]
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

Activity

  1. added
    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.
    C-bugCategory: This is a bug.
    on Oct 17, 2026
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Oct 17, 2026
  3. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    and removed
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Oct 17, 2026
  4. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Oct 17, 2026
  5. matthiaskrgr commented on Oct 17, 2026

    @matthiaskrgr
    MemberAuthor

    no error on stable or beta, ICE on nightly

  6. apiraino commented on Oct 17, 2026

    @apiraino
    Contributor

    regression bisection points to rollup b46c90c
    with obvious candidate is #162862

    cc @GuillaumeGomez

  7. added
    S-has-bisectionStatus: A bisection has been found for this issue
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Oct 17, 2026
  8. added 7 commits that reference this issue on Oct 20, 2026
    06cb02c
    b1a40eb
    32d2271
    1fc4e83
    9f4f3f4
    2c83823
    f69a8e4
  9. added a commit that references this issue on Oct 21, 2026
    7c88399
  10. added a commit that references this issue on Oct 21, 2026
    d369974
  11. removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Oct 21, 2026
  12. added a commit that references this issue on Oct 22, 2026
    4322042
  13. added a commit that references this issue on Oct 22, 2026
    69f37f6
  14. added a commit that references this issue on Oct 25, 2026
    e79c881
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-has-bisectionStatus: A bisection has been found for this issueT-rustdocRelevant 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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions