From 9a64d79365fb0eaa52afb0be9265c86d9fe3e490 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Wed, 2 Jan 2019 21:21:47 -0500 Subject: [PATCH] Cleanup code --- src/librustc/traits/select.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/librustc/traits/select.rs b/src/librustc/traits/select.rs index 75ed8ddcefe..e5eb8e24a42 100644 --- a/src/librustc/traits/select.rs +++ b/src/librustc/traits/select.rs @@ -694,9 +694,6 @@ fn evaluate_predicate_recursively<'o>( None => self.check_recursion_limit(&obligation, &obligation)? } - //self.check_recursion_limit(&obligation, previous_stack.head() - // .map_or(&obligation, |s| s.obligation))?; - match obligation.predicate { ty::Predicate::Trait(ref t) => { debug_assert!(!t.has_escaping_bound_vars()); @@ -1023,10 +1020,7 @@ fn evaluate_candidate<'o>( match this.confirm_candidate(stack.obligation, candidate) { Ok(selection) => this.evaluate_predicates_recursively( stack.list(), - selection.nested_obligations().into_iter().map(|o| { - //o.recursion_depth = 0; - o - }) + selection.nested_obligations().into_iter() ), Err(..) => Ok(EvaluatedToErr), } -- 2.44.0