Fix #21328#21388
Conversation
This is a breaking change. To fix it you should pass the VecMap by value instead of by reference. [breaking-change]
src/libcollections/vec_map.rs
Outdated
There was a problem hiding this comment.
Examples is the convention, regardless of number of exmaples.
|
I would suggest against ExactSizeIterator; |
|
Needs tests |
|
@gankro I fixed the issues you pointed out and added a test |
|
Woah a run-pass test is way overkill. Just need some basic tests in the module that make sure the iterators produce correct output (and e.g. |
|
@gankro Sorry for the run-pass test 😋 ... I have added it as a normal test. |
|
@bors: r+ b409 |
|
Maybe it needs a longer string? See here: #21386 |
|
It registered the last one |
|
Also I clearly nailed it on my first try. Anyone who claims otherwise is clearly a liar? |
|
@bors rollup |
|
Thanks for reviewing! |
|
Thanks for contributing! 🎊 |
**Breaking change**: `VecMap::into_iter` now consumes the `VecMap`. To fix it you should pass the VecMap by value instead of by reference. [breaking-change] r? @gankro
Remove unnecessary `ConstLiteralRef` enum
Fixes #21328
Breaking change:
VecMap::into_iternow consumes theVecMap. To fix it you should pass the VecMap by value instead of by reference.[breaking-change]
r? @gankro