about summary refs log tree commit diff
path: root/src/test/ui/recursion/recursive-enum.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-22 07:16:11 +0000
committerbors <bors@rust-lang.org>2018-12-22 07:16:11 +0000
commit9689ada83891f63164bf117af35cc0abc37daaf1 (patch)
tree07391f5b735aa114f845cb0570dd642db42d96d6 /src/test/ui/recursion/recursive-enum.rs
parent24667aa19d65b0827e780e2eab6b3b86e22a2516 (diff)
parentcbe9abb78cd6c1b8c74b78110b8c92c1f0984ba0 (diff)
downloadrust-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