Closed
Description
Code
Panic occurs when running cargo doc
on my project here. This is specifically on the current transfer
branch of the project with commit hash c1d04db7977d2de43d69ea9f8795905f60b3b8ba. Note that this project does include the Cargo.lock
file, and that the project compiles normally (i.e. with cargo build
) just fine.
Meta
cargo --version --verbose
:
cargo 1.70.0-nightly (4a3c588b1 2023-03-14)
release: 1.70.0-nightly
commit-hash: 4a3c588b1f0a8e2dc8dd8789dbf3b6a71b02ed49
commit-date: 2023-03-14
host: x86_64-unknown-linux-gnu
libgit2: 1.5.0 (sys:0.16.0 vendored)
libcurl: 7.86.0-DEV (sys:0.4.59+curl-7.86.0 vendored ssl:OpenSSL/1.1.1q)
os: Ubuntu 22.04 (jammy) [64-bit]
rustc --version --verbose
:
rustc 1.70.0-nightly (44f518058 2023-03-20)
binary: rustc
commit-hash: 44f5180584404d18058cbbf224c55255db4fdcbb
commit-date: 2023-03-20
host: x86_64-unknown-linux-gnu
release: 1.70.0-nightly
LLVM version: 15.0.7
Error output
There are numerous panics when running cargo doc
, but the first one seems to happen while Checking serde_json v1.0.94
:
thread 'rustc' panicked at 'no resolutions for a doc link', compiler/rustc_metadata/src/rmeta/encoder.rs:2235:18
Backtrace
stack backtrace:
0: 0x7f04c0d66bfa - std::backtrace_rs::backtrace::libunwind::trace::h02b863e4bfcd5ee4
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x7f04c0d66bfa - std::backtrace_rs::backtrace::trace_unsynchronized::h00a2c275504a104d
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f04c0d66bfa - std::sys_common::backtrace::_print_fmt::h026a22e05cf38896
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/sys_common/backtrace.rs:65:5
3: 0x7f04c0d66bfa - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h34a8f50cf2d025fa
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7f04c0dca21e - core::fmt::write::h5b51ab21f7d1e0b3
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/core/src/fmt/mod.rs:1254:17
5: 0x7f04c0d59a85 - std::io::Write::write_fmt::hf4fa62cadc893d5c
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/io/mod.rs:1698:15
6: 0x7f04c0d669c5 - std::sys_common::backtrace::_print::ha17a326a77d0900c
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/sys_common/backtrace.rs:47:5
7: 0x7f04c0d669c5 - std::sys_common::backtrace::print::h4547d3fae20fb79a
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/sys_common/backtrace.rs:34:9
8: 0x7f04c0d6973f - std::panicking::default_hook::{{closure}}::hc37cfbcbf13dea2f
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/panicking.rs:271:22
9: 0x7f04c0d6947b - std::panicking::default_hook::h68329187d8716430
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/panicking.rs:290:9
10: 0x7f04c3fb53f5 - <rustc_driver_impl[e865fcce65453e97]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[e92a6e72e88848e6]::ops::function::FnOnce<(&core[e92a6e72e88848e6]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
11: 0x7f04c0d69f7d - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::he6b1b104583416f4
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/alloc/src/boxed.rs:2002:9
12: 0x7f04c0d69f7d - std::panicking::rust_panic_with_hook::h89588635866984f2
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/panicking.rs:696:13
13: 0x7f04c0d69cf9 - std::panicking::begin_panic_handler::{{closure}}::haf7e5802c3a8728c
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/panicking.rs:583:13
14: 0x7f04c0d67066 - std::sys_common::backtrace::__rust_end_short_backtrace::h8100acaef4dcb737
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/sys_common/backtrace.rs:150:18
15: 0x7f04c0d69a02 - rust_begin_unwind
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/panicking.rs:579:5
16: 0x7f04c0dc6573 - core::panicking::panic_fmt::h176c535e62b8ef16
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/core/src/panicking.rs:64:14
17: 0x7f04c0dc66e1 - core::panicking::panic_display::h59bc55a12419d24e
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/core/src/panicking.rs:147:5
18: 0x7f04c0dc668b - core::panicking::panic_str::hf7a9b345df0273a6
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/core/src/panicking.rs:131:5
19: 0x7f04c0dc62f6 - core::option::expect_failed::ha547da0b831768e9
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/core/src/option.rs:2091:5
20: 0x7f04c447cb4a - <rustc_metadata[d1c7680efe9369f1]::rmeta::encoder::provide::{closure#0} as core[e92a6e72e88848e6]::ops::function::FnOnce<(rustc_middle[20900d4515e9a17b]::ty::context::TyCtxt, rustc_span[f138f19c2ce8dad]::def_id::DefId)>>::call_once
21: 0x7f04c487ae5d - rustc_query_system[17296292601d89b2]::query::plumbing::try_execute_query::<rustc_query_impl[f65bb69a3c105d87]::queries::doc_link_resolutions, rustc_query_impl[f65bb69a3c105d87]::plumbing::QueryCtxt>
22: 0x7f04c490a807 - <rustc_query_impl[f65bb69a3c105d87]::Queries as rustc_middle[20900d4515e9a17b]::ty::query::QueryEngine>::doc_link_resolutions
23: 0x556b8ea2aeab - <rustdoc[6fdc5879a6c0809c]::passes::collect_intra_doc_links::LinkCollector>::resolve_path
24: 0x556b8ea2eeab - <rustdoc[6fdc5879a6c0809c]::passes::collect_intra_doc_links::LinkCollector as rustdoc[6fdc5879a6c0809c]::visit::DocVisitor>::visit_item
25: 0x556b8ea37b6a - <rustdoc[6fdc5879a6c0809c]::passes::collect_intra_doc_links::LinkCollector as rustdoc[6fdc5879a6c0809c]::visit::DocVisitor>::visit_inner_recur
26: 0x556b8ea31d54 - <rustdoc[6fdc5879a6c0809c]::passes::collect_intra_doc_links::LinkCollector as rustdoc[6fdc5879a6c0809c]::visit::DocVisitor>::visit_item
27: 0x556b8ea37b6a - <rustdoc[6fdc5879a6c0809c]::passes::collect_intra_doc_links::LinkCollector as rustdoc[6fdc5879a6c0809c]::visit::DocVisitor>::visit_inner_recur
28: 0x556b8ea31d54 - <rustdoc[6fdc5879a6c0809c]::passes::collect_intra_doc_links::LinkCollector as rustdoc[6fdc5879a6c0809c]::visit::DocVisitor>::visit_item
29: 0x556b8ea29a9f - rustdoc[6fdc5879a6c0809c]::passes::collect_intra_doc_links::collect_intra_doc_links
30: 0x556b8e9f166e - <rustc_session[ae3e11cc9a6ced82]::session::Session>::time::<rustdoc[6fdc5879a6c0809c]::clean::types::Crate, rustdoc[6fdc5879a6c0809c]::core::run_global_ctxt::{closure#7}>
31: 0x556b8eab9390 - rustdoc[6fdc5879a6c0809c]::core::run_global_ctxt
32: 0x556b8e9f18f9 - <rustc_session[ae3e11cc9a6ced82]::session::Session>::time::<(rustdoc[6fdc5879a6c0809c]::clean::types::Crate, rustdoc[6fdc5879a6c0809c]::config::RenderOptions, rustdoc[6fdc5879a6c0809c]::formats::cache::Cache), rustdoc[6fdc5879a6c0809c]::main_args::{closure#1}::{closure#0}::{closure#0}::{closure#0}>
33: 0x556b8e9541c7 - <rustc_middle[20900d4515e9a17b]::ty::context::GlobalCtxt>::enter::<rustdoc[6fdc5879a6c0809c]::main_args::{closure#1}::{closure#0}::{closure#0}, core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>>
34: 0x556b8e8cb450 - <rustc_interface[cef7fd7d041aab20]::interface::Compiler>::enter::<rustdoc[6fdc5879a6c0809c]::main_args::{closure#1}::{closure#0}, core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>>
35: 0x556b8e9f0c0b - rustc_span[f138f19c2ce8dad]::with_source_map::<core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>, rustc_interface[cef7fd7d041aab20]::interface::run_compiler<core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>, rustdoc[6fdc5879a6c0809c]::main_args::{closure#1}>::{closure#0}::{closure#0}>
36: 0x556b8e8cd1e4 - <scoped_tls[99df3e36d6c94ca5]::ScopedKey<rustc_span[f138f19c2ce8dad]::SessionGlobals>>::set::<rustc_interface[cef7fd7d041aab20]::interface::run_compiler<core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>, rustdoc[6fdc5879a6c0809c]::main_args::{closure#1}>::{closure#0}, core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>>
37: 0x556b8e9ff600 - std[f90515c7d1e58fcd]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[cef7fd7d041aab20]::util::run_in_thread_pool_with_globals<rustc_interface[cef7fd7d041aab20]::interface::run_compiler<core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>, rustdoc[6fdc5879a6c0809c]::main_args::{closure#1}>::{closure#0}, core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>>
38: 0x556b8eaad69d - <<std[f90515c7d1e58fcd]::thread::Builder>::spawn_unchecked_<rustc_interface[cef7fd7d041aab20]::util::run_in_thread_pool_with_globals<rustc_interface[cef7fd7d041aab20]::interface::run_compiler<core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>, rustdoc[6fdc5879a6c0809c]::main_args::{closure#1}>::{closure#0}, core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e92a6e72e88848e6]::result::Result<(), rustc_span[f138f19c2ce8dad]::ErrorGuaranteed>>::{closure#1} as core[e92a6e72e88848e6]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
39: 0x7f04c0d73e53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h75ab31ff38cd6fd4
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/alloc/src/boxed.rs:1988:9
40: 0x7f04c0d73e53 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h2ba977e91260a719
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/alloc/src/boxed.rs:1988:9
41: 0x7f04c0d73e53 - std::sys::unix::thread::Thread::new::thread_start::h132d174660c69668
at /rustc/44f5180584404d18058cbbf224c55255db4fdcbb/library/std/src/sys/unix/thread.rs:108:17
42: 0x7f04c0894b43 - start_thread
at ./nptl/./nptl/pthread_create.c:442:8
43: 0x7f04c0926a00 - clone3
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
44: 0x0 - <unknown>
Metadata
Metadata
Assignees
Labels
Area: Intra-doc links, the ability to link to items in docs by nameCategory: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️High priorityRelevant to the rustdoc team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.