diff --git a/src/librustc/traits/util.rs b/src/librustc/traits/util.rs index 875c7199f6d1..40f13ac06f56 100644 --- a/src/librustc/traits/util.rs +++ b/src/librustc/traits/util.rs @@ -239,6 +239,10 @@ impl<'cx, 'gcx, 'tcx> Elaborator<'cx, 'gcx, 'tcx> { impl<'cx, 'gcx, 'tcx> Iterator for Elaborator<'cx, 'gcx, 'tcx> { type Item = ty::Predicate<'tcx>; + fn size_hint(&self) -> (usize, Option) { + (self.stack.len(), None) + } + fn next(&mut self) -> Option> { // Extract next item from top-most stack frame, if any. let next_predicate = match self.stack.pop() {