Open
Description
I have a project that's structured as follows:
src/
lib.rs
module.rs
In lib.rs, I have:
mod module
The git status
is:
Changes not staged for commit:
deleted: src/module.rs
Untracked files:
src/module.rs
This git status
arose from deleting module.rs
and then renaming a different file to module.rs
.
When I make changes to lib.rs
and run cargo doc
, updated documentation is generated. However, if I make changes to module.rs
and run cargo doc
, documentation is unchanged. The correct thing, of course, is for cargo doc
to have picked up the changes. I presume something is going on with how cargo
is treating files that git believes are "deleted", and so perhaps this issue is more widespread than just cargo doc
.