Skip to content

cargo doc doesn't pick up changes to modules #39811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SergioBenitez opened this issue Feb 14, 2017 · 2 comments
Closed

cargo doc doesn't pick up changes to modules #39811

SergioBenitez opened this issue Feb 14, 2017 · 2 comments

Comments

@SergioBenitez
Copy link
Contributor

SergioBenitez commented Feb 14, 2017

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 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".

@sanmai-NL
Copy link

Thanks, but should be filed under rust-lang/cargo.

@SergioBenitez
Copy link
Contributor Author

@sanmai-NL Thanks, you're absolutely right. Opened rust-lang/cargo#3703.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants