Skip to content

Commit fcdca7f

Browse files
committed
rustc: Don't ICE if we invalidate an invalid incr dir
This showed up on the Windows bot for testing this PR, and this pr allows `mark_incr_comp_session_as_invalid` ok if it's already invalid, hopefully avoiding scary ICEs and instead leaving the nicely printed errors
1 parent 8c9bf66 commit fcdca7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/session/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ impl Session {
642642
IncrCompSession::Active { ref session_directory, .. } => {
643643
session_directory.clone()
644644
}
645+
IncrCompSession::InvalidBecauseOfErrors { .. } => return,
645646
_ => bug!("Trying to invalidate IncrCompSession `{:?}`",
646647
*incr_comp_session),
647648
};

0 commit comments

Comments
 (0)