<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/pal, branch 1.83.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.83.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.83.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-10-12T03:57:44+00:00</updated>
<entry>
<title>Rollup merge of #130962 - nyurik:opts-libs, r=cuviper</title>
<updated>2024-10-12T03:57:44+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>t.gross35@gmail.com</email>
</author>
<published>2024-10-12T03:57:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=02cf62c59622de77888a087ca65cfcef69892a72'/>
<id>urn:sha1:02cf62c59622de77888a087ca65cfcef69892a72</id>
<content type='text'>
Migrate lib's `&amp;Option&lt;T&gt;` into `Option&lt;&amp;T&gt;`

Trying out my new lint https://github.com/rust-lang/rust-clippy/pull/13336 - according to the [video](https://www.youtube.com/watch?v=6c7pZYP_iIE), this could lead to some performance and memory optimizations.

Basic thoughts expressed in the video that seem to make sense:
* `&amp;Option&lt;T&gt;` in an API breaks encapsulation:
  * caller must own T and move it into an Option to call with it
  * if returned, the owner must store it as Option&lt;T&gt; internally in order to return it
* Performance is subject to compiler optimization, but at the basics, `&amp;Option&lt;T&gt;` points to memory that has `presence` flag + value, whereas `Option&lt;&amp;T&gt;` by specification is always optimized to a single pointer.
</content>
</entry>
<entry>
<title>Decouple WASIp2 sockets from WasiFd</title>
<updated>2024-10-09T12:39:28+00:00</updated>
<author>
<name>Nicola Krumschmidt</name>
<email>git@nkcom.de</email>
</author>
<published>2024-10-09T12:39:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=01e248ff974e310be5fb88d374cbed64aa5c4a25'/>
<id>urn:sha1:01e248ff974e310be5fb88d374cbed64aa5c4a25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update library/std/src/sys/pal/unix/process/process_vxworks.rs</title>
<updated>2024-10-09T03:26:30+00:00</updated>
<author>
<name>Yuri Astrakhan</name>
<email>yuriastrakhan@gmail.com</email>
</author>
<published>2024-10-09T02:17:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a278f157241e296ced392a81be5be7e8f608bd3c'/>
<id>urn:sha1:a278f157241e296ced392a81be5be7e8f608bd3c</id>
<content type='text'>
Co-authored-by: Josh Stone &lt;cuviper@gmail.com&gt;</content>
</entry>
<entry>
<title>fix ref in process_vxworks.rs</title>
<updated>2024-10-09T03:26:30+00:00</updated>
<author>
<name>Yuri Astrakhan</name>
<email>YuriAstrakhan@gmail.com</email>
</author>
<published>2024-10-09T00:21:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=442d766cc12014a4a2c5b207ad41019b97fce03b'/>
<id>urn:sha1:442d766cc12014a4a2c5b207ad41019b97fce03b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update library/std/src/sys/pal/unix/process/process_unix.rs</title>
<updated>2024-10-09T03:26:30+00:00</updated>
<author>
<name>Yuri Astrakhan</name>
<email>yuriastrakhan@gmail.com</email>
</author>
<published>2024-10-02T18:25:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d2f93c97079a5c7e2b3fff6d3a63f862ce88bb3f'/>
<id>urn:sha1:d2f93c97079a5c7e2b3fff6d3a63f862ce88bb3f</id>
<content type='text'>
Co-authored-by: Josh Stone &lt;cuviper@gmail.com&gt;</content>
</entry>
<entry>
<title>Change a few `&amp;Option&lt;T&gt;` into `Option&lt;&amp;T&gt;`</title>
<updated>2024-10-09T03:26:29+00:00</updated>
<author>
<name>Yuri Astrakhan</name>
<email>YuriAstrakhan@gmail.com</email>
</author>
<published>2024-09-28T05:46:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f2d1edfea5689ac638904080ddb972c40e7acc8c'/>
<id>urn:sha1:f2d1edfea5689ac638904080ddb972c40e7acc8c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Android: Debug assertion after setting thread name</title>
<updated>2024-10-05T18:29:40+00:00</updated>
<author>
<name>Yoh Deadfall</name>
<email>yoh.deadfall@hotmail.com</email>
</author>
<published>2024-10-05T18:29:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2223328d166a16cde864a17a5cb96de0853c9981'/>
<id>urn:sha1:2223328d166a16cde864a17a5cb96de0853c9981</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: make `thread::current` available in all `thread_local!` destructors</title>
<updated>2024-10-02T16:04:21+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-07-18T11:59:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d868fdce6b9ddef6abcc8de86b3ba8459def36a2'/>
<id>urn:sha1:d868fdce6b9ddef6abcc8de86b3ba8459def36a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hook up std::net to wasi-libc on wasm32-wasip2 target</title>
<updated>2024-09-29T02:48:12+00:00</updated>
<author>
<name>Nicola Krumschmidt</name>
<email>git@nkcom.de</email>
</author>
<published>2024-08-26T19:31:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b11c82a3d625a01dd5f7b91785374103eb41589'/>
<id>urn:sha1:3b11c82a3d625a01dd5f7b91785374103eb41589</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `&amp;raw` in the standard library</title>
<updated>2024-09-26T00:03:20+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2024-09-26T00:03:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f4d9d1a0eaf7e5de8c368ac5af500adf9e06f6e7'/>
<id>urn:sha1:f4d9d1a0eaf7e5de8c368ac5af500adf9e06f6e7</id>
<content type='text'>
Since the stabilization in #127679 has reached stage0, 1.82-beta, we can
start using `&amp;raw` freely, and even the soft-deprecated `ptr::addr_of!`
and `ptr::addr_of_mut!` can stop allowing the unstable feature.

I intentionally did not change any documentation or tests, but the rest
of those macro uses are all now using `&amp;raw const` or `&amp;raw mut` in the
standard library.
</content>
</entry>
</feed>
