cargo doc
in workspaces includes removed crates' documentation if their previously built documentation is still in target/doc
#6783
Labels
Problem
Building documentation for a workspace, removing a crate from that workspace, and building documentation again keeps documentation for that removed crate accessible in the sidebar and search index.
Steps
I have a repository to reproduce this at https://github.com/robojumper/cargo-doc-workspace-issue.
PowerShell console transcript:
Expected behavior
Opening
target/doc/liba/index.html
shows only items fromliba
in the sidebar and search index.Actual behavior
Opening
target/doc/liba/index.html
showsliba
,libb
in the sidebar;libb
andlibb::StructB
are still in the search index and have doc pages.Notes
I haven't made any changes to
liba
after removinglibb
, but even with changes toliba
, its pages still referencelibb
the same way.This popped up in the master docs for
rust-analyzer
--ra_ide_api_light
has been removedyet is accessible through all other doc pages and the search index.EDIT: Looks like matklad cleared the Travis cache, so that's a workaround (as is the equivalentcargo clean
).The text was updated successfully, but these errors were encountered: