1
Fork 0
This commit is contained in:
Michael Goulet 2024-02-16 15:07:32 +00:00
parent a9dbf63087
commit f624d55ea7
3 changed files with 15 additions and 1 deletions

View file

@ -64,6 +64,7 @@ impl<'tcx, T: ?Sized + TraitEngine<'tcx>> T {
}
}
#[must_use]
fn select_all_or_error(&mut self, infcx: &InferCtxt<'tcx>) -> Vec<FulfillmentError<'tcx>> {
let errors = self.select_where_possible(infcx);
if !errors.is_empty() {