make error_reported
check for delayed bugs
This commit is contained in:
parent
4e0d0d757e
commit
72d8879c29
8 changed files with 44 additions and 10 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ pub fn save_dep_graph(tcx: TyCtxt<'_>) {
|
|||
return;
|
||||
}
|
||||
// This is going to be deleted in finalize_session_directory, so let's not create it
|
||||
if sess.has_errors_or_delayed_span_bugs() {
|
||||
if let Some(_) = sess.has_errors_or_delayed_span_bugs() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ pub fn save_work_product_index(
|
|||
return;
|
||||
}
|
||||
// This is going to be deleted in finalize_session_directory, so let's not create it
|
||||
if sess.has_errors_or_delayed_span_bugs() {
|
||||
if let Some(_) = sess.has_errors_or_delayed_span_bugs() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue