<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/liballoc/vec_deque.rs, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-06-29T12:01:33+00:00</updated>
<entry>
<title>Move some alloc crate top-level items to a new alloc::collections module</title>
<updated>2018-06-29T12:01:33+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2018-06-15T01:52:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=121b57b87ae4b58082f38a450373636286a8d678'/>
<id>urn:sha1:121b57b87ae4b58082f38a450373636286a8d678</id>
<content type='text'>
This matches std::collections
</content>
</entry>
<entry>
<title>stabilize RangeBounds collections_range #30877</title>
<updated>2018-05-24T12:01:40+00:00</updated>
<author>
<name>Cory Sherman</name>
<email>coryshrmn@gmail.com</email>
</author>
<published>2018-05-24T11:39:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1440f300d848610b0cb798a735e2c75a94998aa9'/>
<id>urn:sha1:1440f300d848610b0cb798a735e2c75a94998aa9</id>
<content type='text'>
rename RangeBounds::start() -&gt; start_bound()
rename RangeBounds::end() -&gt; end_bound()
</content>
</entry>
<entry>
<title>Auto merge of #48945 - clarcharr:iter_exhaust, r=Kimundi</title>
<updated>2018-04-16T13:21:56+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-04-16T13:21:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1ef1563518d48ad9231b3ec3ac463d34d819ed28'/>
<id>urn:sha1:1ef1563518d48ad9231b3ec3ac463d34d819ed28</id>
<content type='text'>
Replace manual iterator exhaust with for_each(drop)

This originally added a dedicated method, `Iterator::exhaust`, and has since been replaced with `for_each(drop)`, which is more idiomatic.

&lt;del&gt;This is just shorthand for `for _ in &amp;mut self {}` or `while let Some(_) = self.next() {}`. This states the intent a lot more clearly than the identical code: run the iterator to completion.

&lt;del&gt;At least personally, my eyes tend to gloss over `for _ in &amp;mut self {}` without fully paying attention to what it does; having a `Drop` implementation akin to:

&lt;del&gt;`for _ in &amp;mut self {}; unsafe { free(self.ptr); }`&lt;/del&gt;

&lt;del&gt;Is not as clear as:

&lt;del&gt;`self.exhaust(); unsafe { free(self.ptr); }`

&lt;del&gt;Additionally, I've seen debate over whether `while let Some(_) = self.next() {}` or `for _ in &amp;mut self {}` is more clear, whereas `self.exhaust()` is clearer than both.
</content>
</entry>
<entry>
<title>Cleanup liballoc use statements</title>
<updated>2018-04-13T23:43:13+00:00</updated>
<author>
<name>Mike Hommey</name>
<email>mh@glandium.org</email>
</author>
<published>2018-04-13T23:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7'/>
<id>urn:sha1:bd9ff8476d5e8ca5dbb99c70ff2a9dc3be1d59d7</id>
<content type='text'>
Some modules were still using the deprecated `allocator` module, use the
`alloc` module instead.

Some modules were using `super` while it's not needed.

Some modules were more or less ordering them, and other not, so the
latter have been modified to match the others.
</content>
</entry>
<entry>
<title>Replace manual iter exhaust with for_each(drop).</title>
<updated>2018-04-04T23:10:38+00:00</updated>
<author>
<name>Clar Charr</name>
<email>clar@charr.xyz</email>
</author>
<published>2018-04-04T23:10:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5c58eec0bd8cee8fb2a191396d5ad5b5c9b0116a'/>
<id>urn:sha1:5c58eec0bd8cee8fb2a191396d5ad5b5c9b0116a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove all unstable placement features</title>
<updated>2018-04-03T09:02:34+00:00</updated>
<author>
<name>Aidan Hobson Sayers</name>
<email>aidanhs@cantab.net</email>
</author>
<published>2018-02-18T17:39:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9b5859aea199d5f34a4d4b5ae7112c5c41f3b242'/>
<id>urn:sha1:9b5859aea199d5f34a4d4b5ae7112c5c41f3b242</id>
<content type='text'>
Closes #22181, #27779
</content>
</entry>
<entry>
<title>Move RangeArguments to {core::std}::ops and rename to RangeBounds</title>
<updated>2018-03-29T11:12:49+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2018-03-19T08:26:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=16d3ba1b23195da2d53e058c58c2a41def914dec'/>
<id>urn:sha1:16d3ba1b23195da2d53e058c58c2a41def914dec</id>
<content type='text'>
These unstable items are deprecated:

* The `std::collections::range::RangeArgument` reexport
* The `std::collections::range` module.
</content>
</entry>
<entry>
<title>Move alloc::Bound to {core,std}::ops</title>
<updated>2018-03-29T11:12:49+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2018-03-19T08:01:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3a63970dee2422e2fcc79d8b99303b4b046f444'/>
<id>urn:sha1:c3a63970dee2422e2fcc79d8b99303b4b046f444</id>
<content type='text'>
The stable reexport `std::collections::Bound` is now deprecated.

Another deprecated reexport could be added in `alloc`,
but that crate is unstable.
</content>
</entry>
<entry>
<title>Implement `shrink_to` method on collections</title>
<updated>2018-03-27T00:39:11+00:00</updated>
<author>
<name>Diggory Blake</name>
<email>diggsey@googlemail.com</email>
</author>
<published>2018-03-26T22:24:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04f6692aaf78809c041ba6145bde2dcbeec9725e'/>
<id>urn:sha1:04f6692aaf78809c041ba6145bde2dcbeec9725e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>implementing fallible allocation API (try_reserve) for Vec, String and HashMap</title>
<updated>2018-03-14T10:48:42+00:00</updated>
<author>
<name>snf</name>
<email>snf@users.noreply.github.com</email>
</author>
<published>2018-03-08T14:36:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=92bfcd2b192e59d12d64acf6f46c1897a3273b3e'/>
<id>urn:sha1:92bfcd2b192e59d12d64acf6f46c1897a3273b3e</id>
<content type='text'>
</content>
</entry>
</feed>
