<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/alloc/src/collections/vec_deque/mod.rs, branch 1.77.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.77.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.77.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-12-21T23:20:14+00:00</updated>
<entry>
<title>fix minor mistake in comments describing VecDeque resizing</title>
<updated>2023-12-21T23:20:14+00:00</updated>
<author>
<name>Kent Ross</name>
<email>k@mad.cash</email>
</author>
<published>2023-12-21T23:17:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f2e711e4c22a2fec34b6a1e61499a09a071a84e4'/>
<id>urn:sha1:f2e711e4c22a2fec34b6a1e61499a09a071a84e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>edit `std::collections::VecDeque` docs</title>
<updated>2023-09-16T13:52:34+00:00</updated>
<author>
<name>mxnkarou</name>
<email>mxnkarou@icloud.com</email>
</author>
<published>2023-09-16T13:52:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1c7a77a638c523499252feaec986ee99c5d0baf5'/>
<id>urn:sha1:1c7a77a638c523499252feaec986ee99c5d0baf5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename VecDeque's rotate_left and rotate_right parameters</title>
<updated>2023-07-13T17:10:52+00:00</updated>
<author>
<name>Pedro Lobo</name>
<email>pedrocerqueiralobo@gmail.com</email>
</author>
<published>2023-07-13T17:10:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c0a105be7ce5833a7d4e744e3dd4b45a1af40796'/>
<id>urn:sha1:c0a105be7ce5833a7d4e744e3dd4b45a1af40796</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make sure that signatures aren't accidental refinements</title>
<updated>2023-04-28T17:36:49+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-04-28T17:36:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=33871c97ab67d90cfca5c22183f3a4e200d6a976'/>
<id>urn:sha1:33871c97ab67d90cfca5c22183f3a4e200d6a976</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove some unneeded imports</title>
<updated>2023-04-12T17:27:18+00:00</updated>
<author>
<name>KaDiWa</name>
<email>kalle.wachsmuth@gmail.com</email>
</author>
<published>2022-08-09T00:14:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ad2b34d0e37e2f968f226e2401bcb894207ca1c5'/>
<id>urn:sha1:ad2b34d0e37e2f968f226e2401bcb894207ca1c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #106985 - jofas:106746-fix, r=ChrisDenton</title>
<updated>2023-03-30T12:06:59+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>jtitor@2k36.org</email>
</author>
<published>2023-03-30T12:06:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d6f27401f12f02876aa6fe53139b030033f37e5e'/>
<id>urn:sha1:d6f27401f12f02876aa6fe53139b030033f37e5e</id>
<content type='text'>
Enhanced doucmentation of binary search methods for `slice` and `VecDeque` for unsorted instances

Fixes #106746. Issue #106746 raises the concern that the binary search methods for slices and deques aren't explicit enough about the fact that they are only applicable to sorted slices/deques. I changed the explanation for these methods. I took the relatively harsh description of the behaviour of binary search on unsorted collections ("unspecified and meaningless") from the description of the [`partition_point`](https://doc.rust-lang.org/std/primitive.slice.html#method.partition_point) method:

&gt; If this slice is not partitioned, the returned result is unspecified and meaningless, as this method performs a kind of binary search.
</content>
</entry>
<entry>
<title>removed deprecated markdown links from documentation</title>
<updated>2023-03-30T08:20:57+00:00</updated>
<author>
<name>jofas</name>
<email>jonas@fc-web.de</email>
</author>
<published>2023-03-30T08:20:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b0850073133c548a53afee29400d3873fabb7985'/>
<id>urn:sha1:b0850073133c548a53afee29400d3873fabb7985</id>
<content type='text'>
</content>
</entry>
<entry>
<title>enhanced documentation of binary search methods for slice and VecDeque for unsorted instances</title>
<updated>2023-03-29T09:14:23+00:00</updated>
<author>
<name>jofas</name>
<email>jonas@fc-web.de</email>
</author>
<published>2023-03-29T09:14:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=37ed3cebbc24c9953ae0c2a17dd74ae1268b8650'/>
<id>urn:sha1:37ed3cebbc24c9953ae0c2a17dd74ae1268b8650</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #106276 - Sp00ph:unify_slice_ranges, r=the8472</title>
<updated>2023-03-11T11:55:41+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-03-11T11:55:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=790d9f349b061c8b7d113a3752b7e05c3304bccb'/>
<id>urn:sha1:790d9f349b061c8b7d113a3752b7e05c3304bccb</id>
<content type='text'>
Fix `vec_deque::Drain` FIXME

In my original `VecDeque` rewrite, I didn't use `VecDeque::slice_ranges` in `Drain::as_slices`, even though that's basically the exact use case for `slice_ranges`. The reason for this was that a `VecDeque` wrapped in a `Drain` actually has its length set to `drain_start`, so that there's no potential use after free if you `mem::forget` the `Drain`. I modified `slice_ranges` to accept an explicit `len` parameter instead, which it now uses to bounds check the given range. This way, `Drain::as_slices` can use `slice_ranges` internally instead of having to basically just copy paste the `slice_ranges` code. Since `slice_ranges` is just an internal helper function, this shouldn't change the user facing behavior in any way.
</content>
</entry>
<entry>
<title>Rollup merge of #108462 - pommicket:fix-vecdeque-zst-overflow, r=Amanieu</title>
<updated>2023-03-01T18:10:20+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>99973273+Dylan-DPC@users.noreply.github.com</email>
</author>
<published>2023-03-01T18:10:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=093a53f1348cc9a5f9cd81b3aac19341ef6793df'/>
<id>urn:sha1:093a53f1348cc9a5f9cd81b3aac19341ef6793df</id>
<content type='text'>
Fix `VecDeque::append` capacity overflow for ZSTs

Fixes #108454.
</content>
</entry>
</feed>
