<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/core/src/io, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-17T01:58:32+00:00</updated>
<entry>
<title>Rollup merge of #143829 - a1phyr:trim_borrowed_buf, r=ChrisDenton</title>
<updated>2025-07-17T01:58:32+00:00</updated>
<author>
<name>León Orell Valerian Liehr</name>
<email>me@fmease.dev</email>
</author>
<published>2025-07-17T01:58:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b9fd2bccfad4fd56538ccc4ae20b62c72748c311'/>
<id>urn:sha1:b9fd2bccfad4fd56538ccc4ae20b62c72748c311</id>
<content type='text'>
Trim `BorrowedCursor` API

This PR removes some method from the unstable `BorrowedCursor` type. A rational for each change can be found in the message of each commit.

I don't think that an ACP is required for this, please tell me if it is not the case.

Cc rust-lang/rust#78485 rust-lang/rust#117693
</content>
</entry>
<entry>
<title>Auto merge of #142885 - a1phyr:borrowed_cursor_to_buf, r=Mark-Simulacrum</title>
<updated>2025-07-14T23:45:18+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-14T23:45:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7f2065a4bae1faed5bab928c670964eafbf43b55'/>
<id>urn:sha1:7f2065a4bae1faed5bab928c670964eafbf43b55</id>
<content type='text'>
core: Add `BorrowedCursor::with_unfilled_buf`

Implementation of https://github.com/rust-lang/libs-team/issues/367.

This mainly adds `BorrowedCursor::with_unfilled_buf`, with enables using the unfilled part of a cursor as a `BorrowedBuf`.

Note that unlike the ACP, `BorrowedCursor::unfilled_buf` was moved to a `From` conversion. This is more consistent with other ways of creating a `BorrowedBuf` and hides a bit this conversion that requires unsafe code to be used correctly.

Cc rust-lang/rust#78485 rust-lang/rust#117693
</content>
</entry>
<entry>
<title>core: Change `BorrowedCursor::written`'s origin</title>
<updated>2025-07-09T16:11:27+00:00</updated>
<author>
<name>Benoît du Garreau</name>
<email>benoit@dugarreau.fr</email>
</author>
<published>2025-07-09T16:11:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=65df66831f3fdb7f20a74e843a46bb90993221eb'/>
<id>urn:sha1:65df66831f3fdb7f20a74e843a46bb90993221eb</id>
<content type='text'>
This enable removing the `start` field, so `BorrowedCursor` fits in a
single register. Because `written` is almost always used in difference
with another call, this changes nothing else in practice.
</content>
</entry>
<entry>
<title>core: Remove `BorrowedCursor::uninit_mut`</title>
<updated>2025-07-09T16:11:26+00:00</updated>
<author>
<name>Benoît du Garreau</name>
<email>benoit@dugarreau.fr</email>
</author>
<published>2025-07-09T16:11:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=34555f1b0b49e4fd944b2cb9c298f15b6b5da144'/>
<id>urn:sha1:34555f1b0b49e4fd944b2cb9c298f15b6b5da144</id>
<content type='text'>
I assume that this method was there for completeness, but there is
hardly any useful use of it: the buffer it gave was not always connected
to the start of the cursor and its use required `unsafe` anyway to mark
the bytes as initialized.
</content>
</entry>
<entry>
<title>core: Remove `BorrowedCursor::init_ref` method</title>
<updated>2025-07-09T16:11:26+00:00</updated>
<author>
<name>Benoît du Garreau</name>
<email>benoit@dugarreau.fr</email>
</author>
<published>2025-07-09T16:11:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=803b4d262241b22a4dfe75fcec49eaf920e0816b'/>
<id>urn:sha1:803b4d262241b22a4dfe75fcec49eaf920e0816b</id>
<content type='text'>
This method was not really useful: at no point one would only need to
read the initialized part of the cursor without mutating it.
</content>
</entry>
<entry>
<title>setup CI and tidy to use typos for spellchecking and fix few typos</title>
<updated>2025-07-03T07:51:06+00:00</updated>
<author>
<name>klensy</name>
<email>klensy@users.noreply.github.com</email>
</author>
<published>2024-12-07T10:51:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c76d032f0144b650a438ee1efba89c475e0b115b'/>
<id>urn:sha1:c76d032f0144b650a438ee1efba89c475e0b115b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>core: Add `BorrowedCursor::with_unfilled_buf`</title>
<updated>2025-07-01T12:03:54+00:00</updated>
<author>
<name>Benoît du Garreau</name>
<email>benoit@dugarreau.fr</email>
</author>
<published>2025-06-22T18:50:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=136d24fd7f2cd8685d0f92e672f7d43aac62fedf'/>
<id>urn:sha1:136d24fd7f2cd8685d0f92e672f7d43aac62fedf</id>
<content type='text'>
Implementation of https://github.com/rust-lang/libs-team/issues/367.

This mainly adds `BorrowedCursor::with_unfilled_buf`, with enables using
the unfilled part of a cursor as a `BorrowedBuf`.

Note that unlike the ACP, `BorrowedCursor::unfilled_buf` was moved to a
`From` conversion. This is more consistent with other ways of creating a
`BorrowedBuf` and hides a bit this conversion that requires unsafe code
to be used correctly.
</content>
</entry>
<entry>
<title>Remove a panicking branch in `BorrowedCursor::advance`</title>
<updated>2025-06-17T11:09:49+00:00</updated>
<author>
<name>Benoît du Garreau</name>
<email>benoit@dugarreau.fr</email>
</author>
<published>2025-06-17T11:08:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e3c21dd88b760aefa39fb72bcc34299ca913967d'/>
<id>urn:sha1:e3c21dd88b760aefa39fb72bcc34299ca913967d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add inherent versions of MaybeUninit methods for slices</title>
<updated>2025-01-12T04:57:00+00:00</updated>
<author>
<name>ltdk</name>
<email>usr@ltdk.xyz</email>
</author>
<published>2024-08-18T23:50:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e37daf0c868efc016dd8039d59d53a03303c9c07'/>
<id>urn:sha1:e37daf0c868efc016dd8039d59d53a03303c9c07</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add BorrowedBuf::into_filled{,_mut} methods to allow returning buffer with original lifetime</title>
<updated>2024-11-02T18:26:21+00:00</updated>
<author>
<name>Alex Saveau</name>
<email>saveau.alexandre@gmail.com</email>
</author>
<published>2024-11-02T18:23:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=770b15693a6a815b643ffe3aabdf2ed0ce8daa67'/>
<id>urn:sha1:770b15693a6a815b643ffe3aabdf2ed0ce8daa67</id>
<content type='text'>
</content>
</entry>
</feed>
