Skip to content

Teloxide docs fail to build on nightly #139116

Closed
@shdwchn10

Description

@shdwchn10

While releasing teloxide 0.14.0 we encountered docs build failure on docs.rs: https://docs.rs/crate/teloxide/0.14.0/builds/1924379 (rust-lang/docs.rs#2780).

Bisecting this issue led to these findings:

  • teloxide docs build fine on nightly-2025-02-16 (rust version 1.86.0-nightly (9cd60bd 2025-02-15))
  • starting with nightly-2025-02-17 (rust version 1.87.0-nightly (5bc6231 2025-02-16) docs build fails with:
    error: unresolved link to `adaptors::AutoSend`
      --> crates/teloxide-core/src/lib.rs:51:19
       |
    51 | //! [`AutoSend`]: adaptors::AutoSend
       |                   ^^^^^^^^^^^^^^^^^^ no item named `AutoSend` in module `adaptors`
       |
    note: the lint level is defined here
      --> crates/teloxide-core/src/lib.rs:80:49
       |
    80 | #![cfg_attr(all(feature = "full", docsrs), deny(rustdoc::broken_intra_doc_links))]
       |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    error: could not document `teloxide-core`
    
  • starting with nightly-2025-03-12 (rust version 1.87.0-nightly (6650252 2025-03-11)) docs build fails with: https://pastebin.com/TV4JcCD4
  • issue persists on nightly-2025-03-29

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcT-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