<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/core/src/ptr, 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-09-26T22:41:32+00:00</updated>
<entry>
<title>Update CURRENT_RUSTC_VERSION post-bump</title>
<updated>2025-09-26T22:41:32+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2025-09-14T14:30:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4e9716fbc5fb0f85d838ee9350ade2be5c2a6201'/>
<id>urn:sha1:4e9716fbc5fb0f85d838ee9350ade2be5c2a6201</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #142315 - lolbinarycat:core-dedup-ptr-docs-139190-pt3, r=workingjubilee</title>
<updated>2025-09-11T04:06:26+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-09-11T04:06:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=602841dc8c4b9d58d663b4d8a23d91172c45274d'/>
<id>urn:sha1:602841dc8c4b9d58d663b4d8a23d91172c45274d</id>
<content type='text'>
core::ptr: deduplicate docs for as_ref, addr, and as_uninit_ref

also add INFO.md file explaining the purpose of the ptr/docs dir, and give some pointers (heh) to future maintainers.

follow up to rust-lang/rust#142101

part of rust-lang/rust#139190

r? `@workingjubilee`
</content>
</entry>
<entry>
<title>core::ptr: deduplicate docs for as_ref, addr, and as_uninit_ref</title>
<updated>2025-09-10T16:00:08+00:00</updated>
<author>
<name>binarycat</name>
<email>binarycat@envs.net</email>
</author>
<published>2025-06-10T21:35:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d50a80e1d0e655524a3c0dff1f55d7c667314184'/>
<id>urn:sha1:d50a80e1d0e655524a3c0dff1f55d7c667314184</id>
<content type='text'>
also add INFO.md file explaining the purpouse of the ptr/docs dir.
</content>
</entry>
<entry>
<title>const-eval: disable pointer fragment support</title>
<updated>2025-09-08T11:22:52+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-09-08T08:40:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aed0ed4c93d661fc7b66dc4a39690948476e8a4a'/>
<id>urn:sha1:aed0ed4c93d661fc7b66dc4a39690948476e8a4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #146136 - AudaciousAxiom:docs/missing-closing-code-block-fences, r=tgross35</title>
<updated>2025-09-04T00:02:02+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-09-04T00:02:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b27c94af613a843b5093000544fc2be66a749701'/>
<id>urn:sha1:b27c94af613a843b5093000544fc2be66a749701</id>
<content type='text'>
docs(std): add missing closing code block fences in doc comments

This PR adds a few closing code block fences which I believe are missing in some doc comments. It seems that rustdoc just autocloses code blocks at the end of doc comments and thus these were easily overlooked: I do not think these code blocks are special in any way.

I found these when working on a Clippy lint that checks the last sentence of doc comments for terminal punctuation, and these were failing cases when testing against the std. Therefore I am not entirely sure these are all such cases, but still have high hopes that they are (or at least a well-defined subset of them).
</content>
</entry>
<entry>
<title>Rollup merge of #145279 - clarfonthey:const-convert-initial, r=tgross35</title>
<updated>2025-09-03T13:08:06+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-09-03T13:08:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f4b946a14788df30b693a28e96aa18c9bee618ad'/>
<id>urn:sha1:f4b946a14788df30b693a28e96aa18c9bee618ad</id>
<content type='text'>
Constify conversion traits (part 1)

This is the first part of rust-lang/rust#144289 being split into smaller pieces. It adds/moves constness of several traits under the `const_convert` feature:

* `From`
* `Into`
* `TryFrom`
* `TryInto`
* `FromStr`
* `AsRef`
* `AsMut`
* `Borrow`
* `BorrowMut`
* `Deref`
* `DerefMut`

There are a few methods that are intrinsically tied to these traits which I've included in the feature. Particularly, those which are wrappers over `AsRef`:

* `ByteStr::new` (unstable under `bstr` feature)
* `OsStr::new`
* `Path::new`

Those which directly use `Into`:

* `Result::into_ok`
* `Result::into_err`

And those which use `Deref` and `DerefMut`:

* `Pin::as_ref`
* `Pin::as_mut`
* `Pin::as_deref_mut`
* `Option::as_deref`
* `Option::as_deref_mut`
* `Result::as_deref`
* `Result::as_deref_mut`

(note: the `Option` and `Result` methods were suggested by ``@npmccallum`` initially as rust-lang/rust#146101)

The parts which are missing from this PR are:

* Anything that involves heap-allocated types
* Making any method const than the ones listed above
* Anything that could rely on the above, *or* could rely on system-specific code for `OsStr` or `Path` (note: this mostly makes these methods useless since `str` doesn't implement `AsRef&lt;OsStr&gt;` yet, but it's better to track the method for now and add impls later, IMHO)

r? ``@tgross35`` (who mostly already reviewed this)
</content>
</entry>
<entry>
<title>docs(std): add missing closing code block fences in doc comments</title>
<updated>2025-09-02T20:11:29+00:00</updated>
<author>
<name>AudaciousAxiom</name>
<email>179637270+AudaciousAxiom@users.noreply.github.com</email>
</author>
<published>2025-09-02T19:34:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5a9e2e4aa8b388b25d146d86f70e55427bda8dd5'/>
<id>urn:sha1:5a9e2e4aa8b388b25d146d86f70e55427bda8dd5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Constify conversion traits</title>
<updated>2025-09-02T01:38:26+00:00</updated>
<author>
<name>ltdk</name>
<email>usr@ltdk.xyz</email>
</author>
<published>2025-08-11T23:36:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1c64d3e6d1fe6256cb11b8dd455ccad1b5f9848c'/>
<id>urn:sha1:1c64d3e6d1fe6256cb11b8dd455ccad1b5f9848c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clarify that align_offset overaligns</title>
<updated>2025-08-28T18:07:38+00:00</updated>
<author>
<name>gonzalobg</name>
<email>65027571+gonzalobg@users.noreply.github.com</email>
</author>
<published>2025-08-27T14:21:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f29327ff6093bc09c445028bd05a172e570e8486'/>
<id>urn:sha1:f29327ff6093bc09c445028bd05a172e570e8486</id>
<content type='text'>
The current documentation is not clear whether adding `a` to a pointer overaligns (align up) or underaligns (align down).

It should say this explicitly.
</content>
</entry>
<entry>
<title>Rollup merge of #143341 - Manishearth:from-raw-parts-ptr-cast, r=samueltardieu</title>
<updated>2025-08-27T05:45:54+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-08-27T05:45:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0c02bdc9016434f46d75b4be161a7e8d51b28bff'/>
<id>urn:sha1:0c02bdc9016434f46d75b4be161a7e8d51b28bff</id>
<content type='text'>
Mention that casting to *const () is a way to roundtrip with from_raw_parts

See discussion on rust-lang/rust#81513
</content>
</entry>
</feed>
