Nicholas Nethercote
ebfac4ecaf
Avoid using () in derive(From) output.
...
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<()> for S2 {
#[inline]
fn from(value: ()) -> S2 { (/*ERROR*/) }
}
```
to this:
```
struct S2(u32, u32);
impl ::core::convert::From<(/*ERROR*/)> for S2 {
#[inline]
fn from(value: (/*ERROR*/)) -> S2 { (/*ERROR*/) }
}
```
The new code also only matchs on `item.kind` once.
2025-08-19 18:16:57 +10:00
..
2025-04-18 15:57:29 +02:00
2025-04-16 11:10:10 +02:00
2025-07-28 17:35:09 +03:00
2024-10-24 02:14:09 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-08-18 13:12:19 +02:00
2025-08-18 13:12:19 +02:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-04-16 11:10:10 +02:00
2025-07-28 17:35:09 +03:00
2025-02-24 19:34:54 +00:00
2025-03-14 19:50:03 +00:00
2024-10-24 02:14:09 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-06-25 23:29:44 +08:00
2024-11-26 02:50:48 +08:00
2024-02-16 20:02:50 +00:00
2025-08-19 18:16:57 +10:00
2025-08-19 18:16:57 +10:00
2025-08-18 13:12:19 +02:00
2024-02-16 20:02:50 +00:00
2024-07-06 14:24:20 +02:00
2025-05-27 22:03:21 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-11-26 02:50:48 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-24 09:26:54 +00:00
2024-02-16 20:02:50 +00:00
2025-01-24 22:08:39 +00:00
2025-03-14 19:50:03 +00:00
2024-02-16 20:02:50 +00:00
2024-11-26 02:50:48 +08:00
2024-02-16 20:02:50 +00:00
2024-11-26 02:50:48 +08:00
2024-03-03 16:30:48 -03:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-03-14 19:50:03 +00:00
2024-02-16 20:02:50 +00:00
2025-03-14 19:50:03 +00:00
2025-04-16 11:10:10 +02:00
2025-07-28 17:35:09 +03:00