Location (URL)
https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.last
https://doc.rust-lang.org/std/iter/struct.Repeat.html#method.last
Summary
https://doc.rust-lang.org/src/core/iter/sources/repeat.rs.html#105
This panic! added in rust 1.92 is not documented. Neither in Iterator::last nor in repeat.
#146410
https://dev-doc.rust-lang.org/1.92.0/releases.html :
count does document the panic! in Iterator Iterator::count in std::iter but last didn't.
I think this panic! should be documented both in the Iterator trait and in the Repeat implementation.
Location (URL)
https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.last
https://doc.rust-lang.org/std/iter/struct.Repeat.html#method.last
Summary
https://doc.rust-lang.org/src/core/iter/sources/repeat.rs.html#105
This
panic!added in rust 1.92 is not documented. Neither in Iterator::last nor inrepeat.#146410
https://dev-doc.rust-lang.org/1.92.0/releases.html :
countdoes document thepanic!inIteratorIterator::count in std::iter butlastdidn't.I think this
panic!should be documented both in theIteratortrait and in theRepeatimplementation.