Closed
Description
Hello.
When I use cargo rustc -- -Z -no-trans
, the following cargo build
will recompile even thought I did not changed the source code.
Here is the commands that I ran:
$ cargo build
Compiling test v0.1.0 (file:///path/to/project)
Finished debug [unoptimized + debuginfo] target(s) in 0.40 secs
$ cargo rustc -- -Z no-trans
Compiling test v0.1.0 (file:///path/to/project)
Finished debug [unoptimized + debuginfo] target(s) in 0.17 secs
$ cargo build
Compiling test v0.1.0 (file:///path/to/project)
Finished debug [unoptimized + debuginfo] target(s) in 0.40 secs
The second cargo build
should not recompile the project.
Thanks to fix this issue.