diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 430e57810d96..5c5bed8a3507 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -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>), + mutate_fullfillment_errors: impl Fn(&mut Vec>), ) { 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); } }