Skip to content

Commit 1b03370

Browse files
committed
Fix set invocation time order
1 parent b496622 commit 1b03370

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cargo/core/compiler/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ fn rustc<'a, 'cfg>(
285285
// Build plan should not touch the timestamp
286286
None
287287
} else {
288+
let timestamp = paths::set_invocation_time(&fingerprint_dir)?;
288289
exec.exec(
289290
rustc,
290291
package_id,
@@ -295,7 +296,7 @@ fn rustc<'a, 'cfg>(
295296
)
296297
.map_err(internal_if_simple_exit_code)
297298
.chain_err(|| format!("could not compile `{}`.", name))?;
298-
Some(paths::set_invocation_time(&fingerprint_dir)?)
299+
Some(timestamp)
299300
};
300301

301302
if do_rename && real_name != crate_name {

0 commit comments

Comments
 (0)