<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/liballoc/tests, branch auto</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=auto</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=auto'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-07-28T00:51:13+00:00</updated>
<entry>
<title>mv std libs to library/</title>
<updated>2020-07-28T00:51:13+00:00</updated>
<author>
<name>mark</name>
<email>markm@cs.wisc.edu</email>
</author>
<published>2020-06-12T02:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2c31b45ae878b821975c4ebd94cc1e49f6073fd0'/>
<id>urn:sha1:2c31b45ae878b821975c4ebd94cc1e49f6073fd0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #74677 - ssomers:btree_cleanup_2, r=Amanieu</title>
<updated>2020-07-24T09:56:38+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>huyuumi.dev@gmail.com</email>
</author>
<published>2020-07-24T09:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fab9b1d4cd5a788f46d94077b49da285ce782b74'/>
<id>urn:sha1:fab9b1d4cd5a788f46d94077b49da285ce782b74</id>
<content type='text'>
Remove needless unsafety from BTreeMap::drain_filter

Remove one piece of unsafe code in the iteration over the iterator returned by BTreeMap::drain_filter.
- Changes an explicitly unspecified part of the API: when the user-supplied predicate (or some of BTreeMap's code) panicked, and the caller tries to use the iterator again, we no longer offer the same key/value pair to the predicate again but pretend the iterator has finished. Note that Miri does not find UB in the test case added here with the unsafe code (or without).
- Makes the code a little easier on the eyes.
- Makes the code a little harder on the CPU:
```
benchcmp c0 c2 --threshold 3
 name                                         c0 ns/iter  c2 ns/iter  diff ns/iter  diff %  speedup
 btree::set::clone_100_and_drain_all          2,794       2,900                106   3.79%   x 0.96
 btree::set::clone_100_and_drain_half         2,604       2,964                360  13.82%   x 0.88
 btree::set::clone_10k_and_drain_half         287,770     322,755           34,985  12.16%   x 0.89
```
r? @Amanieu
</content>
</entry>
<entry>
<title>BTreeMap::drain_filter: replace needless unsafety and test</title>
<updated>2020-07-23T16:29:07+00:00</updated>
<author>
<name>Stein Somers</name>
<email>git@steinsomers.be</email>
</author>
<published>2020-07-22T20:37:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=facc46fd0a85408bc05aa19b80131e3cfb5fe3dd'/>
<id>urn:sha1:facc46fd0a85408bc05aa19b80131e3cfb5fe3dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More BTreeMap test cases, some exposing undefined behaviour</title>
<updated>2020-07-22T21:40:06+00:00</updated>
<author>
<name>Stein Somers</name>
<email>git@steinsomers.be</email>
</author>
<published>2020-07-14T09:32:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2152d18f9248d376fd43a6192888664f33dfb08d'/>
<id>urn:sha1:2152d18f9248d376fd43a6192888664f33dfb08d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>disable BTree min_max test in Miri for now</title>
<updated>2020-07-02T08:26:37+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2020-07-02T08:25:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dca9310ceb495ae2d5c6c775c151d75202e686d7'/>
<id>urn:sha1:dca9310ceb495ae2d5c6c775c151d75202e686d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #73466 - matthiaskrgr:char_into_string, r=dtolnay</title>
<updated>2020-07-01T14:42:36+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2020-07-01T14:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b7d13c0604f31791ff13558d76942395c29e3348'/>
<id>urn:sha1:b7d13c0604f31791ff13558d76942395c29e3348</id>
<content type='text'>
impl From&lt;char&gt; for String

This allows us to write

````rust
fn char_to_string() -&gt; String {
    'a'.into()
}
````

which was not possible before.
</content>
</entry>
<entry>
<title>Shortcuts for min/max on ordinary BTreeMap/BTreeSet iterators</title>
<updated>2020-06-26T08:05:21+00:00</updated>
<author>
<name>Stein Somers</name>
<email>git@steinsomers.be</email>
</author>
<published>2020-06-22T18:12:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42062a58026cdb245e3eb365af726f2d9f4946af'/>
<id>urn:sha1:42062a58026cdb245e3eb365af726f2d9f4946af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #71660 - sollyucko:master, r=dtolnay</title>
<updated>2020-06-22T12:53:46+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-06-22T12:53:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8da1dd0215791b0e20ea25d1bf706757d1f3da81'/>
<id>urn:sha1:8da1dd0215791b0e20ea25d1bf706757d1f3da81</id>
<content type='text'>
impl PartialEq&lt;Vec&lt;B&gt;&gt; for &amp;[A], &amp;mut [A]

https://github.com/rust-lang/rfcs/issues/2917
</content>
</entry>
<entry>
<title>impl PartialEq&lt;Vec&lt;B&gt;&gt; for &amp;[A], &amp;mut [A]</title>
<updated>2020-06-20T22:51:20+00:00</updated>
<author>
<name>Solomon Ucko</name>
<email>solly.ucko@gmail.com</email>
</author>
<published>2020-04-29T02:40:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fc60282daea83a5deff651e6c5a93dbad4437be7'/>
<id>urn:sha1:fc60282daea83a5deff651e6c5a93dbad4437be7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove uses of `Vec::remove_item`</title>
<updated>2020-06-20T10:12:28+00:00</updated>
<author>
<name>Lukas Kalbertodt</name>
<email>lukas.kalbertodt@gmail.com</email>
</author>
<published>2020-06-20T09:38:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1e6e082039a52c03a2ca93c0483e86b3c7f67af4'/>
<id>urn:sha1:1e6e082039a52c03a2ca93c0483e86b3c7f67af4</id>
<content type='text'>
</content>
</entry>
</feed>
