Skip to content

Commit 9a64d79

Browse files
committed
Cleanup code
1 parent b1a8da6 commit 9a64d79

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/librustc/traits/select.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,6 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
694694
None => self.check_recursion_limit(&obligation, &obligation)?
695695
}
696696

697-
//self.check_recursion_limit(&obligation, previous_stack.head()
698-
// .map_or(&obligation, |s| s.obligation))?;
699-
700697
match obligation.predicate {
701698
ty::Predicate::Trait(ref t) => {
702699
debug_assert!(!t.has_escaping_bound_vars());
@@ -1023,10 +1020,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
10231020
match this.confirm_candidate(stack.obligation, candidate) {
10241021
Ok(selection) => this.evaluate_predicates_recursively(
10251022
stack.list(),
1026-
selection.nested_obligations().into_iter().map(|o| {
1027-
//o.recursion_depth = 0;
1028-
o
1029-
})
1023+
selection.nested_obligations().into_iter()
10301024
),
10311025
Err(..) => Ok(EvaluatedToErr),
10321026
}

0 commit comments

Comments
 (0)