<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/os/windows/io, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-19T16:59:25+00:00</updated>
<entry>
<title>Fix doc of `std::os::windows::io::BorrowedSocket::borrow_raw`</title>
<updated>2025-08-19T16:59:25+00:00</updated>
<author>
<name>Lorenz Leutgeb</name>
<email>lorenz.leutgeb@posteo.eu</email>
</author>
<published>2025-08-19T16:59:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a21d7d7529a0ef8c937c9ed541f990ae0125b725'/>
<id>urn:sha1:a21d7d7529a0ef8c937c9ed541f990ae0125b725</id>
<content type='text'>
A small oversight in 0cb69dec57f I noticed while reading.
</content>
</entry>
<entry>
<title>replace version placeholder</title>
<updated>2025-04-09T11:29:59+00:00</updated>
<author>
<name>Boxy</name>
<email>rust@boxyuwu.dev</email>
</author>
<published>2025-03-31T17:09:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a6c2ec04b456d600b42b0c7286af38044f19a9a6'/>
<id>urn:sha1:a6c2ec04b456d600b42b0c7286af38044f19a9a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mv os-specific trait impl of `Pipe*` into `std::os::*`</title>
<updated>2025-03-13T14:03:56+00:00</updated>
<author>
<name>Jiahao XU</name>
<email>Jiahao_XU@outlook.com</email>
</author>
<published>2025-03-07T13:36:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6863a99841f81ea18b9a26d053fd33a9700a8345'/>
<id>urn:sha1:6863a99841f81ea18b9a26d053fd33a9700a8345</id>
<content type='text'>
Signed-off-by: Jiahao XU &lt;Jiahao_XU@outlook.com&gt;
</content>
</entry>
<entry>
<title>library: Use size_of from the prelude instead of imported</title>
<updated>2025-03-07T04:20:38+00:00</updated>
<author>
<name>Thalia Archibald</name>
<email>thalia@archibald.dev</email>
</author>
<published>2025-03-05T04:28:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=988eb1997014987caad878699ee1e7c000214508'/>
<id>urn:sha1:988eb1997014987caad878699ee1e7c000214508</id>
<content type='text'>
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.

These functions were added to all preludes in Rust 1.80.
</content>
</entry>
<entry>
<title>Use correct error message casing for `io::const_error`s</title>
<updated>2025-02-28T16:50:38+00:00</updated>
<author>
<name>Noratrieb</name>
<email>48135649+Noratrieb@users.noreply.github.com</email>
</author>
<published>2025-02-28T16:50:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cdef38812dd4de2a3fa3b3512b64c28c278ff7cc'/>
<id>urn:sha1:cdef38812dd4de2a3fa3b3512b64c28c278ff7cc</id>
<content type='text'>
Error messages are supposed to start with lowercase letters, but a lot
of `io::const_error` messages did not. This fixes them to start with a
lowercase letter.
I did consider adding a const check for this to the macro, but some of
them start with proper nouns that make sense to uppercase them.

See https://doc.rust-lang.org/1.85.0/std/error/trait.Error.html
</content>
</entry>
<entry>
<title>Add safe new to NotAllOnes</title>
<updated>2025-02-14T12:00:13+00:00</updated>
<author>
<name>Kornel</name>
<email>kornel@geekhood.net</email>
</author>
<published>2025-02-11T11:04:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00964aa401214ceab23d232b7d819b9b3286343f'/>
<id>urn:sha1:00964aa401214ceab23d232b7d819b9b3286343f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: move network code into `sys`</title>
<updated>2025-02-02T18:12:06+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2025-02-02T17:53:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4f834264ab8d0cb95ac7972532661c84a154667e'/>
<id>urn:sha1:4f834264ab8d0cb95ac7972532661c84a154667e</id>
<content type='text'>
As per #117276, this PR moves `sys_common::net` and the `sys::pal::net` into the newly created `sys::net` module. In order to support #135141, I've moved all the current network code into a separate `connection` module, future functions like `hostname` can live in separate modules.

