<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/os_str, branch 1.80.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.80.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.80.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-04-26T23:25:57+00:00</updated>
<entry>
<title>Rollup merge of #124410 - RalfJung:path-buf-transmute, r=Nilstrieb</title>
<updated>2024-04-26T23:25:57+00:00</updated>
<author>
<name>Jacob Pratt</name>
<email>jacob@jhpratt.dev</email>
</author>
<published>2024-04-26T23:25:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7cbba53396610b7f0d98b6bacb6ee03838077e5d'/>
<id>urn:sha1:7cbba53396610b7f0d98b6bacb6ee03838077e5d</id>
<content type='text'>
PathBuf: replace transmuting by accessor functions

The existing `repr(transparent)` was anyway insufficient as `OsString` was not `repr(transparent)`. And furthermore, on Windows it was blatantly wrong as `OsString` wraps `Wtf8Buf` which is a `repr(Rust)` type with 2 fields:

https://github.com/rust-lang/rust/blob/51a7396ad3d78d9326ee1537b9ff29ab3919556f/library/std/src/sys_common/wtf8.rs#L131-L146

So let's just be honest about what happens and add accessor methods that make this abstraction-breaking act of PathBuf visible on the APIs that it pierces through.

Fixes https://github.com/rust-lang/rust/issues/124409
</content>
</entry>
<entry>
<title>PathBuf: replace transmuting by accessor functions</title>
<updated>2024-04-26T16:09:09+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2024-04-26T15:55:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c47978a241ac1dd512b2ed7d146c1e1a71326dec'/>
<id>urn:sha1:c47978a241ac1dd512b2ed7d146c1e1a71326dec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stabilize Utf8Chunks</title>
<updated>2024-04-24T22:27:47+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2024-04-14T02:34:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=61cf00464e311b3dcf1a47b342c57978b1f40d88'/>
<id>urn:sha1:61cf00464e311b3dcf1a47b342c57978b1f40d88</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move `OsStr::slice_encoded_bytes` validation to platform modules</title>
<updated>2024-01-21T18:51:49+00:00</updated>
<author>
<name>Jan Verbeek</name>
<email>jan.verbeek@posteo.nl</email>
</author>
<published>2023-12-03T11:25:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=51a7396ad3d78d9326ee1537b9ff29ab3919556f'/>
<id>urn:sha1:51a7396ad3d78d9326ee1537b9ff29ab3919556f</id>
<content type='text'>
On Windows and UEFI this improves performance and error messaging.

On other platforms we optimize the fast path a bit more.

This also prepares for later relaxing the checks on certain platforms.
</content>
</entry>
<entry>
<title>std: move OS String implementation into `sys`</title>
<updated>2024-01-15T15:26:25+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-01-15T15:26:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=70b03645002e50fbe0c8ed29a0b0e801ace48a10'/>
<id>urn:sha1:70b03645002e50fbe0c8ed29a0b0e801ace48a10</id>
<content type='text'>
</content>
</entry>
</feed>
