<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/alloc/src/collections/vec_deque/mod.rs, branch 1.89.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.89.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.89.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-05-21T14:13:23+00:00</updated>
<entry>
<title>std: fix doctest and explain for as_slices and as_mut_slices in VecDeque</title>
<updated>2025-05-21T14:13:23+00:00</updated>
<author>
<name>xizheyin</name>
<email>xizheyin@smail.nju.edu.cn</email>
</author>
<published>2025-05-18T15:50:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=46a5c91591a0d7a6fd8f8994810a3fc6c7ea444d'/>
<id>urn:sha1:46a5c91591a0d7a6fd8f8994810a3fc6c7ea444d</id>
<content type='text'>
Signed-off-by: xizheyin &lt;xizheyin@smail.nju.edu.cn&gt;
</content>
</entry>
<entry>
<title>Implement `VecDeque::truncate_front()`</title>
<updated>2025-05-05T15:13:26+00:00</updated>
<author>
<name>Vladimir Krivopalov</name>
<email>vladimir@krivopalov.ru</email>
</author>
<published>2025-03-03T17:06:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cdf4143eb8209926e39a36df244880734bd46a23'/>
<id>urn:sha1:cdf4143eb8209926e39a36df244880734bd46a23</id>
<content type='text'>
Tracking issue: #140667

Signed-off-by: Vladimir Krivopalov &lt;vladimir.krivopalov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fully test the alloc crate through alloctests</title>
<updated>2025-03-07T19:11:13+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-02-06T12:46:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ae5687e4b0a375d3307856fb81810f6cc9019be5'/>
<id>urn:sha1:ae5687e4b0a375d3307856fb81810f6cc9019be5</id>
<content type='text'>
For the tests that make use of internal implementation details, we
include the module to test using #[path] in alloctests now.
</content>
</entry>
<entry>
<title>[Clippy] Add vec_reserve &amp; vecdeque_reserve diagnostic items</title>
<updated>2025-01-25T22:18:18+00:00</updated>
<author>
<name>wowinter13</name>
<email>vla-dy@yandex.ru</email>
</author>
<published>2025-01-25T22:18:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2117afdef8a3dfd82c6a3dd4d974a2213c2aeb1f'/>
<id>urn:sha1:2117afdef8a3dfd82c6a3dd4d974a2213c2aeb1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement `VecDeque::pop_front_if` &amp; `VecDeque::pop_back_if`</title>
<updated>2025-01-22T17:04:36+00:00</updated>
<author>
<name>Pavel Grigorenko</name>
<email>GrigorenkoPV@ya.ru</email>
</author>
<published>2025-01-22T16:57:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ed7cc3486cbd0a059fa5f7d7f9198ee1c5144c01'/>
<id>urn:sha1:ed7cc3486cbd0a059fa5f7d7f9198ee1c5144c01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add clarity to the "greater" of `VecDeque::insert`</title>
<updated>2024-12-14T14:25:55+00:00</updated>
<author>
<name>tkirishima</name>
<email>tkirishima@proton.me</email>
</author>
<published>2024-12-14T14:03:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=891a75b3a1c68eeac8b9884563ad5f30a2c00b89'/>
<id>urn:sha1:891a75b3a1c68eeac8b9884563ad5f30a2c00b89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace i32 by char to add clarity</title>
<updated>2024-12-14T14:25:55+00:00</updated>
<author>
<name>tkirishima</name>
<email>tkirishima@proton.me</email>
</author>
<published>2024-12-14T14:02:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ea048cf055df6ffe9cf50725da08084d98d20b26'/>
<id>urn:sha1:ea048cf055df6ffe9cf50725da08084d98d20b26</id>
<content type='text'>
In some `Vec` and `VecDeque` examples where elements are i32, examples can seem a bit confusing at first glance if a parameter of the method is an usize.
</content>
</entry>
<entry>
<title>Fix predicate signatures in retain_mut docs</title>
<updated>2024-10-17T00:52:50+00:00</updated>
<author>
<name>Collin O'Connor</name>
<email>collinoc+dev@protonmail.com</email>
</author>
<published>2024-10-17T00:52:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3ed5d5590e12d972acf4ca6a503d0b00f233ad0e'/>
<id>urn:sha1:3ed5d5590e12d972acf4ca6a503d0b00f233ad0e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #126557 - GrigorenkoPV:vec_track_caller, r=joboet</title>
<updated>2024-10-14T02:33:40+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-10-14T02:33:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f6648f252a05a0a46c865d7ec836b46290613bf9'/>
<id>urn:sha1:f6648f252a05a0a46c865d7ec836b46290613bf9</id>
<content type='text'>
Add `#[track_caller]` to allocating methods of `Vec` &amp; `VecDeque`

Part 4 in a lengthy saga.
r? `@joshtriplett` because they were the reviewer the last 3 times.
`@bors` rollup=never "[just in case this has perf effects, Vec is hot](https://github.com/rust-lang/rust/pull/79323#issuecomment-731866746)"

This was first attempted in #79323 by `@nvzqz.` It got approval from `@joshtriplett,` but rotted with merge conflicts and got closed.

Then it got picked up by `@Dylan-DPC-zz` in #83359. A benchmark was run[^perf], the results (after a bit of thinking[^thinking]) were deemed ok[^ok], but there was a typo[^typo] and the PR was made from a wrong remote in the first place[^remote], so #83909 was opened instead.

By the time #83909 rolled around, the methods in question had received some optimizations[^optimizations], so another perf run was conducted[^perf2]. The results were ok[^ok2]. There was a suggestion to add regression tests for panic behavior [^tests], but before it could be addressed, the PR fell victim to merge conflicts[^conflicts] and died again[^rip].

3 years have passed, and (from what I can tell) this has not been tried again, so here I am now, reviving this old effort.

Given how much time has passed and the fact that I've also touched `VecDeque` this time, it probably makes sense to
`@bors` try `@rust-timer`

[^perf]: https://github.com/rust-lang/rust/pull/83359#issuecomment-804450095
[^thinking]: https://github.com/rust-lang/rust/pull/83359#issuecomment-805286704
[^ok]: https://github.com/rust-lang/rust/pull/83359#issuecomment-812739031
[^typo]: https://github.com/rust-lang/rust/pull/83359#issuecomment-812750205
[^remote]: https://github.com/rust-lang/rust/pull/83359#issuecomment-814067119
[^optimizations]: https://github.com/rust-lang/rust/pull/83909#issuecomment-813736593
[^perf2]: https://github.com/rust-lang/rust/pull/83909#issuecomment-813825552
[^ok2]: https://github.com/rust-lang/rust/pull/83909#issuecomment-813831341
[^tests]: https://github.com/rust-lang/rust/pull/83909#issuecomment-825788964
[^conflicts]: https://github.com/rust-lang/rust/pull/83909#issuecomment-851173480
[^rip]: https://github.com/rust-lang/rust/pull/83909#issuecomment-873569771
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
</feed>
