about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-09-18 17:33:15 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-09-19 12:10:23 -0700
commit09f05d2c41ced46ad01a7f6dbc27c56e967cd6e1 (patch)
tree50a6d7d30d06931c929bcf707ed42b77297f1318
parentc1ed4399eb3b68a2df0abda9483826f4a0e83046 (diff)
downloadrust-09f05d2c41ced46ad01a7f6dbc27c56e967cd6e1.tar.gz
rust-09f05d2c41ced46ad01a7f6dbc27c56e967cd6e1.zip
review comments
-rw-r--r--src/librustc_typeck/check/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index 430e57810d9..5c5bed8a350 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<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);
         }
     }