<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/deriving, branch auto</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=auto</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=auto'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-08-19T08:16:57+00:00</updated>
<entry>
<title>Avoid using `()` in `derive(From)` output.</title>
<updated>2025-08-19T08:16:57+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-08-18T03:50:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ebfac4ecaf4190dada6dba95645ceee7efd2ca38'/>
<id>urn:sha1:ebfac4ecaf4190dada6dba95645ceee7efd2ca38</id>
<content type='text'>
Using an error type instead of `()` avoids the duplicated errors
on `struct SUnsizedField` in `deriving-from-wrong-target.rs`. It also
improves the expanded output from this:
```
struct S2(u32, u32);
impl ::core::convert::From&lt;()&gt; for S2 {
    #[inline]
    fn from(value: ()) -&gt; S2 { (/*ERROR*/) }
}
```
to this:
```
struct S2(u32, u32);
impl ::core::convert::From&lt;(/*ERROR*/)&gt; for S2 {
    #[inline]
    fn from(value: (/*ERROR*/)) -&gt; S2 { (/*ERROR*/) }
}
```
The new code also only matchs on `item.kind` once.
</content>
</entry>
<entry>
<title>Remove the `From` derive macro from prelude</title>
<updated>2025-08-18T11:12:19+00:00</updated>
<author>
<name>Jakub Beránek</name>
<email>berykubik@gmail.com</email>
</author>
<published>2025-08-18T10:18:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a6a760edaf16d4b00ab4d3c607f6d85a6d193c0b'/>
<id>urn:sha1:a6a760edaf16d4b00ab4d3c607f6d85a6d193c0b</id>
<content type='text'>
To avoid backwards compatibility problems.
</content>
</entry>
<entry>
<title>Implement `#[derive(From)]`</title>
<updated>2025-08-15T10:07:15+00:00</updated>
<author>
<name>Jakub Beránek</name>
<email>berykubik@gmail.com</email>
</author>
<published>2025-08-15T10:07:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1f3a7471bfb05a5fd76309545de0412d265e28be'/>
<id>urn:sha1:1f3a7471bfb05a5fd76309545de0412d265e28be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>expand: Micro-optimize prelude injection</title>
<updated>2025-07-28T14:35:09+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2025-07-28T14:24:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c56f49dc34f43568122f057d72f3472b3fcd4d8e'/>
<id>urn:sha1:c56f49dc34f43568122f057d72f3472b3fcd4d8e</id>
<content type='text'>
Use `splice` to avoid shifting the other items twice.
Put `extern crate std;` first so it's already resolved when we resolve `::std::prelude::rust_20XX`.

</content>
</entry>
<entry>
<title>Rollup merge of #141724 - Sol-Ell:issue-141141-fix, r=nnethercote</title>
<updated>2025-06-03T13:00:32+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-06-03T13:00:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=19437666d9d6b38534a6b7bb575003033c180bff'/>
<id>urn:sha1:19437666d9d6b38534a6b7bb575003033c180bff</id>
<content type='text'>
fix(#141141): When expanding `PartialEq`, check equality of scalar types first.

Fixes rust-lang/rust#141141.

Now, `cs_eq` function of `partial_eq.rs` compares [scalar types](https://doc.rust-lang.org/rust-by-example/primitives.html#scalar-types) first.

- Add `is_scalar` field to `FieldInfo`.
- Add `is_scalar` method to `TyKind`.
- Pass `FieldInfo` via `CsFold::Combine` and refactor code relying on it.
- Implement `TryFrom&lt;&amp;str&gt;` and `TryFrom&lt;Symbol&gt;` for FloatTy.
- Implement `TryFrom&lt;&amp;str&gt;` and `TryFrom&lt;Symbol&gt;` for IntTy.
- Implement `TryFrom&lt;&amp;str&gt;` and `TryFrom&lt;Symbol&gt;` for UintTy.
</content>
</entry>
<entry>
<title>Separately check equality of the scalar types and compound types in the order of declaration.</title>
<updated>2025-06-02T12:29:34+00:00</updated>
<author>
<name>Ell</name>
<email>ahunpochoevjamshed@gmail.com</email>
</author>
<published>2025-05-30T07:57:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a6a1c1b247aa0fa404983efa3c226c25cafdd704'/>
<id>urn:sha1:a6a1c1b247aa0fa404983efa3c226c25cafdd704</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor the two-phase check for impls and impl items</title>
<updated>2025-05-27T14:03:21+00:00</updated>
<author>
<name>Mu001999</name>
<email>mu001999@outlook.com</email>
</author>
<published>2025-05-22T19:51:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f83ecd82701923c38f847d290a4e0859d8cf0126'/>
<id>urn:sha1:f83ecd82701923c38f847d290a4e0859d8cf0126</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove let_chains feature gate from even more tests</title>
<updated>2025-04-18T13:57:29+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2025-03-16T05:14:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=162daaa2fa9e78dad0219eb995a7903d778f7801'/>
<id>urn:sha1:162daaa2fa9e78dad0219eb995a7903d778f7801</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Explicitly annotate edition for `unpretty=expanded` and `unpretty=hir` tests</title>
<updated>2025-04-16T09:10:10+00:00</updated>
<author>
<name>Lukas Wirth</name>
<email>lukas.wirth@ferrous-systems.com</email>
</author>
<published>2025-04-16T08:45:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=20ab952b4dd994aa6e22ff56df5314eee5ff415c'/>
<id>urn:sha1:20ab952b4dd994aa6e22ff56df5314eee5ff415c</id>
<content type='text'>
These emit prelude imports which means they are always edition dependent
</content>
</entry>
<entry>
<title>Do not suggest using `-Zmacro-backtrace` for builtin macros</title>
<updated>2025-03-14T19:50:03+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-03-11T23:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f0b8e13b59a68d63cf7083be5cd6dcca3abf18ff'/>
<id>urn:sha1:f0b8e13b59a68d63cf7083be5cd6dcca3abf18ff</id>
<content type='text'>
For macros that are implemented on the compiler, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros.
</content>
</entry>
</feed>
