[ICE]: rustdoc: `no resolution for "TypeAlias::x" MacroNS DefId`
Open
Nobody has claimed this yet.
A-intra-doc-links
C-bug
I-ICE
T-compiler
T-rustdoc
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Code
mod inner {
#[deprecated = "[A](TypeAlias::x)"]
pub use std::vec::Vec;
}
fn main() {}
Meta
rustc --version --verbose:
rustdoc 1.98.0-nightly (f8a08b688 2026-05-30)
binary: rustdoc
commit-hash: f8a08b688cbe60acc386ed1fbd1b7cbaaf5576b1
commit-date: 2026-05-30
host: x86_64-unknown-linux-gnu
release: 1.98.0-nightly
LLVM version: 22.1.6
Error output
<output>
Backtrace
error: internal compiler error: src/librustdoc/passes/collect_intra_doc_links.rs:371:17: no resolution for "TypeAlias::x" MacroNS DefId(3:7824 ~ alloc[c818]::vec)
--> /rustc/f8a08b688cbe60acc386ed1fbd1b7cbaaf5576b1/library/alloc/src/vec/mod.rs:447:0
thread 'rustc' (3942001) panicked at src/librustdoc/passes/collect_intra_doc_links.rs:371:17:
Box<dyn Any>
stack backtrace:
0: 0x7fe44a4a2b39 - <<std[101bcc562b039d88]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[34752699eafec3ec]::fmt::Display>::fmt
1: 0x7fe44ac2a548 - core[34752699eafec3ec]::fmt::write
2: 0x7fe44a4b9636 - <std[101bcc562b039d88]::sys::stdio::unix::Stderr as std[101bcc562b039d88]::io::Write>::write_fmt
3: 0x7fe44a478d5e - std[101bcc562b039d88]::panicking::default_hook::{closure#0}
4: 0x7fe44a496473 - std[101bcc562b039d88]::panicking::default_hook
5: 0x7fe449292331 - std[101bcc562b039d88]::panicking::update_hook::<alloc[c8182525a12656f8]::boxed::Box<rustc_driver_impl[c9187ee63147f5a1]::install_ice_hook::{closure#1}>>::{closure#0}
6: 0x7fe44a496752 - std[101bcc562b039d88]::panicking::panic_with_hook
7: 0x7fe4492c0181 - std[101bcc562b039d88]::panicking::begin_panic::<rustc_errors[4c0642aab6289362]::ExplicitBug>::{closure#0}
8: 0x7fe4492b8ef6 - std[101bcc562b039d88]::sys::backtrace::__rust_end_short_backtrace::<std[101bcc562b039d88]::panicking::begin_panic<rustc_errors[4c0642aab6289362]::ExplicitBug>::{closure#0}, !>
9: 0x7fe4492b6e88 - std[101bcc562b039d88]::panicking::begin_panic::<rustc_errors[4c0642aab6289362]::ExplicitBug>
10: 0x7fe4492cb671 - <rustc_errors[4c0642aab6289362]::diagnostic::BugAbort as rustc_errors[4c0642aab6289362]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
11: 0x7fe44992f26c - <rustc_errors[4c0642aab6289362]::DiagCtxtHandle>::span_bug::<rustc_span[9308ff3252c2cf73]::span_encoding::Span, alloc[c8182525a12656f8]::string::String>
12: 0x7fe44995a7b6 - rustc_middle[9b75262572261193]::util::bug::opt_span_bug_fmt::<rustc_span[9308ff3252c2cf73]::span_encoding::Span>::{closure#0}
13: 0x7fe44995a942 - rustc_middle[9b75262572261193]::ty::context::tls::with_opt::<rustc_middle[9b75262572261193]::util::bug::opt_span_bug_fmt<rustc_span[9308ff3252c2cf73]::span_encoding::Span>::{closure#0}, !>::{closure#0}
14: 0x7fe4499495cb - rustc_middle[9b75262572261193]::ty::context::tls::with_context_opt::<rustc_middle[9b75262572261193]::ty::context::tls::with_opt<rustc_middle[9b75262572261193]::util::bug::opt_span_bug_fmt<rustc_span[9308ff3252c2cf73]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
15: 0x7fe447881918 - rustc_middle[9b75262572261193]::util::bug::span_bug_fmt::<rustc_span[9308ff3252c2cf73]::span_encoding::Span>
16: 0x55aaf577ffe1 - <rustdoc[3577eea8a6092771]::passes::collect_intra_doc_links::LinkCollector>::resolve_path
17: 0x55aaf57807a0 - <rustdoc[3577eea8a6092771]::passes::collect_intra_doc_links::LinkCollector>::resolve
18: 0x55aaf579951b - <rustdoc[3577eea8a6092771]::passes::collect_intra_doc_links::LinkCollector>::resolve_link
19: 0x55aaf56f1bf6 - <rustdoc[3577eea8a6092771]::passes::collect_intra_doc_links::LinkCollector>::resolve_links::{closure#1}
20: 0x55aaf58e1b9b - <rustdoc[3577eea8a6092771]::passes::collect_intra_doc_links::LinkCollector as rustdoc[3577eea8a6092771]::visit::DocVisitor>::visit_item
21: 0x55aaf58e1fb9 - <rustdoc[3577eea8a6092771]::passes::collect_intra_doc_links::LinkCollector as rustdoc[3577eea8a6092771]::visit::DocVisitor>::visit_item
22: 0x55aaf58e1fb9 - <rustdoc[3577eea8a6092771]::passes::collect_intra_doc_links::LinkCollector as rustdoc[3577eea8a6092771]::visit::DocVisitor>::visit_item
23: 0x55aaf57cb246 - rustdoc[3577eea8a6092771]::core::run_global_ctxt
24: 0x55aaf56df421 - rustdoc[3577eea8a6092771]::main_args::{closure#2}::{closure#0}
25: 0x55aaf56d6197 - rustc_interface[1d601d0d3d2ff64e]::interface::run_compiler::<(), rustdoc[3577eea8a6092771]::main_args::{closure#2}>::{closure#1}
26: 0x55aaf55f9416 - std[101bcc562b039d88]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[1d601d0d3d2ff64e]::util::run_in_thread_with_globals<rustc_interface[1d601d0d3d2ff64e]::util::run_in_thread_pool_with_globals<rustc_interface[1d601d0d3d2ff64e]::interface::run_compiler<(), rustdoc[3577eea8a6092771]::main_args::{closure#2}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
27: 0x55aaf571e0cd - <std[101bcc562b039d88]::thread::lifecycle::spawn_unchecked<rustc_interface[1d601d0d3d2ff64e]::util::run_in_thread_with_globals<rustc_interface[1d601d0d3d2ff64e]::util::run_in_thread_pool_with_globals<rustc_interface[1d601d0d3d2ff64e]::interface::run_compiler<(), rustdoc[3577eea8a6092771]::main_args::{closure#2}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[34752699eafec3ec]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
28: 0x7fe44bd8cfac - <std[101bcc562b039d88]::sys::thread::unix::Thread>::new::thread_start
29: 0x7fe4452981b9 - <unknown>
30: 0x7fe44531d21c - <unknown>
31: 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-05-31T16_59_38-3941992.txt` to your bug report
note: rustc 1.98.0-nightly (f8a08b688 2026-05-30) running on x86_64-unknown-linux-gnu
query stack during panic:
end of query stack
error: aborting due to 1 previous error
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the minimal example in the issue and reproduce it with rustdoc, then inspect src/librustdoc/passes/collect_intra_doc_links.rs around line 371 and the resolve_path call shown in the backtrace. Done means the example no longer triggers an internal compiler error and rustdoc reports or handles the unresolved link normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers, documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100