X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_incremental%2Fsrc%2Fpersist%2Ffs.rs;fp=compiler%2Frustc_incremental%2Fsrc%2Fpersist%2Ffs.rs;h=58d6e6d7efd69c0d757ff903b4356a586904f7d9;hb=72d8879c29570ee18cc3ab2c3e96bfd97221d0bb;hp=25c1b2e1c4387167f575904a7c227140513e9f84;hpb=4e0d0d757e2f1b61ec809420b006545a9f8974c0;p=rust.git diff --git a/compiler/rustc_incremental/src/persist/fs.rs b/compiler/rustc_incremental/src/persist/fs.rs index 25c1b2e1c43..58d6e6d7efd 100644 --- a/compiler/rustc_incremental/src/persist/fs.rs +++ b/compiler/rustc_incremental/src/persist/fs.rs @@ -322,7 +322,7 @@ pub fn finalize_session_directory(sess: &Session, svh: Svh) { let incr_comp_session_dir: PathBuf = sess.incr_comp_session_dir().clone(); - if sess.has_errors_or_delayed_span_bugs() { + if let Some(_) = sess.has_errors_or_delayed_span_bugs() { // If there have been any errors during compilation, we don't want to // publish this session directory. Rather, we'll just delete it.