]> git.lizzy.rs Git - rust.git/commitdiff
More tidy fixes
authorAaron Hill <aa1ronham@gmail.com>
Thu, 20 Dec 2018 09:03:40 +0000 (04:03 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Fri, 4 Jan 2019 02:58:57 +0000 (21:58 -0500)
src/librustc/traits/select.rs

index 2eb717c7c7f5f1a645b9e836e8539d1c8dcfbce0..0c0d68c9b36b1aac21f16029bef548070532e593 100644 (file)
@@ -629,7 +629,8 @@ pub fn evaluate_obligation_recursively(
         obligation: &PredicateObligation<'tcx>,
     ) -> Result<EvaluationResult, OverflowError> {
         self.evaluation_probe(|this| {
-            this.evaluate_predicate_recursively(TraitObligationStackList::empty(), obligation.clone())
+            this.evaluate_predicate_recursively(TraitObligationStackList::empty(),
+                obligation.clone())
         })
     }
 
@@ -699,7 +700,7 @@ fn evaluate_predicate_recursively<'o>(
                 {
                     Some(Ok(InferOk { mut obligations, .. })) => {
                         self.add_depth(obligations.iter_mut(), obligation.recursion_depth);
-                        self.evaluate_predicates_recursively(previous_stack, obligations.into_iter())
+                        self.evaluate_predicates_recursively(previous_stack,obligations.into_iter())
                     }
                     Some(Err(_)) => Ok(EvaluatedToErr),
                     None => Ok(EvaluatedToAmbig),
@@ -1098,7 +1099,7 @@ fn add_depth<T: 'cx, I: Iterator<Item = &'cx mut Obligation<'tcx, T>>>(&self, it
     //
     // The weird return type of this function allows it to be used with the 'try' (?)
     // operator within certain functions
-    fn check_recursion_limit<T: Display + TypeFoldable<'tcx>>(&self, obligation: &Obligation<'tcx, T>,
+    fn check_recursion_limit<T: Display + TypeFoldable<'tcx>>(&self,obligation:&Obligation<'tcx, T>,
     ) -> Result<(), OverflowError>  {
         let recursion_limit = *self.infcx.tcx.sess.recursion_limit.get();
         if obligation.recursion_depth >= recursion_limit {