replace old_iter::repeat with the Times trait
auto merge of #6106 : thestinger/rust/iter, r=bstrie

I don't have a strong opinion on the function vs. method, but there's no point in having both. I'd like to make a `repeat` adaptor like Python/Haskell for turning a value into an infinite stream of the value, so this has to at least be renamed.