<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/alloc.rs, branch stable</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=stable</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=stable'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-03-26T16:10:54+00:00</updated>
<entry>
<title>Overhaul of the `AllocRef` trait to match allocator-wg's latest consens</title>
<updated>2020-03-26T16:10:54+00:00</updated>
<author>
<name>Tim Diekmann</name>
<email>tim.diekmann@3dvision.de</email>
</author>
<published>2020-03-24T10:45:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=56cbf2f22aeb6448acd7eb49e9b2554c80bdbf79'/>
<id>urn:sha1:56cbf2f22aeb6448acd7eb49e9b2554c80bdbf79</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #69079 - CAD97:layout-of-ptr, r=RalfJung</title>
<updated>2020-03-22T18:37:19+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2020-03-22T18:37:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d1e81ef234ff5c2e0e3a69cb4e8e5f5b0fe1fd83'/>
<id>urn:sha1:d1e81ef234ff5c2e0e3a69cb4e8e5f5b0fe1fd83</id>
<content type='text'>
Allow calculating the layout behind a pointer

There was some discussion around allowing this previously.

This does make the requirement for raw pointers to have valid metadata exposed as part of the std API (as a safety invariant, not validity invariant), though I think this is not strictly necessarily required as of current. cc @rust-lang/wg-unsafe-code-guidelines

Naming is hard; I picked the best "obvious" name I could come up with.

If it's agreed that this is actually a desired API surface, I'll file a tracking issue and update the attributes.
</content>
</entry>
<entry>
<title>Allow calculating the layout behind a pointer</title>
<updated>2020-03-21T23:45:45+00:00</updated>
<author>
<name>CAD97</name>
<email>cad97@cad97.com</email>
</author>
<published>2020-02-11T19:10:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dd973d1b1235813c5e38a092272f2231800b1e53'/>
<id>urn:sha1:dd973d1b1235813c5e38a092272f2231800b1e53</id>
<content type='text'>
Let align/size_of_of_val intrinsics work on ptrs
</content>
</entry>
<entry>
<title>Allow ZSTs in `AllocRef`</title>
<updated>2020-03-08T10:01:12+00:00</updated>
<author>
<name>Tim Diekmann</name>
<email>tim.diekmann@3dvision.de</email>
</author>
<published>2020-03-07T11:04:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f77afc8f9c63d789519c0b1a733462ca654d894a'/>
<id>urn:sha1:f77afc8f9c63d789519c0b1a733462ca654d894a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update alloc.rs</title>
<updated>2020-03-07T01:45:55+00:00</updated>
<author>
<name>Tim Diekmann</name>
<email>21277928+TimDiekmann@users.noreply.github.com</email>
</author>
<published>2020-03-07T01:45:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=09d3ba13afb8fdf449928b160431787e2d259db1'/>
<id>urn:sha1:09d3ba13afb8fdf449928b160431787e2d259db1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `Layout::dangling()` to return a well-aligned `NonNull&lt;u8&gt;`</title>
<updated>2020-03-07T01:40:54+00:00</updated>
<author>
<name>Tim Diekmann</name>
<email>tim.diekmann@3dvision.de</email>
</author>
<published>2020-03-07T01:40:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=545ef9d83ab383bdc99376a2fe4164e46f4a3f6e'/>
<id>urn:sha1:545ef9d83ab383bdc99376a2fe4164e46f4a3f6e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `usable_size` APIs</title>
<updated>2020-03-02T23:08:24+00:00</updated>
<author>
<name>Tim Diekmann</name>
<email>tim.diekmann@3dvision.de</email>
</author>
<published>2020-03-02T23:08:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d8e3557dbae23283f81d7bc45200413dd93ced4a'/>
<id>urn:sha1:d8e3557dbae23283f81d7bc45200413dd93ced4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #69027 - TimDiekmann:zeroed-alloc, r=Amanieu</title>
<updated>2020-02-12T09:55:46+00:00</updated>
<author>
<name>Yuki Okushi</name>
<email>huyuumi.dev@gmail.com</email>
</author>
<published>2020-02-12T09:55:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a50ccd980a9f9038e83918fe936c2640044d1ab5'/>
<id>urn:sha1:a50ccd980a9f9038e83918fe936c2640044d1ab5</id>
<content type='text'>
Add missing `_zeroed` varants to `AllocRef`

The majority of the allocator wg has decided to add the missing `_zeroed` variants to `AllocRef`:

&gt; these should be added since they can be efficiently implemented with the `mremap` system call on Linux. `mremap` allows you to move/grow/shrink a memory mapping, and any new pages added for growth are guaranteed to be zeroed.
&gt;
&gt; If `AllocRef` does not have these methods then the user will have to manually write zeroes to the added memory since the API makes no guarantees on their contents.

For the full discussion please see https://github.com/rust-lang/wg-allocators/issues/14.

This PR provides default implementations for `realloc_zeroed`, `alloc_excess_zeroed`, `realloc_excess_zeroed`, and `grow_in_place_zeroed`.

r? @Amanieu
</content>
</entry>
<entry>
<title>Add missing `_zeroed` varants to `AllocRef`</title>
<updated>2020-02-10T18:44:29+00:00</updated>
<author>
<name>Tim Diekmann</name>
<email>tim.diekmann@3dvision.de</email>
</author>
<published>2020-02-10T16:00:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=97d1f8d9bbb6ae25d22f5193006becf37a57d226'/>
<id>urn:sha1:97d1f8d9bbb6ae25d22f5193006becf37a57d226</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove common usage pattern from `AllocRef`</title>
<updated>2020-02-10T17:38:09+00:00</updated>
<author>
<name>Tim Diekmann</name>
<email>tim.diekmann@3dvision.de</email>
</author>
<published>2020-02-10T15:42:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=25de80ad232b84ce581fe67cc08b43e9db6b0b1f'/>
<id>urn:sha1:25de80ad232b84ce581fe67cc08b43e9db6b0b1f</id>
<content type='text'>
</content>
</entry>
</feed>
