Skip to content

rustdoc fails after interrupting doc generation #140698

@TheNeikos

Description

@TheNeikos

I tried this command:

cargo doc

I then pressed ctrl-c to stop it. I then re-ran it.

I expected to see this happen: It builds the documentation

Instead, this happened:

error: couldn't generate documentation: invalid template: invalid format: should have a newline on the last line
  |
  = note: failed to create or modify "/home/neikos/projects/software-suite/target/doc/search-index.js"

error: could not document `unicode-ident`
warning: build failed, waiting for other jobs to finish...
error: could not document `smallvec`
error: could not document `thiserror`

Meta

✦ ❯ rustdoc --version --verbose
rustdoc 1.85.0 (4d91de4e4 2025-02-17)
binary: rustdoc
commit-hash: 4d91de4e48198da2e33413efdcd9cd2cc0c46688
commit-date: 2025-02-17
host: x86_64-unknown-linux-gnu
release: 1.85.0
LLVM version: 19.1.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions