Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc ICE: 'no entry found for key' #93476

Closed
dhardy opened this issue Jan 30, 2022 · 12 comments · Fixed by #93539
Closed

rustdoc ICE: 'no entry found for key' #93476

dhardy opened this issue Jan 30, 2022 · 12 comments · Fixed by #93539
Assignees
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-critical Critical priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Milestone

Comments

@dhardy
Copy link
Contributor

dhardy commented Jan 30, 2022

Running cargo doc --no-deps on nightly causes an ICE.
Judging by my CI runners for PRs this broken between 2 and 4 days ago (26th-28th Jan).

Code

See attached minified project: x.zip. Essentially, this is:

pub extern crate kas_text;

pub mod text {
    pub use kas_text::*;
}

Meta

$ rustdoc --version --verbose
rustdoc 1.60.0-nightly (a00e130da 2022-01-29)
binary: rustdoc
commit-hash: a00e130dae74a213338e2b095ec855156d8f3d8a
commit-date: 2022-01-29
host: x86_64-unknown-linux-gnu
release: 1.60.0-nightly
LLVM version: 13.0.0

Error output

thread 'rustc' panicked at 'no entry found for key', src/librustdoc/passes/collect_intra_doc_links.rs:929:16
Backtrace

$ cargo doc --no-deps
    Updating git repository `https://github.com/kas-gui/kas-text.git`
    Updating crates.io index
 Documenting x v0.0.0 (/home/dhardy/projects/kas/x)
