mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
Ignore unexpected incr-comp session dirs
Clearly the code path can be hit without the presence of a compiler bug. All it takes is mischief. See 71698. Ignore problematic directories instead of ICE:ing. `continue`ing is already done for problematic dirs in the code block above us.
This commit is contained in:
parent
df8aed400b
commit
64e8aea9ce
@ -538,9 +538,13 @@ where
|
||||
continue;
|
||||
}
|
||||
|
||||
let timestamp = extract_timestamp_from_session_dir(&directory_name).unwrap_or_else(|e| {
|
||||
bug!("unexpected incr-comp session dir: {}: {}", session_dir.display(), e)
|
||||
});
|
||||
let timestamp = match extract_timestamp_from_session_dir(&directory_name) {
|
||||
Ok(timestamp) => timestamp,
|
||||
Err(e) => {
|
||||
debug!("unexpected incr-comp session dir: {}: {}", session_dir.display(), e);
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
||||
if timestamp > best_candidate.0 {
|
||||
best_candidate = (timestamp, Some(session_dir.clone()));
|
||||
|
Loading…
Reference in New Issue
Block a user