Skip to content

Commit 09f05d2

Browse files
committed
review comments
1 parent c1ed439 commit 09f05d2

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_typeck/check

1 file changed

+2
-2
lines changed

src/librustc_typeck/check/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2847,10 +2847,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
28472847
fn select_obligations_where_possible(
28482848
&self,
28492849
fallback_has_occurred: bool,
2850-
f: impl Fn(&mut Vec<traits::FulfillmentError<'tcx>>),
2850+
mutate_fullfillment_errors: impl Fn(&mut Vec<traits::FulfillmentError<'tcx>>),
28512851
) {
28522852
if let Err(mut errors) = self.fulfillment_cx.borrow_mut().select_where_possible(self) {
2853-
f(&mut errors);
2853+
mutate_fullfillment_errors(&mut errors);
28542854
self.report_fulfillment_errors(&errors, self.inh.body_id, fallback_has_occurred);
28552855
}
28562856
}

0 commit comments

Comments
 (0)