Skip to content

Crate build failure: Deref section without derived id #1265

@ritchie46

Description

@ritchie46

Crate name: Polars
Build failure link: https://docs.rs/crate/polars/0.12.0/builds/342455

Additional details:
Maybe this is related to rust-lang/rust#81395 ?

Below are the last lines of a run with $ RUST_BACKTRACE=1 RUSTDOC_LOG=trace cargo doc

INFO rustdoc::html::render Documenting ChunkedArray
INFO rustdoc::html::render Documenting associated items of Some("ChunkedArray")
thread 'rustc' panicked at 'Deref section without derived id', src/librustdoc/html/render/mod.rs:4418:22
stack backtrace:
   0: rust_begin_unwind
             at /rustc/f4eb5d9f719cd3c849befc8914ad8ce0ddcf34ed/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/f4eb5d9f719cd3c849befc8914ad8ce0ddcf34ed/library/core/src/panicking.rs:92:14
   2: core::option::expect_failed
             at /rustc/f4eb5d9f719cd3c849befc8914ad8ce0ddcf34ed/library/core/src/option.rs:1258:5
   3: rustdoc::html::render::sidebar_deref_methods
   4: rustdoc::html::render::sidebar_assoc_items
   5: rustdoc::html::render::print_sidebar
   6: rustdoc::html::layout::render
   7: rustdoc::html::render::Context::render_item
   8: <rustdoc::html::render::Context as rustdoc::formats::renderer::FormatRenderer>::item
   9: rustdoc::formats::renderer::run_format
  10: rustdoc::run_renderer
  11: rustc_session::utils::<impl rustc_session::session::Session>::time
  12: rustc_interface::passes::QueryContext::enter
  13: rustc_interface::interface::create_compiler_and_run
  14: rustdoc::main_options
  15: scoped_tls::ScopedKey<T>::set
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'

warning: 2 warnings emitted

error: could not document `polars`

Caused by:
  process didn't exit successfully: `rustdoc --edition=2018 --crate-type lib --crate-name polars polars/src/lib.rs -o /home/ritchie46/code/polars/target/doc --cfg 'feature="default"' --cfg 'feature="docs"' --cfg 'feature="lazy"' --cfg 'feature="parquet"' --cfg 'feature="simd"' --cfg 'feature="temporal"' --error-format=json --json=diagnostic-rendered-ansi -L dependency=/home/ritchie46/code/polars/target/debug/deps --extern polars_core=/home/ritchie46/code/polars/target/debug/deps/libpolars_core-d67fefc814cdb70a.rmeta --extern polars_io=/home/ritchie46/code/polars/target/debug/deps/libpolars_io-c2327cc5c1902172.rmeta --extern polars_lazy=/home/ritchie46/code/polars/target/debug/deps/libpolars_lazy-d49b632cd376ea9d.rmeta --crate-version 0.12.0` (exit code: 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions