Skip to content

Commit 003ed76

Browse files
committed
delay errors as bug
1 parent f1551bf commit 003ed76

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_trait_selection/src/traits/error_reporting

1 file changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2146,15 +2146,15 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
21462146
self.annotate_source_of_ambiguity(&mut err, &impls, predicate);
21472147
} else {
21482148
if self.is_tainted_by_errors() {
2149-
err.cancel();
2149+
err.delay_as_bug();
21502150
return;
21512151
}
21522152
err.note(&format!("cannot satisfy `{}`", predicate));
21532153
}
21542154
}
21552155
_ => {
21562156
if self.is_tainted_by_errors() {
2157-
err.cancel();
2157+
err.delay_as_bug();
21582158
return;
21592159
}
21602160
err.note(&format!("cannot satisfy `{}`", predicate));

0 commit comments

Comments
 (0)