]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_incremental/src/persist/fs.rs
make `error_reported` check for delayed bugs
[rust.git] / compiler / rustc_incremental / src / persist / fs.rs
index 25c1b2e1c4387167f575904a7c227140513e9f84..58d6e6d7efd69c0d757ff903b4356a586904f7d9 100644 (file)
@@ -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.