Skip to content
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

Changing a file in the middle of a build causes rustc to not pick up latest changes #47140

Closed
bfops opened this issue Jan 2, 2018 · 5 comments

Comments

@bfops
Copy link
Contributor

bfops commented Jan 2, 2018

If I change a file partway through a build then the final executable doesn't include that change. However, when I run cargo build again it thinks there have been no changes since the last build.

To have the build incorporate the most recent changes, I need to change the file again, build, change it back, and rebuild.

@nikomatsakis
Copy link
Contributor

cc @alexcrichton

@nikomatsakis
Copy link
Contributor

This is probably not, strictly speaking, a compiler bug, but rather a cargo bug?

@nikomatsakis
Copy link
Contributor

(FWIW, I've also observed this behavior.)

@alexcrichton
Copy link
Member

I believe this is probably rust-lang/cargo#2426, so closing in favor of that.

@bfops
Copy link
Contributor Author

bfops commented Jan 3, 2018

Oh of course, no wonder I couldn't find an existing report - I was looking in the wrong place!

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

3 participants