1
Fork 0

Collect fulfillment errors across impls

This commit is contained in:
León Orell Valerian Liehr 2023-02-19 18:28:44 +01:00
parent 569ca2bad0
commit 00b976a138
No known key found for this signature in database
GPG key ID: D17A07215F68E713
3 changed files with 42 additions and 2 deletions

View file

@ -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;
}