Skip to content

Rustdoc keeps around documentation for crates that have been renamed or deleted #78796

Closed
@RDambrosio016

Description

@RDambrosio016

I am working on a decently sized workspace, and i used to have a crate, i have since deleted it, but its documentation stays around because rustdoc does not seem to delete the folders in target/doc if the actual crate has been deleted. Rustdoc should check if a dependency/crate actually exists before using its cache in the documentation process and delete it if it isn't.

Meta

rustc --version --verbose:

rustc 1.48.0-nightly (f68e08933 2020-09-19)
binary: rustc
commit-hash: f68e08933d8f519a9655934fedebbc509661b219
commit-date: 2020-09-19
host: x86_64-pc-windows-msvc
release: 1.48.0-nightly
LLVM version: 11.0

Reproducing

1: cargo init --lib test
2: cargo doc
3: rename the crate to anything else in Cargo.toml
4: cargo doc --open

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