cargo doc
doesn't pick up changes to "deleted" modules
#3703
Labels
A-git
Area: anything dealing with git
A-rebuild-detection
Area: rebuild detection and fingerprinting
C-bug
Category: bug
Command-doc
S-blocked-external
Status: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix
I have a project that's structured as follows:
In lib.rs, I have:
The
git status
is:This
git status
arose from deletingmodule.rs
and then renaming a different file tomodule.rs
.When I make changes to
lib.rs
and runcargo doc
, updated documentation is generated. However, if I make changes tomodule.rs
and runcargo doc
, documentation is unchanged. The correct thing, of course, is forcargo doc
to have picked up the changes. I presume something is going on with howcargo
is treating files that git believes are "deleted", and so perhaps this issue is more widespread than justcargo doc
.The text was updated successfully, but these errors were encountered: