delay errors as bug
This commit is contained in:
parent
f1551bfc02
commit
003ed76e41
@ -2146,7 +2146,7 @@ fn maybe_report_ambiguity(
|
||||
self.annotate_source_of_ambiguity(&mut err, &impls, predicate);
|
||||
} else {
|
||||
if self.is_tainted_by_errors() {
|
||||
err.cancel();
|
||||
err.delay_as_bug();
|
||||
return;
|
||||
}
|
||||
err.note(&format!("cannot satisfy `{}`", predicate));
|
||||
@ -2154,7 +2154,7 @@ fn maybe_report_ambiguity(
|
||||
}
|
||||
_ => {
|
||||
if self.is_tainted_by_errors() {
|
||||
err.cancel();
|
||||
err.delay_as_bug();
|
||||
return;
|
||||
}
|
||||
err.note(&format!("cannot satisfy `{}`", predicate));
|
||||
|
Loading…
Reference in New Issue
Block a user