<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/os/solid, 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-08-03T09:17:42+00:00</updated>
<entry>
<title>Rollup merge of #127586 - zachs18:more-must-use, r=cuviper</title>
<updated>2024-08-03T09:17:42+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-08-03T09:17:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1f700139f8d5cb458679e6f8c0a0aa247b56c79d'/>
<id>urn:sha1:1f700139f8d5cb458679e6f8c0a0aa247b56c79d</id>
<content type='text'>
Add `#[must_use]` to some `into_raw*` functions.

cc #121287

r? ``@cuviper``

Adds `#[must_use = "losing the pointer will leak memory"]`[^1] to `Box::into_raw(_with_allocator)`, `Vec::into_raw_parts(_with_alloc)`, `String::into_raw_parts`[^2], and `rc::{Rc, Weak}::into_raw_with_allocator` (Rc's normal `into_raw` and all of `Arc`'s `into_raw*`s are already `must_use`).

Adds `#[must_use = "losing the raw &lt;resource name may leak resources"]` to `IntoRawFd::into_raw_fd`, `IntoRawSocket::into_raw_socket`, and `IntoRawHandle::into_raw_handle`.

[^1]: "*will* leak memory" may be too-strong wording (since `Box`/`Vec`/`String`/`rc::Weak` might not have a backing allocation), but I left it as-is for simplicity and consistency.

[^2]: `String::into_raw_parts`'s `must_use` message is changed from the previous (possibly misleading) "`self` will be dropped if the result is not used".
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>Fix doc nits</title>
<updated>2024-07-26T12:26:33+00:00</updated>
<author>
<name>John Arundel</name>
<email>john@bitfieldconsulting.com</email>
</author>
<published>2024-07-15T11:26:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a19472a93e2eecce1477011fa9f7ec49b45ca164'/>
<id>urn:sha1:a19472a93e2eecce1477011fa9f7ec49b45ca164</id>
<content type='text'>
Many tiny changes to stdlib doc comments to make them consistent (for example
"Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph
breaks, backticks for monospace style, and other minor nits.

https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
</content>
</entry>
<entry>
<title>Rollup merge of #127733 - GrigorenkoPV:don't-forget, r=Amanieu</title>
<updated>2024-07-24T16:00:39+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-07-24T16:00:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=34abb9647c58650fd6554dff91c3332e06ee9ace'/>
<id>urn:sha1:34abb9647c58650fd6554dff91c3332e06ee9ace</id>
<content type='text'>
Replace some `mem::forget`'s with `ManuallyDrop`

              &gt; but I would like to see a larger effort to replace all uses of `mem::forget`.

_Originally posted by `@saethlin` in https://github.com/rust-lang/rust/issues/127584#issuecomment-2226087767_

So,
r? `@saethlin`

Sorry, I have finished writing all of this before I got your response.
</content>
</entry>
<entry>
<title>kmc-solid: forbid(unsafe_op_in_unsafe_fn)</title>
<updated>2024-07-19T20:46:06+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2024-07-17T19:57:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1d83da88473e72717c089a389adcea1c53d4c9f8'/>
<id>urn:sha1:1d83da88473e72717c089a389adcea1c53d4c9f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib: replace some `mem::forget`'s with `ManuallyDrop`</title>
<updated>2024-07-15T19:01:09+00:00</updated>
<author>
<name>Pavel Grigorenko</name>
<email>GrigorenkoPV@ya.ru</email>
</author>
<published>2024-07-14T19:17:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f6fe7e49a2bc2ad14513aa609b67e188470309f6'/>
<id>urn:sha1:f6fe7e49a2bc2ad14513aa609b67e188470309f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `must_use` to IntoRawFd/IntoRawSocket/IntoRawHandle's methods.</title>
<updated>2024-07-10T18:08:24+00:00</updated>
<author>
<name>Zachary S</name>
<email>zasample18+github@gmail.com</email>
</author>
<published>2024-07-10T18:08:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d477d3a9de714d877a9eda48b0eda3e12e301be'/>
<id>urn:sha1:6d477d3a9de714d877a9eda48b0eda3e12e301be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kmc-solid: Re-export `{As,Borrowed,Owned}Fd` in `std::os::solid::prelude`</title>
<updated>2023-11-08T01:52:00+00:00</updated>
<author>
<name>Tomoaki Kawada</name>
<email>kawada@kmckk.co.jp</email>
</author>
<published>2023-08-24T02:33:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=52eb92de37353737b6b9269922b7bc4c9ddddf73'/>
<id>urn:sha1:52eb92de37353737b6b9269922b7bc4c9ddddf73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kmc-solid: Reimplement `AsFd` etc for `{TcpStream,TcpListener,UdpSocket}` by delegating to inner `Socket`</title>
<updated>2023-11-08T01:51:59+00:00</updated>
<author>
<name>Tomoaki Kawada</name>
<email>kawada@kmckk.co.jp</email>
</author>
<published>2023-08-23T09:41:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c8c3339133fb25b0e059e076fb499708df39c669'/>
<id>urn:sha1:c8c3339133fb25b0e059e076fb499708df39c669</id>
<content type='text'>
Removes some `unsafe` blocks.
</content>
</entry>
<entry>
<title>kmc-solid: Replace `{From,Into}Inner&lt;c_int&gt;` impls with `*RawFd` for `Socket`</title>
<updated>2023-11-08T01:48:49+00:00</updated>
<author>
<name>Tomoaki Kawada</name>
<email>kawada@kmckk.co.jp</email>
</author>
<published>2023-08-23T10:07:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cbfab81f3d3fe678c20ed8861fcddda98198db68'/>
<id>urn:sha1:cbfab81f3d3fe678c20ed8861fcddda98198db68</id>
<content type='text'>
Follows how other targets are implemented.
</content>
</entry>
</feed>
