diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-01-05 10:07:36 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-01-05 10:51:29 -0800 |
| commit | fcdca7f2da86111704e54e932f3e5ffa31d70366 (patch) | |
| tree | 196f15f61a739bd410f1530410745cd9d1b57902 /src | |
| parent | 8c9bf663d4a8074e4955d1ad3f85a3b82e946297 (diff) | |
| download | rust-fcdca7f2da86111704e54e932f3e5ffa31d70366.tar.gz rust-fcdca7f2da86111704e54e932f3e5ffa31d70366.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/session/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs index 54bcc64d068..19fbbe10be9 100644 --- a/src/librustc/session/mod.rs +++ b/src/librustc/session/mod.rs @@ -642,6 +642,7 @@ impl Session { IncrCompSession::Active { ref session_directory, .. } => { session_directory.clone() } + IncrCompSession::InvalidBecauseOfErrors { .. } => return, _ => bug!("Trying to invalidate IncrCompSession `{:?}`", *incr_comp_session), }; |
