Collect fulfillment errors across impls
This commit is contained in:
parent
569ca2bad0
commit
00b976a138
3 changed files with 42 additions and 2 deletions
|
@ -2261,9 +2261,9 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||
|
||||
ocx.register_obligations(impl_obligations);
|
||||
|
||||
let errors = ocx.select_where_possible();
|
||||
let mut errors = ocx.select_where_possible();
|
||||
if !errors.is_empty() {
|
||||
fulfillment_errors = errors;
|
||||
fulfillment_errors.append(&mut errors);
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue