File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/cargo/core/compiler/fingerprint Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1167,15 +1167,12 @@ impl Fingerprint {
1167
1167
// minimum mtime as it's the one we'll be comparing to inputs and
1168
1168
// dependencies.
1169
1169
for output in self . outputs . iter ( ) {
1170
- let mtime = match paths:: mtime ( output) {
1171
- Ok ( mtime) => mtime,
1172
-
1170
+ let Ok ( mtime) = paths:: mtime ( output) else {
1173
1171
// This path failed to report its `mtime`. It probably doesn't
1174
1172
// exists, so leave ourselves as stale and bail out.
1175
- Err ( e) => {
1176
- debug ! ( "failed to get mtime of {:?}: {}" , output, e) ;
1177
- return Ok ( ( ) ) ;
1178
- }
1173
+ let item = StaleItem :: FailedToReadMetadata ( output. clone ( ) ) ;
1174
+ self . fs_status = FsStatus :: StaleItem ( item) ;
1175
+ return Ok ( ( ) ) ;
1179
1176
} ;
1180
1177
assert ! ( mtimes. insert( output. clone( ) , mtime) . is_none( ) ) ;
1181
1178
}
You can’t perform that action at this time.
0 commit comments