]> git.lizzy.rs Git - rust.git/commitdiff
review comments
authorEsteban Küber <esteban@kuber.com.ar>
Thu, 19 Sep 2019 00:33:15 +0000 (17:33 -0700)
committerEsteban Küber <esteban@kuber.com.ar>
Thu, 19 Sep 2019 19:10:23 +0000 (12:10 -0700)
src/librustc_typeck/check/mod.rs

index 430e57810d9612ab2a9e12ec2f8df6fec0c133fa..5c5bed8a3507c4f49dab6eba428aadf57bb0dae5 100644 (file)
@@ -2847,10 +2847,10 @@ fn select_all_obligations_or_error(&self) {
     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);
         }
     }