I'll probably do a follow-up PR and clean up some of the actual code, this is mostly just a reorganization.
</content>
</entry>
<entry>
<title>Update a bunch of library types for MCP807</title>
<updated>2025-01-10T07:47:11+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2025-01-08T03:35:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6f2a78345ee7f55c5ce33fd7b9804c665c646dd2'/>
<id>urn:sha1:6f2a78345ee7f55c5ce33fd7b9804c665c646dd2</id>
<content type='text'>
This greatly reduces the number of places that actually use the `rustc_layout_scalar_valid_range_*` attributes down to just 3:
```
library/core\src\ptr\non_null.rs
68:#[rustc_layout_scalar_valid_range_start(1)]

library/core\src\num\niche_types.rs
19:        #[rustc_layout_scalar_valid_range_start($low)]
20:        #[rustc_layout_scalar_valid_range_end($high)]
```

Everything else -- PAL Nanoseconds, alloc's `Cap`, niched FDs, etc -- all just wrap those `niche_types` types.
</content>
</entry>
<entry>
<title>Auto merge of #133223 - zachs18:uniquerc-impls, r=Noratrieb</title>
<updated>2024-12-15T08:26:19+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-12-15T08:26:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=87139bd9cfb999eff4025ff3d2ab5659c8082678'/>
<id>urn:sha1:87139bd9cfb999eff4025ff3d2ab5659c8082678</id>
<content type='text'>
`UniqueRc` trait impls

UniqueRc tracking Issue: #112566

Stable traits: (i.e. impls behind only the `unique_rc_arc` feature gate)

* Support the same formatting as `Rc`:
  * `fmt::Debug` and `fmt::Display` delegate to the pointee.
  * `fmt::Pointer` prints the address of the pointee.
* Add explicit `!Send` and `!Sync` impls, to mirror `Rc`.
* Borrowing traits: `Borrow`, `BorrowMut`, `AsRef`, `AsMut`
  * `Rc` does not implement `BorrowMut` and `AsMut`, but `UniqueRc` can.
* Unconditional `Unpin`, like other heap-allocated types.
* Comparison traits `(Partial)Ord` and `(Partial)Eq` delegate to the pointees.
  * `PartialEq for UniqueRc` does not do `Rc`'s specialization shortcut for pointer equality when `T: Eq`, since by definition two `UniqueRc`s cannot share an allocation.
* `Hash` delegates to the pointee.
* `AsRawFd`, `AsFd`, `AsHandle`, `AsSocket` delegate to the pointee like `Rc`.
  * Sidenote: The bounds on `T` for the existing `Pointer&lt;T&gt;` impls for specifically `AsRawFd` and `AsSocket` do not allow `T: ?Sized`. For the added `UniqueRc` impls I allowed `T: ?Sized` for all four traits, but I did not change the existing (stable) impls.

Unstable traits:
* `DispatchFromDyn`, allows using `UniqueRc&lt;Self&gt;` as a method receiver under `feature(arbitrary_self_types)`.
* Existing `PinCoerceUnsized for UniqueRc` is generalized to allow non-`Global` allocators, like `Rc`.
* `DerefPure`, allows using `UniqueRc` in deref-patterns under `feature(deref_patterns)`, like `Rc`.

For documentation, `Rc` only has documentation on the comparison traits' methods, so I copied/adapted the documentation for those, and left the rest without impl-specific docs.

~~Edit: Marked as draft while I figure out `UnwindSafe`.~~
Edit: Ignoring `UnwindSafe` for this PR
</content>
</entry>
<entry>
<title>std: update internal uses of `io::const_error!`</title>
<updated>2024-11-26T17:38:24+00:00</updated>
<author>
<name>joboet</name>
<email>jonasboettiger@icloud.com</email>
</author>
<published>2024-11-25T12:49:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c14d137bfc5133f5a38fad2f58e30fed9c47ffe2'/>
<id>urn:sha1:c14d137bfc5133f5a38fad2f58e30fed9c47ffe2</id>
<content type='text'>
</content>
</entry>
</feed>
