diff options
| author | bors <bors@rust-lang.org> | 2018-12-22 07:16:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-22 07:16:11 +0000 |
| commit | 9689ada83891f63164bf117af35cc0abc37daaf1 (patch) | |
| tree | 07391f5b735aa114f845cb0570dd642db42d96d6 /src/test/ui/recursion/recursive-enum.rs | |
| parent | 24667aa19d65b0827e780e2eab6b3b86e22a2516 (diff) | |
| parent | cbe9abb78cd6c1b8c74b78110b8c92c1f0984ba0 (diff) | |
| download | rust-9689ada83891f63164bf117af35cc0abc37daaf1.tar.gz rust-9689ada83891f63164bf117af35cc0abc37daaf1.zip | |
Auto merge of #56842 - scottmcm:vecdeque-rotate, r=alexcrichton
Add unstable VecDeque::rotate_{left|right}
Like the ones on slices, but more efficient because vecdeque is a circular buffer.
Issue that proposed this: https://github.com/rust-lang/rust/issues/56686
~~:bomb: Please someone look very carefully at the `unsafe` in this! The `wrap_copy` seems to be exactly what this method needs, and the `len` passed to it is never more than half the length of the deque, but I haven't managed to prove to myself that it's correct :bomb:~~ I think I proved that this code meets the requirement of the unsafe code it's calling; please double-check, of course.
Diffstat (limited to 'src/test/ui/recursion/recursive-enum.rs')
0 files changed, 0 insertions, 0 deletions
