<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/core/src/macros, 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-09-08T13:02:25+00:00</updated>
<entry>
<title>mark `format_args_nl!` as `#[doc(hidden)]`</title>
<updated>2025-09-08T13:02:25+00:00</updated>
<author>
<name>cyrgani</name>
<email>ansgar.w.zielke@gmail.com</email>
</author>
<published>2025-09-07T21:20:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=edc94e61841506c6957e1ee0ed57a2232fe339c4'/>
<id>urn:sha1:edc94e61841506c6957e1ee0ed57a2232fe339c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #144922 - Kobzol:derive-from, r=nnethercote</title>
<updated>2025-08-15T22:13:28+00:00</updated>
<author>
<name>Jacob Pratt</name>
<email>jacob@jhpratt.dev</email>
</author>
<published>2025-08-15T22:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2b1a288dfc5a2cce12b8c1a2eef22f89d894c094'/>
<id>urn:sha1:2b1a288dfc5a2cce12b8c1a2eef22f89d894c094</id>
<content type='text'>
Implement `#[derive(From)]`

Implements the `#[derive(From)]` feature ([tracking issue](https://github.com/rust-lang/rust/issues/144889), [RFC](https://github.com/rust-lang/rfcs/pull/3809)).

It allows deriving the `From` impl on structs and tuple structs with exactly one field. Some implementation notes:
- I wasn't exactly sure which spans to use in the derive generating code, so I just used `span` everywhere. I don't know if it's the Right Thing To Do. In particular the errors when `#[derive(From)]` is used on a struct with an unsized field are weirdly duplicated.
- I had to solve an import stability problem, where if I just added the unstable `macro From` to `core::convert`, previously working code like `use std::convert::From` would suddenly require an unstable feature gate, because rustc would think that you're trying to import the unstable macro. `@petrochenkov` suggested that I add the macro the the core prelude instead. This has worked well, although it only works in edition 2021+. Not sure if I botched the prelude somehow and it should live elsewhere (?).
- I had to add `Ty::AstTy`, because the `from` function receives an argument with the type of the single field, and the existing variants of the `Ty` enum couldn't represent an arbitrary type.
</content>
</entry>
<entry>
<title>Create unstable `From` builtin macro and register it</title>
<updated>2025-08-15T10:06:20+00:00</updated>
<author>
<name>Jakub Beránek</name>
<email>berykubik@gmail.com</email>
</author>
<published>2025-08-04T15:24:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e935a155c2078185f0705bb972a38953e770e393'/>
<id>urn:sha1:e935a155c2078185f0705bb972a38953e770e393</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #142640 - Sa4dUs:ad-intrinsic, r=ZuseZ4</title>
<updated>2025-08-15T06:16:30+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2025-08-15T06:16:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e3a178234d75ee8545b766653643306d0c3f2919'/>
<id>urn:sha1:e3a178234d75ee8545b766653643306d0c3f2919</id>
<content type='text'>
Implement autodiff using intrinsics

This PR aims to move autodiff logic to `autodiff` intrinsic. Allowing us to delete a great part of our frontend code and overall, simplify the compilation pipeline of autodiff functions.
</content>
</entry>
<entry>
<title>Complete functionality and general cleanup</title>
<updated>2025-08-14T16:30:15+00:00</updated>
<author>
<name>Marcelo Domínguez</name>
<email>dmmarcelo27@gmail.com</email>
</author>
<published>2025-08-14T15:27:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=250d77e5d72fde69a6406050a3b037635f685378'/>
<id>urn:sha1:250d77e5d72fde69a6406050a3b037635f685378</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cfg_select: Support unbraced expressions</title>
<updated>2025-08-10T23:18:01+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-08-10T23:17:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38df15805ba5be78d70c515f1d585ee6be95e13b'/>
<id>urn:sha1:38df15805ba5be78d70c515f1d585ee6be95e13b</id>
<content type='text'>
When operating on expressions, `cfg_select!` can now handle expressions
without braces. (It still requires braces for other things, such as
items.)

Expand the test coverage and documentation accordingly.
</content>
</entry>
<entry>
<title>Rollup merge of #144478 - joshtriplett:doc-code-formatting-prep, r=Amanieu</title>
<updated>2025-08-02T09:24:24+00:00</updated>
<author>
<name>Samuel Tardieu</name>
<email>sam@rfc1149.net</email>
</author>
<published>2025-08-02T09:24:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d082ff4c04c09e855d7ea55e0c9deda05eba46ec'/>
<id>urn:sha1:d082ff4c04c09e855d7ea55e0c9deda05eba46ec</id>
<content type='text'>
Improve formatting of doc code blocks

We don't currently apply automatic formatting to doc comment code blocks. As a
result, it has built up various idiosyncracies, which make such automatic
formatting difficult. Some of those idiosyncracies also make things harder for
human readers or other tools.

This PR makes a few improvements to doc code formatting, in the hopes of making
future automatic formatting easier, as well as in many cases providing net
readability improvements.

I would suggest reading each commit separately, as each commit contains one
class of changes.
</content>
</entry>
<entry>
<title>Improve and regularize comment placement in doc code</title>
<updated>2025-07-26T05:02:09+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2025-07-26T00:35:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=715088094c2e2ef31158b4767ceacfba62c8e6ef'/>
<id>urn:sha1:715088094c2e2ef31158b4767ceacfba62c8e6ef</id>
<content type='text'>
Because doc code does not get automatically formatted, some doc code has
creative placements of comments that automatic formatting can't handle.
Reformat those comments to make the resulting code support standard Rust
formatting without breaking; this is generally an improvement to
readability as well.

Some comments are not indented to the prevailing indent, and are instead
aligned under some bit of code. Indent them to the prevailing indent,
and put spaces *inside* the comments to align them with code.

Some comments span several lines of code (which aren't the line the
comment is about) and expect alignment. Reformat them into one comment
not broken up by unrelated intervening code.

Some comments are placed on the same line as an opening brace, placing
them effectively inside the subsequent block, such that formatting would
typically format them like a line of that block. Move those comments to
attach them to what they apply to.

Some comments are placed on the same line as a one-line braced block,
effectively attaching them to the closing brace, even though they're
about the code inside the block. Reformat to make sure the comment will
stay on the same line as the code it's commenting.
</content>
</entry>
<entry>
<title>Disable non_exhaustive_omitted_patterns within matches! macro</title>
<updated>2025-07-23T12:26:06+00:00</updated>
<author>
<name>Jonas Platte</name>
<email>jplatte+git@posteo.de</email>
</author>
<published>2025-07-22T22:13:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8a1b20ed6021d9e871c60e112dbf136699c87fab'/>
<id>urn:sha1:8a1b20ed6021d9e871c60e112dbf136699c87fab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make `derive_const` usable within libcore again</title>
<updated>2025-07-17T15:42:54+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-07-11T10:20:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=250648e871c1e685f09427bd31fd399090f15640'/>
<id>urn:sha1:250648e871c1e685f09427bd31fd399090f15640</id>
<content type='text'>
Also make it *only* usable on nightly
</content>
</entry>
</feed>
