<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/liballoc, branch 1.45.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.45.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.45.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-05-30T11:45:06+00:00</updated>
<entry>
<title>Rollup merge of #72499 - mendess:master, r=dtolnay</title>
<updated>2020-05-30T11:45:06+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2020-05-30T11:45:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8d64fd80adef2c80325f7a5a545108035198daba'/>
<id>urn:sha1:8d64fd80adef2c80325f7a5a545108035198daba</id>
<content type='text'>
Override Box::&lt;[T]&gt;::clone_from

Avoid dropping and reallocating when cloning to an existing box if the lengths are the same.

It would be nice if this could also be specialized for `Copy` but I don't know how that works since it's not on stable. Will gladly look into it if it's deemed as a good idea.

This is my first PR with code, hope I did everything right :smile:
</content>
</entry>
<entry>
<title>Rollup merge of #72162 - cuviper:extend_one, r=Mark-Simulacrum</title>
<updated>2020-05-30T03:39:10+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>huyuumi.dev@gmail.com</email>
</author>
<published>2020-05-30T03:39:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3459eae96c3ab9ae40012e97723c7550e96200f6'/>
<id>urn:sha1:3459eae96c3ab9ae40012e97723c7550e96200f6</id>
<content type='text'>
Add Extend::{extend_one,extend_reserve}

This adds new optional methods on `Extend`: `extend_one` add a single
element to the collection, and `extend_reserve` pre-allocates space for
the predicted number of incoming elements. These are used in `Iterator`
for `partition` and `unzip` as they shuffle elements one-at-a-time into
their respective collections.
</content>
</entry>
<entry>
<title>Add Extend::{extend_one,extend_reserve}</title>
<updated>2020-05-30T00:05:17+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2020-05-13T03:09:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6700e186883a83008963d1fdba23eff2b1713e56'/>
<id>urn:sha1:6700e186883a83008963d1fdba23eff2b1713e56</id>
<content type='text'>
This adds new optional methods on `Extend`: `extend_one` add a single
element to the collection, and `extend_reserve` pre-allocates space for
the predicted number of incoming elements. These are used in `Iterator`
for `partition` and `unzip` as they shuffle elements one-at-a-time into
their respective collections.
</content>
</entry>
<entry>
<title>Auto merge of #72756 - RalfJung:rollup-tbjmtx2, r=RalfJung</title>
<updated>2020-05-29T23:43:20+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2020-05-29T23:43:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0e9e4083100aa3ebf09b8f1ace0348cb37475eb9'/>
<id>urn:sha1:0e9e4083100aa3ebf09b8f1ace0348cb37475eb9</id>
<content type='text'>
Rollup of 9 pull requests

Successful merges:

 - #67460 (Tweak impl signature mismatch errors involving `RegionKind::ReVar` lifetimes)
 - #71095 (impl From&lt;[T; N]&gt; for Box&lt;[T]&gt;)
 - #71500 (Make pointer offset methods/intrinsics const)
 - #71804 (linker: Support `-static-pie` and `-static -shared`)
 - #71862 (Implement RFC 2585: unsafe blocks in unsafe fn)
 - #72103 (borrowck `DefId` -&gt; `LocalDefId`)
 - #72407 (Various minor improvements to Ipv6Addr::Display)
 - #72413 (impl Step for char (make Range*&lt;char&gt; iterable))
 - #72439 (NVPTX support for new asm!)

Failed merges:

r? @ghost
</content>
</entry>
<entry>
<title>Rollup merge of #71095 - pickfire:box-from-array, r=dtolnay</title>
<updated>2020-05-29T19:58:19+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2020-05-29T19:58:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b387a1163691a97abb47db0b99dc6073a8076675'/>
<id>urn:sha1:b387a1163691a97abb47db0b99dc6073a8076675</id>
<content type='text'>
impl From&lt;[T; N]&gt; for Box&lt;[T]&gt;

Based on https://github.com/rust-lang/rust/pull/68692
</content>
</entry>
<entry>
<title>Rollup merge of #72701 - pickfire:patch-1, r=Mark-Simulacrum</title>
<updated>2020-05-29T18:21:24+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-05-29T18:21:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=510793bcb3fb697dfa5cafdc706811bced939b06'/>
<id>urn:sha1:510793bcb3fb697dfa5cafdc706811bced939b06</id>
<content type='text'>
Fix grammar in liballoc raw_vec
</content>
</entry>
<entry>
<title>Remove flaky test and document the other's flakiness</title>
<updated>2020-05-29T10:24:26+00:00</updated>
<author>
<name>mendess</name>
<email>pedro.mendes.26@gmail.com</email>
</author>
<published>2020-05-29T10:18:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dbf32e2270f82601bd2816da270ce70269cc59ba'/>
<id>urn:sha1:dbf32e2270f82601bd2816da270ce70269cc59ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #72288 - vorner:stabilize-weak-into-raw, r=dtolnay</title>
<updated>2020-05-29T06:06:55+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>huyuumi.dev@gmail.com</email>
</author>
<published>2020-05-29T06:06:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d472f8e4624277163f33f9070bf0474669d3844e'/>
<id>urn:sha1:d472f8e4624277163f33f9070bf0474669d3844e</id>
<content type='text'>
Stabilization of weak-into-raw

Closes #60728.

There are also two removals of `#![feature(weak_into_raw)]` in the `src/tools/miri` submodule. How should I synchronize the changes with there?

* I can ignore it for now and once this gets merged, update the tool, send a pull request to that one and then reference the changes to rustc.
* I could try submitting the changes to miri first, but then the build would fail there, because the attribute would still be needed.

I think the first one is the correct one, extrapolating from the contributing guidelines (even though they speak about breaking the tools and this should not break it, as extra feature should not hurt).
</content>
</entry>
<entry>
<title>Fix grammar in liballoc raw_vec</title>
<updated>2020-05-28T16:40:41+00:00</updated>
<author>
<name>Ivan Tham</name>
<email>pickfire@riseup.net</email>
</author>
<published>2020-05-28T16:40:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=42a4f5ac50821d0a82c9593f049a2c3f21e922e9'/>
<id>urn:sha1:42a4f5ac50821d0a82c9593f049a2c3f21e922e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #72533 - Diggsey:db-fix-arc-ub2, r=dtolnay</title>
<updated>2020-05-27T01:09:12+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-05-27T01:09:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8f95dc8d4e31f24185db831fc92b7d5752ba9d7f'/>
<id>urn:sha1:8f95dc8d4e31f24185db831fc92b7d5752ba9d7f</id>
<content type='text'>
Resolve UB in Arc/Weak interaction (2)

Use raw pointers to avoid making any assertions about the data field.

Follow up from #72479, see that PR for more detail on the motivation.

@RalfJung I was able to avoid a lot of the changes to `Weak`, by making a helper type (`WeakInner`) - because of auto-deref and because the fields have the same name, the rest of the code continues to compile.
</content>
</entry>
</feed>
