delay errors as bug
This commit is contained in:
parent
f1551bfc02
commit
003ed76e41
1 changed files with 2 additions and 2 deletions
|
@ -2146,7 +2146,7 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
||||||
self.annotate_source_of_ambiguity(&mut err, &impls, predicate);
|
self.annotate_source_of_ambiguity(&mut err, &impls, predicate);
|
||||||
} else {
|
} else {
|
||||||
if self.is_tainted_by_errors() {
|
if self.is_tainted_by_errors() {
|
||||||
err.cancel();
|
err.delay_as_bug();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
err.note(&format!("cannot satisfy `{}`", predicate));
|
err.note(&format!("cannot satisfy `{}`", predicate));
|
||||||
|
@ -2154,7 +2154,7 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
if self.is_tainted_by_errors() {
|
if self.is_tainted_by_errors() {
|
||||||
err.cancel();
|
err.delay_as_bug();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
err.note(&format!("cannot satisfy `{}`", predicate));
|
err.note(&format!("cannot satisfy `{}`", predicate));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue