review comments

This commit is contained in:
Esteban Küber 2019-09-18 17:33:15 -07:00
parent c1ed4399eb
commit 09f05d2c41

View File

@ -2847,10 +2847,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
fn select_obligations_where_possible(
&self,
fallback_has_occurred: bool,
f: impl Fn(&mut Vec<traits::FulfillmentError<'tcx>>),
mutate_fullfillment_errors: impl Fn(&mut Vec<traits::FulfillmentError<'tcx>>),
) {
if let Err(mut errors) = self.fulfillment_cx.borrow_mut().select_where_possible(self) {
f(&mut errors);
mutate_fullfillment_errors(&mut errors);
self.report_fulfillment_errors(&errors, self.inh.body_id, fallback_has_occurred);
}
}