Continue reporting remaining errors instead of silently dropping them
This commit is contained in:
parent
09d73fab08
commit
e9cda9b139
3 changed files with 41 additions and 2 deletions
|
@ -740,8 +740,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
});
|
||||
|
||||
// We're done if we found errors, but we already emitted them.
|
||||
if let Some(reported) = reported {
|
||||
assert!(errors.is_empty());
|
||||
if let Some(reported) = reported
|
||||
&& errors.is_empty()
|
||||
{
|
||||
return reported;
|
||||
}
|
||||
assert!(!errors.is_empty());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue