<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/liballoc, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<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>Auto merge of #74060 - kpp:remove_length_at_most_32, r=dtolnay</title>
<updated>2020-07-26T05:50:51+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2020-07-26T05:50:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=461707c5a119cc33c5d7df585ddb6cbec4a081bf'/>
<id>urn:sha1:461707c5a119cc33c5d7df585ddb6cbec4a081bf</id>
<content type='text'>
Remove trait LengthAtMost32

This is a continuation of https://github.com/rust-lang/rust/pull/74026 preserving the original burrbull's commit.

I talked to @burrbull, he suggested me to finish his PR.
</content>
</entry>
<entry>
<title>Document UTF-8 validity of String::from_raw_parts</title>
<updated>2020-07-25T12:06:32+00:00</updated>
<author>
<name>aticu</name>
<email>15schnic@gmail.com</email>
</author>
<published>2020-07-25T12:06:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=44d8b4c8b12be337156d8e21ca8103ef9704840e'/>
<id>urn:sha1:44d8b4c8b12be337156d8e21ca8103ef9704840e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix wrong name in `String::from_raw_parts` docs</title>
<updated>2020-07-25T12:04:56+00:00</updated>
<author>
<name>aticu</name>
<email>15schnic@gmail.com</email>
</author>
<published>2020-07-25T12:04:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e7949bc2f41e710deb97f9e1da2a599563b1faf4'/>
<id>urn:sha1:e7949bc2f41e710deb97f9e1da2a599563b1faf4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #74652 - poliorcetics:clarify-vec-drain-doc, r=jyn514</title>
<updated>2020-07-25T03:38:30+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2020-07-25T03:38:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0e11fc8053d32c44e7152865852acc5c3c54efb3'/>
<id>urn:sha1:0e11fc8053d32c44e7152865852acc5c3c54efb3</id>
<content type='text'>
Improve the documentation for Vec::drain

Fixes #73844.

@rusbot modify labels: A-collections, C-enhancement, T-doc, T-libs
</content>
</entry>
<entry>
<title>Apply suggestion from review</title>
<updated>2020-07-24T17:55:08+00:00</updated>
<author>
<name>Alexis Bourget</name>
<email>alexis.bourget@gmail.com</email>
</author>
<published>2020-07-24T17:55:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=654c180d05fedc8a9a3c793cfc747ad542d3a4f2'/>
<id>urn:sha1:654c180d05fedc8a9a3c793cfc747ad542d3a4f2</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>Rollup merge of #74666 - ssomers:btree_cleanup_1, r=Mark-Simulacrum</title>
<updated>2020-07-24T09:56:34+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>huyuumi.dev@gmail.com</email>
</author>
<published>2020-07-24T09:56:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cff59532a8145e35ef193f5f33c0c154a9764241'/>
<id>urn:sha1:cff59532a8145e35ef193f5f33c0c154a9764241</id>
<content type='text'>
More BTreeMap test cases, some exposing undefined behaviour

Gathered from other ongoing PRs and all either blessed or ignored by Miri

r? @Mark-Simulacrum
</content>
</entry>
<entry>
<title>Remove unecessary link</title>
<updated>2020-07-23T20:35:22+00:00</updated>
<author>
<name>Alexis Bourget</name>
<email>alexis.bourget@gmail.com</email>
</author>
<published>2020-07-23T20:35:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=771ec216bc87932e341cf1f4d887988228d429b5'/>
<id>urn:sha1:771ec216bc87932e341cf1f4d887988228d429b5</id>
<content type='text'>
</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>
</feed>
