From 09f05d2c41ced46ad01a7f6dbc27c56e967cd6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Wed, 18 Sep 2019 17:33:15 -0700 Subject: [PATCH] review comments --- src/librustc_typeck/check/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }