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.