thread 'rustc' panicked at 'no entry found for key', src/librustdoc/passes/collect_intra_doc_links.rs:929:16
stack backtrace:
   0:     0x7fc4ce946bac - std::backtrace_rs::backtrace::libunwind::trace::hb038c40de1c0ae49
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fc4ce946bac - std::backtrace_rs::backtrace::trace_unsynchronized::h661b1f6ad336b781
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fc4ce946bac - std::sys_common::backtrace::_print_fmt::h0971b63334fee328
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x7fc4ce946bac - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3b78f05d2a6c8ee0
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/sys_common/backtrace.rs:46:22
   4:     0x7fc4ce9a7f3c - core::fmt::write::h63d47ad6ce68d29f
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/core/src/fmt/mod.rs:1168:17
   5:     0x7fc4ce936163 - std::io::Write::write_fmt::h8b89aef5f7c3c6d7
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/io/mod.rs:1653:15
   6:     0x7fc4ce94afd2 - std::sys_common::backtrace::_print::h53c97f3ded8d0297
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/sys_common/backtrace.rs:49:5
   7:     0x7fc4ce94afd2 - std::sys_common::backtrace::print::ha7737561d64ef7dd
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/sys_common/backtrace.rs:36:9
   8:     0x7fc4ce94afd2 - std::panicking::default_hook::{{closure}}::ha83fb435953d1118
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/panicking.rs:290:50
   9:     0x7fc4ce94abb5 - std::panicking::default_hook::ha146e5e1ad32ac90
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/panicking.rs:307:9
  10:     0x7fc4cf129311 - rustc_driver[7a0b8b63c290da21]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7fc4ce94b7eb - std::panicking::rust_panic_with_hook::h82b4f7687d24d309
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/panicking.rs:695:17
  12:     0x7fc4ce94b4a7 - std::panicking::begin_panic_handler::{{closure}}::h28d45f533a609527
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/panicking.rs:581:13
  13:     0x7fc4ce947054 - std::sys_common::backtrace::__rust_end_short_backtrace::hb6c2ac1ca17af109
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/sys_common/backtrace.rs:139:18
  14:     0x7fc4ce94b1b9 - rust_begin_unwind
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/panicking.rs:577:5
  15:     0x7fc4ce9127c3 - core::panicking::panic_fmt::h99a5ce7711ad76bc
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/core/src/panicking.rs:135:14
  16:     0x7fc4ce9a4d31 - core::panicking::panic_display::haa1b5f5f3ab96894
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/core/src/panicking.rs:65:5
  17:     0x7fc4ce9a4cdb - core::panicking::panic_str::hfd59fe701761bd81
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/core/src/panicking.rs:56:5
  18:     0x7fc4ce912646 - core::option::expect_failed::hde33de334900c241
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/core/src/option.rs:1840:5
  19:     0x55ddcf64dec7 - rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::resolve_associated_trait_item
  20:     0x55ddcf64c4cd - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector>::resolve_associated_item
  21:     0x55ddcf64a22f - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector>::resolve
  22:     0x55ddcf653a48 - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector>::resolve_link
  23:     0x55ddcf64f2af - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector as rustdoc[d5118d915dff11a2]::visit::DocVisitor>::visit_item
  24:     0x55ddcf65be5a - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector as rustdoc[d5118d915dff11a2]::visit::DocVisitor>::visit_inner_recur
  25:     0x55ddcf64f86c - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector as rustdoc[d5118d915dff11a2]::visit::DocVisitor>::visit_item
  26:     0x55ddcf65bdda - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector as rustdoc[d5118d915dff11a2]::visit::DocVisitor>::visit_inner_recur
  27:     0x55ddcf64f876 - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector as rustdoc[d5118d915dff11a2]::visit::DocVisitor>::visit_item
  28:     0x55ddcf65bdda - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector as rustdoc[d5118d915dff11a2]::visit::DocVisitor>::visit_inner_recur
  29:     0x55ddcf64f876 - <rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::LinkCollector as rustdoc[d5118d915dff11a2]::visit::DocVisitor>::visit_item
  30:     0x55ddcf648b3f - rustdoc[d5118d915dff11a2]::passes::collect_intra_doc_links::collect_intra_doc_links
  31:     0x55ddcf4f8444 - <rustc_session[c7318ce5fc5c0217]::session::Session>::time::<rustdoc[d5118d915dff11a2]::clean::types::Crate, rustdoc[d5118d915dff11a2]::core::run_global_ctxt::{closure#8}>
  32:     0x55ddcf6edd4b - rustdoc[d5118d915dff11a2]::core::run_global_ctxt
  33:     0x55ddcf4f88c2 - <rustc_session[c7318ce5fc5c0217]::session::Session>::time::<(rustdoc[d5118d915dff11a2]::clean::types::Crate, rustdoc[d5118d915dff11a2]::config::RenderOptions, rustdoc[d5118d915dff11a2]::formats::cache::Cache), rustdoc[d5118d915dff11a2]::main_options::{closure#0}::{closure#0}::{closure#1}::{closure#0}>
  34:     0x55ddcf692d5f - <rustc_interface[873ebc126206e841]::interface::Compiler>::enter::<rustdoc[d5118d915dff11a2]::main_options::{closure#0}::{closure#0}, core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>>
  35:     0x55ddcf71a2ec - rustc_span[d2b1caf0233c087f]::with_source_map::<core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>, rustc_interface[873ebc126206e841]::interface::create_compiler_and_run<core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>, rustdoc[d5118d915dff11a2]::main_options::{closure#0}>::{closure#1}>
  36:     0x55ddcf686437 - rustc_interface[873ebc126206e841]::interface::create_compiler_and_run::<core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>, rustdoc[d5118d915dff11a2]::main_options::{closure#0}>
  37:     0x55ddcf4de13e - rustdoc[d5118d915dff11a2]::main_options
  38:     0x55ddcf4f609d - <scoped_tls[9ea9432e17af2e8b]::ScopedKey<rustc_span[d2b1caf0233c087f]::SessionGlobals>>::set::<rustc_interface[873ebc126206e841]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustdoc[d5118d915dff11a2]::main_args::{closure#0}, core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>>::{closure#0}::{closure#0}, core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>>
  39:     0x55ddcf6c5249 - std[b4a8e50ca1a182f4]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[873ebc126206e841]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustdoc[d5118d915dff11a2]::main_args::{closure#0}, core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>>::{closure#0}, core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>>
  40:     0x55ddcf4f5889 - <<std[b4a8e50ca1a182f4]::thread::Builder>::spawn_unchecked_<rustc_interface[873ebc126206e841]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustdoc[d5118d915dff11a2]::main_args::{closure#0}, core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>>::{closure#0}, core[dcdef901f9444141]::result::Result<(), rustc_errors[e07c79365ea7771d]::ErrorReported>>::{closure#1} as core[dcdef901f9444141]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  41:     0x7fc4ce957463 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hff7ff216a088d20e
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/alloc/src/boxed.rs:1854:9
  42:     0x7fc4ce957463 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h79ddb757e4f45c15
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/alloc/src/boxed.rs:1854:9
  43:     0x7fc4ce957463 - std::sys::unix::thread::Thread::new::thread_start::hf3709a5f086342d7
                               at /rustc/a00e130dae74a213338e2b095ec855156d8f3d8a/library/std/src/sys/unix/thread.rs:108:17
  44:     0x7fc4ce60da87 - start_thread
  45:     0x7fc4ce692640 - __clone3
  46:                0x0 - <unknown>

error: internal compiler error: unexpected panic

error: Unrecognized option: 'crate-version'

error: could not document `x`

Caused by:
  process didn't exit successfully: `rustdoc --edition=2021 --crate-type lib --crate-name x src/lib.rs -o /home/dhardy/.cache/cargo/doc --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=d7faf179ecbbc013 -L dependency=/home/dhardy/.cache/cargo/debug/deps --extern kas_text=/home/dhardy/.cache/cargo/debug/deps/libkas_text-0472e98fac607ce2.rmeta --crate-version 0.0.0` (exit status: 1)

@dhardy dhardy added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 30, 2022
@thejpster
Copy link
Contributor

I see the same on docs.rs: https://docs.rs/crate/rp2040-pac/0.3.0/builds/501717

Docs build fine with latest stable (1.58.1), but I get the same error with rustc 1.60.0-nightly (a00e130da 2022-01-29)

@Xiretza
Copy link
Contributor

Xiretza commented Jan 30, 2022

This is probably a duplicate of #93428, right? The fix for that (3903ca1) isn't in yesterday's (2022-01-29) nightly yet, but should be in today's.

@dhardy
Copy link
Contributor Author

dhardy commented Jan 31, 2022

I get the same error with rustdoc 1.60.0-nightly (08df8b81d 2022-01-30), which does include 3903ca1.

@thejpster
Copy link
Contributor

thejpster commented Jan 31, 2022

rustc 1.60.0-nightly (08df8b81d 2022-01-30) works for me on aarch64-apple-darwin, but not on x86_64-unknown-linux-gnu

@Nemo157 Nemo157 added the regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. label Jan 31, 2022
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jan 31, 2022
@Nemo157
Copy link
Member

Nemo157 commented Jan 31, 2022

There are definitely three crates still hitting this ICE on docs.rs (at least based on message, and backtrace in 2 cases, but I couldn't reproduce on num-primes when testing locally) in rust-lang/docs.rs#1632.

@camelid
Copy link
Member

camelid commented Jan 31, 2022

You can use cargo bisect-rustc --regress=ice --start=YYYY-MM-DD --end=YYYY-MM-DD -- doc (https://github.com/rust-lang/cargo-bisect-rustc/) in your code to figure out what change caused this regression.

@Nemo157
Copy link
Member

Nemo157 commented Jan 31, 2022

Not so surprisingly bisection reveals #88679 as the cause.

@lopopolo
Copy link
Contributor

lopopolo commented Feb 1, 2022

I'm not sure if this is helpful, but this is the stack I get when attempting to run rustdoc with nightly rustdoc 1.60.0-nightly (6abb6385b 2022-01-26) (which is the most recent nightly available on macOS). I also get the same build failure in CI with rust version 1.60.0-nightly (08df8b81d 2022-01-30).

$ RUST_BACKTRACE=1 bundle exec rake doc
rustup run --install nightly cargo doc --workspace
 Documenting artichoke-backend v0.6.0 (/Users/lopopolo/dev/artichoke/artichoke/artichoke-backend)
    Checking artichoke v0.1.0-pre.0 (/Users/lopopolo/dev/artichoke/artichoke)
thread 'rustc' panicked at 'no entry found for key', src/librustdoc/passes/collect_intra_doc_links.rs:929:16
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic_display
   3: core::panicking::panic_str
   4: core::option::expect_failed
   5: rustdoc::passes::collect_intra_doc_links::resolve_associated_trait_item
   6: <rustdoc::passes::collect_intra_doc_links::LinkCollector>::resolve_associated_item
   7: <rustdoc::passes::collect_intra_doc_links::LinkCollector>::resolve
   8: <rustdoc::passes::collect_intra_doc_links::LinkCollector>::resolve_link
   9: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_item
  10: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_inner_recur
  11: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_item
  12: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_inner_recur
  13: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_item
  14: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_inner_recur
  15: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_item
  16: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_inner_recur
  17: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_item
  18: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_inner_recur
  19: <rustdoc::passes::collect_intra_doc_links::LinkCollector as rustdoc::visit::DocVisitor>::visit_item
  20: rustdoc::passes::collect_intra_doc_links::collect_intra_doc_links
  21: <rustc_session::session::Session>::time::<rustdoc::clean::types::Crate, rustdoc::core::run_global_ctxt::{closure#8}>
  22: rustdoc::core::run_global_ctxt
  23: <rustc_session::session::Session>::time::<(rustdoc::clean::types::Crate, rustdoc::config::RenderOptions, rustdoc::formats::cache::Cache), rustdoc::main_options::{closure#0}::{closure#0}::{closure#1}::{closure#0}>
  24: <rustc_interface::interface::Compiler>::enter::<rustdoc::main_options::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>
  25: rustc_span::with_source_map::<core::result::Result<(), rustc_errors::ErrorReported>, rustc_interface::interface::create_compiler_and_run<core::result::Result<(), rustc_errors::ErrorReported>, rustdoc::main_options::{closure#0}>::{closure#1}>
  26: rustc_interface::interface::create_compiler_and_run::<core::result::Result<(), rustc_errors::ErrorReported>, rustdoc::main_options::{closure#0}>
  27: rustdoc::main_options
  28: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustdoc::main_args::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: internal compiler error: unexpected panic

error: Unrecognized option: 'crate-version'

error: could not document `artichoke-backend`

This error comes from building the docs on artichoke/artichoke@61dc674.

@petrochenkov
Copy link
Contributor

Fixed in #93539.

yvt added a commit to r3-os/r3 that referenced this issue Feb 2, 2022
…pport_rp2040`

Building a documentation for `rp2040` currently causes a compiler crash.
This is probably related to [rust-lang/rust#93476][1].

    thread 'rustc' panicked at 'no entry found for key', src/librustdoc/passes/collect_intra_doc_links.rs:930:16

[1]: rust-lang/rust#93476
@apiraino
Copy link
Contributor

apiraino commented Feb 3, 2022

Assigning same priority as discussed in the Zulip thread of the Prioritization Working Group.

@rustbot label -I-prioritize +P-critical

@rustbot rustbot added P-critical Critical priority and removed I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels Feb 3, 2022
@camelid camelid added this to the 1.60.0 milestone Feb 3, 2022
@apiraino apiraino added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. and removed T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 4, 2022
@Jake-Shadle
Copy link

It seems this issue has regressed recently? Hitting the same ICE on docs.rs.

# rustc version
rustc 1.62.0-nightly (e85edd9a8 2022-04-28)
# docs.rs version
docsrs 0.6.0 (ff301c9 2022-04-27)
Backtrace

[INFO] [stderr]  Documenting crash-handler v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] thread 'rustc' panicked at 'no entry found for key', src/librustdoc/passes/collect_intra_doc_links.rs:986:16
[INFO] [stderr] stack backtrace:
[INFO] [stderr]    0:     0x7f8e7f064f8d - std::backtrace_rs::backtrace::libunwind::trace::he0e523aecaf9b69a
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
[INFO] [stderr]    1:     0x7f8e7f064f8d - std::backtrace_rs::backtrace::trace_unsynchronized::h0b3d5356c458deb9
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stderr]    2:     0x7f8e7f064f8d - std::sys_common::backtrace::_print_fmt::h532142ee1f4c3cce
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/sys_common/backtrace.rs:66:5
[INFO] [stderr]    3:     0x7f8e7f064f8d - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0e80dc5906b67229
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/sys_common/backtrace.rs:45:22
[INFO] [stderr]    4:     0x7f8e7f0c0d0c - core::fmt::write::h513fcc964bdd71c0
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/core/src/fmt/mod.rs:1194:17
[INFO] [stderr]    5:     0x7f8e7f056681 - std::io::Write::write_fmt::h3cddf21fb8a62a54
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/io/mod.rs:1655:15
[INFO] [stderr]    6:     0x7f8e7f067ca5 - std::sys_common::backtrace::_print::h0c926e8785159afb
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/sys_common/backtrace.rs:48:5
[INFO] [stderr]    7:     0x7f8e7f067ca5 - std::sys_common::backtrace::print::hd5783f5f7c42c4da
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/sys_common/backtrace.rs:35:9
[INFO] [stderr]    8:     0x7f8e7f067ca5 - std::panicking::default_hook::{{closure}}::h315d25e8d5d703cd
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/panicking.rs:295:22
[INFO] [stderr]    9:     0x7f8e7f067919 - std::panicking::default_hook::h4301451e8ab677e5
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/panicking.rs:314:9
[INFO] [stderr]   10:     0x7f8e7f80a981 - rustc_driver[7ec1e2549f75ff84]::DEFAULT_HOOK::{closure#0}::{closure#0}
[INFO] [stderr]   11:     0x7f8e7f068476 - std::panicking::rust_panic_with_hook::h9ade200275992b5b
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/panicking.rs:702:17
[INFO] [stderr]   12:     0x7f8e7f068277 - std::panicking::begin_panic_handler::{{closure}}::h3460cd0d1874a7f9
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/panicking.rs:588:13
[INFO] [stderr]   13:     0x7f8e7f065444 - std::sys_common::backtrace::__rust_end_short_backtrace::h01570b830acaf147
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/sys_common/backtrace.rs:138:18
[INFO] [stderr]   14:     0x7f8e7f067fa9 - rust_begin_unwind
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/panicking.rs:584:5
[INFO] [stderr]   15:     0x7f8e7f02d2c3 - core::panicking::panic_fmt::h188393b449504c74
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/core/src/panicking.rs:142:14
[INFO] [stderr]   16:     0x7f8e7f0bd971 - core::panicking::panic_display::h20a3f045e4a98ba7
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/core/src/panicking.rs:72:5
[INFO] [stderr]   17:     0x7f8e7f0bd91b - core::panicking::panic_str::h4b1f9ab4ea89367e
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/core/src/panicking.rs:56:5
[INFO] [stderr]   18:     0x7f8e7f02d136 - core::option::expect_failed::h1ece3d7c55836f36
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/core/src/option.rs:1855:5
[INFO] [stderr]   19:     0x55647826a979 - rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::resolve_associated_trait_item
[INFO] [stderr]   20:     0x55647826911e - <rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::LinkCollector>::resolve_associated_item
[INFO] [stderr]   21:     0x5564782662b5 - <rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::LinkCollector>::resolve
[INFO] [stderr]   22:     0x55647826c410 - <rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::LinkCollector as rustdoc[61d2f2338f9af60b]::visit::DocVisitor>::visit_item
[INFO] [stderr]   23:     0x55647827e94a - <rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::LinkCollector as rustdoc[61d2f2338f9af60b]::visit::DocVisitor>::visit_inner_recur
[INFO] [stderr]   24:     0x55647826fa1e - <rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::LinkCollector as rustdoc[61d2f2338f9af60b]::visit::DocVisitor>::visit_item
[INFO] [stderr]   25:     0x55647827e9ea - <rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::LinkCollector as rustdoc[61d2f2338f9af60b]::visit::DocVisitor>::visit_inner_recur
[INFO] [stderr]   26:     0x55647826fa03 - <rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::LinkCollector as rustdoc[61d2f2338f9af60b]::visit::DocVisitor>::visit_item
[INFO] [stderr]   27:     0x55647826464c - rustdoc[61d2f2338f9af60b]::passes::collect_intra_doc_links::collect_intra_doc_links
[INFO] [stderr]   28:     0x5564782d9313 - <rustc_interface[8b8682ff349448b4]::passes::QueryContext>::enter::<rustdoc[61d2f2338f9af60b]::main_options::{closure#0}::{closure#0}::{closure#1}, core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>>::{closure#0}
[INFO] [stderr]   29:     0x5564782b9480 - <rustc_interface[8b8682ff349448b4]::passes::QueryContext>::enter::<rustdoc[61d2f2338f9af60b]::main_options::{closure#0}::{closure#0}::{closure#1}, core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>>
[INFO] [stderr]   30:     0x556478203eef - <rustc_interface[8b8682ff349448b4]::interface::Compiler>::enter::<rustdoc[61d2f2338f9af60b]::main_options::{closure#0}::{closure#0}, core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>>
[INFO] [stderr]   31:     0x55647808db8a - rustc_span[c6bedfd0c66fb146]::with_source_map::<core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>, rustc_interface[8b8682ff349448b4]::interface::create_compiler_and_run<core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>, rustdoc[61d2f2338f9af60b]::main_options::{closure#0}>::{closure#1}>
[INFO] [stderr]   32:     0x55647822bc84 - rustc_interface[8b8682ff349448b4]::interface::create_compiler_and_run::<core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>, rustdoc[61d2f2338f9af60b]::main_options::{closure#0}>
[INFO] [stderr]   33:     0x5564780909d7 - <scoped_tls[3e040dd67153ed8a]::ScopedKey<rustc_span[c6bedfd0c66fb146]::SessionGlobals>>::set::<rustdoc[61d2f2338f9af60b]::main_args::{closure#0}, core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>>
[INFO] [stderr]   34:     0x55647822c59f - std[9bd8fc2679550d2b]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[8b8682ff349448b4]::util::run_in_thread_pool_with_globals<rustdoc[61d2f2338f9af60b]::main_args::{closure#0}, core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>>::{closure#0}, core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>>
[INFO] [stderr]   35:     0x5564782db949 - <<std[9bd8fc2679550d2b]::thread::Builder>::spawn_unchecked_<rustc_interface[8b8682ff349448b4]::util::run_in_thread_pool_with_globals<rustdoc[61d2f2338f9af60b]::main_args::{closure#0}, core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>>::{closure#0}, core[649e541f68e0944c]::result::Result<(), rustc_errors[94fb9cd2dcbb52d6]::ErrorGuaranteed>>::{closure#1} as core[649e541f68e0944c]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stderr]   36:     0x7f8e7f0723c3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h1e4cdc05936d75d5
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/alloc/src/boxed.rs:1866:9
[INFO] [stderr]   37:     0x7f8e7f0723c3 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h627ceec73be0ad94
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/alloc/src/boxed.rs:1866:9
[INFO] [stderr]   38:     0x7f8e7f0723c3 - std::sys::unix::thread::Thread::new::thread_start::hff6fe6753bb13e69
[INFO] [stderr]                                at /rustc/e85edd9a844b523a02dbd89f3c02cd13e4c9fe46/library/std/src/sys/unix/thread.rs:108:17
[INFO] [stderr]   39:     0x7f8e7ef85609 - start_thread
[INFO] [stderr]   40:     0x7f8e7ed2e163 - clone
[INFO] [stderr]   41:                0x0 - <unknown>
[INFO] [stderr] 
[INFO] [stderr] error: internal compiler error: unexpected panic
[INFO] [stderr] 
[INFO] [stderr] note: the compiler unexpectedly panicked. this is a bug.
[INFO] [stderr] 
[INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
[INFO] [stderr] 
[INFO] [stderr] note: rustc 1.62.0-nightly (e85edd9a8 2022-04-28) running on x86_64-unknown-linux-gnu
[INFO] [stderr] 
[INFO] [stderr] note: compiler flags: --crate-type lib -Z unstable-options -Z unstable-options
[INFO] [stderr] 
[INFO] [stderr] note: some of the compiler flags provided by cargo are hidden
[INFO] [stderr] 
[INFO] [stderr] query stack during panic:
[INFO] [stderr] end of query stack
[INFO] [stderr] error: could not document `crash-handler`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `rustdoc --edition=2021 --crate-type lib --crate-name crash_handler src/lib.rs --target x86_64-unknown-linux-gnu -o /opt/rustwide/target/x86_64-unknown-linux-gnu/doc --cfg 'feature="default"' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=9a9f4e4ad82d43dd -L dependency=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern cfg_if=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libcfg_if-c778d32636046772.rmeta --extern crash_context=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libcrash_context-eea757ad0eca6db0.rmeta --extern libc=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/liblibc-f439e9e9c367ace9.rmeta --extern parking_lot=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libparking_lot-c437846bba4449be.rmeta --extern-html-root-url 'cfg_if=https://docs.rs/cfg-if/1.0.0/x86_64-unknown-linux-gnu' --extern-html-root-url 'crash_context=https://docs.rs/crash-context/0.2.0/x86_64-unknown-linux-gnu' --extern-html-root-url 'libc=https://docs.rs/libc/0.2.125/x86_64-unknown-linux-gnu' --extern-html-root-url 'parking_lot=https://docs.rs/parking_lot/0.12.0/x86_64-unknown-linux-gnu' -Zunstable-options -Z unstable-options --emit=invocation-specific --resource-suffix -20220428-1.62.0-nightly-e85edd9a8 --static-root-path / --cap-lints warn --disable-per-crate-search --crate-version 0.1.0` (exit status: 101)

@petrochenkov
Copy link
Contributor

@Jake-Shadle
The recent regression should be fixed by #96447, most likely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-critical Critical priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants