<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/alloc/src/collections/binary_heap.rs, branch 1.60.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.60.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.60.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-02-18T23:55:31+00:00</updated>
<entry>
<title>Collections: improve the documentation of drain members</title>
<updated>2022-02-18T23:55:31+00:00</updated>
<author>
<name>Stein Somers</name>
<email>git@steinsomers.be</email>
</author>
<published>2022-01-14T19:28:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a677e6084049ff4cb2e338d7e33dc034846cdb29'/>
<id>urn:sha1:a677e6084049ff4cb2e338d7e33dc034846cdb29</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace iterator-based construction of collections by `Into&lt;T&gt;`</title>
<updated>2022-01-18T15:18:02+00:00</updated>
<author>
<name>Júnior Bassani</name>
<email>junior.eduardo.bassani@gmail.com</email>
</author>
<published>2021-12-13T13:22:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8936659297e6e53c33fb1e8e8c723e451d9357ab'/>
<id>urn:sha1:8936659297e6e53c33fb1e8e8c723e451d9357ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update feature gate</title>
<updated>2021-12-11T14:54:17+00:00</updated>
<author>
<name>TennyZhuang</name>
<email>zty0826@gmail.com</email>
</author>
<published>2021-12-11T14:54:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2235af1a689f739843b3728d6e958d057554be09'/>
<id>urn:sha1:2235af1a689f739843b3728d6e958d057554be09</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add BinaryHeap::try_reserve and BinaryHeap::try_reserve_exact</title>
<updated>2021-12-11T12:29:44+00:00</updated>
<author>
<name>TennyZhuang</name>
<email>zty0826@gmail.com</email>
</author>
<published>2021-12-04T16:18:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0f8793d89a77c3a230b6fbdf16a9890087e5b2a'/>
<id>urn:sha1:d0f8793d89a77c3a230b6fbdf16a9890087e5b2a</id>
<content type='text'>
Signed-off-by: TennyZhuang &lt;zty0826@gmail.com&gt;
</content>
</entry>
<entry>
<title>Use IntoIterator for array impl everywhere.</title>
<updated>2021-12-04T18:40:33+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2021-09-03T10:36:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1acb44f03cd82c15c66f43abcc4b396378a0cc5d'/>
<id>urn:sha1:1acb44f03cd82c15c66f43abcc4b396378a0cc5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>provide a `SpecExtend` trait for `Vec&lt;T&gt;`</title>
<updated>2021-11-12T07:45:25+00:00</updated>
<author>
<name>Neutron3529</name>
<email>qweytr_1@163.com</email>
</author>
<published>2021-08-24T06:41:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2feee3659e19fddf2eb47ea37293cae73bd52c98'/>
<id>urn:sha1:2feee3659e19fddf2eb47ea37293cae73bd52c98</id>
<content type='text'>
The discussion is [here](https://internals.rust-lang.org/t/append-vec-to-binaryheap/15209/3)
</content>
</entry>
<entry>
<title>Rollup merge of #89786 - jkugelman:must-use-len-and-is_empty, r=joshtriplett</title>
<updated>2021-10-31T12:20:05+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-10-31T12:20:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=88e5ae2dd3cf4a0bbb5af69ef70e80d5dc7b462c'/>
<id>urn:sha1:88e5ae2dd3cf4a0bbb5af69ef70e80d5dc7b462c</id>
<content type='text'>
Add #[must_use] to len and is_empty

Parent issue: #89692

r? `@joshtriplett`
</content>
</entry>
<entry>
<title>Add #[must_use] to len and is_empty</title>
<updated>2021-10-30T23:25:12+00:00</updated>
<author>
<name>John Kugelman</name>
<email>john@kugelman.name</email>
</author>
<published>2021-10-11T20:15:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6745e8da06e1fd313d2ff20ff9fe8d8dc4714479'/>
<id>urn:sha1:6745e8da06e1fd313d2ff20ff9fe8d8dc4714479</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #89899 - jkugelman:must-use-alloc, r=joshtriplett</title>
<updated>2021-10-30T22:33:24+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-10-30T22:33:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1adb6643928dd3bacdd079f87f7f4cdacf510823'/>
<id>urn:sha1:1adb6643928dd3bacdd079f87f7f4cdacf510823</id>
<content type='text'>
Add #[must_use] to remaining alloc functions

I've run out of compelling reasons to group functions together across crates so I'm just going to go module-by-module. This is everything remaining from the `alloc` crate.

I ignored these because they might be used to purposefully leak memory... or other allocator shenanigans? I dunno. I'll add them if y'all tell me to.

```rust
alloc::alloc          unsafe fn alloc(layout: Layout) -&gt; *mut u8;
alloc::alloc          unsafe fn alloc_zeroed(layout: Layout) -&gt; *mut u8;
alloc::sync::Arc&lt;T&gt;   fn into_raw(this: Self) -&gt; *const T;
```

I don't know why clippy ignored these. I added them myself:

```rust
alloc::collections::btree_map::BTreeMap&lt;K, V&gt;   fn range&lt;T: ?Sized, R&gt;(&amp;self, range: R) -&gt; Range&lt;'_, K, V&gt;;
alloc::collections::btree_set::BTreeSet&lt;T&gt;      fn range&lt;K: ?Sized, R&gt;(&amp;self, range: R) -&gt; Range&lt;'_, T&gt;;
```

I added these non-mutating `mut` functions:

```rust
alloc::collections::btree_map::BTreeMap&lt;K, V&gt;     fn range_mut&lt;T: ?Sized, R&gt;(&amp;mut self, range: R) -&gt; RangeMut&lt;'_, K, V&gt;;
alloc::collections::btree_map::BTreeMap&lt;K, V&gt;     fn iter_mut(&amp;mut self) -&gt; IterMut&lt;'_, K, V&gt;;
alloc::collections::btree_map::BTreeMap&lt;K, V&gt;     fn values_mut(&amp;mut self) -&gt; ValuesMut&lt;'_, K, V&gt;;
alloc::collections::linked_list::LinkedList&lt;T&gt;    fn iter_mut(&amp;mut self) -&gt; IterMut&lt;'_, T&gt;;
alloc::collections::linked_list::LinkedList&lt;T&gt;    fn cursor_front_mut(&amp;mut self) -&gt; CursorMut&lt;'_, T&gt;;
alloc::collections::linked_list::LinkedList&lt;T&gt;    fn cursor_back_mut(&amp;mut self) -&gt; CursorMut&lt;'_, T&gt;;
alloc::collections::linked_list::LinkedList&lt;T&gt;    fn front_mut(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;;
alloc::collections::linked_list::LinkedList&lt;T&gt;    fn back_mut(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;;
alloc::collections::linked_list::CursorMut&lt;'a, T&gt; fn current(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;;
alloc::collections::linked_list::CursorMut&lt;'a, T&gt; fn peek_next(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;;
alloc::collections::linked_list::CursorMut&lt;'a, T&gt; fn peek_prev(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;;
alloc::collections::linked_list::CursorMut&lt;'a, T&gt; fn front_mut(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;;
alloc::collections::linked_list::CursorMut&lt;'a, T&gt; fn back_mut(&amp;mut self) -&gt; Option&lt;&amp;mut T&gt;;
```

I moved a few existing `#[must_use]`s from functions onto the iterator types they return: `IntoIterSorted`, `IntoKeys`, `IntoValues`.

Parent issue: #89692

r? `@joshtriplett`
</content>
</entry>
<entry>
<title>Clarify undefined behaviour for binary heap, btree and hashset</title>
<updated>2021-10-21T13:30:46+00:00</updated>
<author>
<name>Wilfred Hughes</name>
<email>me@wilfred.me.uk</email>
</author>
<published>2021-07-28T06:13:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04c1ec51f1e2073c4df56f4239d08fb4522aa081'/>
<id>urn:sha1:04c1ec51f1e2073c4df56f4239d08fb4522aa081</id>
<content type='text'>
Previously, it wasn't clear whether "This could include" was referring
to logic errors, or undefined behaviour. Tweak wording to clarify this
sentence does not relate to UB.
</content>
</entry>
</feed>
